Questions tagged [mbox]

mbox is an email storage format where all message is kept in single file. New message was appended below the last message.

Mbox is traditional UNIX mailbox format with single file contains zero or more messages. The relevant RFC about mbox format was RFC 4155. The other resource of this mbox format can be found at qmail man pages.

A message encoded in mbox format begins with a From line, continues with a series of non-From lines, and ends with a blank line. A From line means any line that begins with the characters F, r, o, m, space. Here the example of two message in one mbox file.

From someone@example.com Sat Jan  3 01:05:34 1996
Return-Path: <someone@example.com>
Delivered-To: somepeople@example.net
Date: 3 Jan 1996 01:05:34 -0000
From: S <someone@example.com>
To: somepeople@example.net (SP)

Hello world

From someone@example.com Sat Jan  3 01:05:34 1996
Return-Path: <root@example.org>
Delivered-To: somepeople@example.net
Date: 3 Jan 1996 03:01:49 -0000
From: S <root@example.org>
To: somepeople@example.net (SP)

The report has been delivered

When one process is reading or writing an email, it must lock the mbox file and prevents the other to modifying the mbox file. Because of this, mbox format does not work well with network mounted file systems, such as the Network File System (NFS).

20 questions
0
votes
1 answer

Convert single mbox file from Mac OS to linux courier mailbox format

I have a MAC OS mbox file. Each user has his own folder and each folder has a file named mbox in it. How can I convert this single large mbox file to individual email files, like the directory structure readable by courier imap server?
Farhan
  • 4,269
  • 11
  • 49
  • 80
0
votes
2 answers

Transferring mails and user setting to new mail server

We have a mail server running Debian 5.0. It is one year old now but we want to deploy a new server with Ubuntu Server 10.04. The problem is that we want to transfer all the user mails and settings to the new mail-serverl. So all their usernames and…
hsinxh
  • 143
  • 2
  • 10
0
votes
2 answers

Using Maildir as default mailspool

Is it possible to use a Maildir as the mailspool for users on a *nix box? I can get procmail to deliver to a Maildir without any problem, but I want to keep all the nifty features like finger knowing when mail last came in and shells alerting users…
singpolyma
  • 489
  • 2
  • 7
  • 19
0
votes
0 answers

How to import mbox file to Maildir

I have the following mbox file: /home/incoming/test_data/example_data/.transaction_emails_mbox. I want to move the emails in the mbox file to Maildir at the following directory, where all the user's other emails are: /home/incoming/Maildir/cur/.…
0
votes
2 answers

Dovecot migration from mbox to mdbox

I am doing a migration from mbox to mdbox on a new disk. From /mnt/mail/$user to /mnt/mail2/$user Current mail_location = mbox:~/mail:INBOX=/mnt/mail/%u/mail/Inbox The new mail_location = mdbox:/mnt/mail2/$user/mdbox My main userdb is passwd, and i…
tilkov
  • 243
  • 2
  • 6
1
2