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).

18 questions
50
votes
7 answers

What are the practical differences between Maildir and Mbox?

Although I understand the basics of the two storage formats (1 file per email under Maildir vs. 1 single file per mailbox under mbox), I am wondering what the practical implications are here - Is one storage format more scalable than the other? Are…
olympe26
  • 509
  • 1
  • 4
  • 3
5
votes
3 answers

Extracting the date of the latest message from an mbox file

How would I go about extracting the "Date:" header for the latest received message in an mbox file? Note that it's not simply an issue of grep'ing for the latest occurrence of "^Date:", since it might as well be the date from a quoted reply, not…
3
votes
0 answers

Desktop notifications for failed cron jobs on Ubuntu/Unity

How can I receive notifications of failed cron jobs via my Unity desktop environment? The age-old solution of having cron send emails is problematic as my ISP doesn't provide an SMTP server, and it's almost certain that my residential IP will be…
sircolinton
  • 131
  • 2
2
votes
1 answer

Problems importing mbox files to Dovecot sdbox with doveadm

OK, I need a couple of rep points and I'm about to pull the pin on this... I'm trying to import some mbox files into a Dovecot sdbox store using something along the lines of: doveadm -D import -u user@example.com mbox:/path/to/mbox "" mailbox INBOX…
2
votes
1 answer

Dovecot doesn't use my mail_location parameter

I'm using Exim 4.72 and Dovecot 1.2.15 on Debian 6.0.9. Exim delivers emails to /home/username in a mbox file. dovecot.conf mail_location = mbox:~/:INBOX=/var/mail/%n But - dovecot -n mail_location: maildir:~/.maildir I can't recieve email to…
Dimaf
  • 181
  • 1
  • 7
2
votes
1 answer

Migrated mbox to Maildir, how to avoid mail client from re-downloading emails?

We have moved emails in a postfix server from huge mbox files to MailDir, but when trying out one Outlook client, found that it redownloads all mail as duplicate unread messages.
2
votes
2 answers

How to upload an mbox file to an IMAP server

I decided to play with Mutt, and after quitting discovered that it had moved all the mails from my IMAP server to a local mbox file. I would like to put those mails back in the IMAP server. Is there an easy way to do this? There are a couple of…
.yahoo.co.jpaqwsykcj3aulh3h1k0cy6nzs3isj
1
vote
1 answer

Migrate Dovecot 0.99 to Dovecot 2.x and preserve POP UIDs

I have an old server running Sendmail and Dovecot 0.99. There are about 50 email accounts on this server, associated with various domain names hosted on it. The email data is stored in MBOX format on the old server. I need to migrate these email…
Ryan Griggs
  • 885
  • 2
  • 12
  • 27
1
vote
1 answer

connect to groupwise mbox with mutt

I am try to extract the GroupWise mailbox userlist and emails via script. I am told that Groupwise is in mbox format mutt looks for .maildir which does not exist on a Novell server. How can I administratively access the Groupwise mbox via the…
bro
  • 191
  • 7
1
vote
1 answer

Save sent mail in sent box with "mail" command

Mails sent using the mail clients are saved, but I want also that my system saves the sent mail using cron and the "mail" command to the "sent" box. Is this possible? I use sendmail as mail server on Linux. As an example I use: echo "An example" |…
user74952
  • 71
  • 1
  • 1
  • 7
1
vote
1 answer

Mbox files not shown on client over IMAP after restore from backup

The story: the HDD containing user /home/* directories with Mboxes died. I restored them from a backup to another machine and mounted the whole structure back to the original imap's server /home location over NFS (v3, options client: auto,…
David
  • 11
  • 1
0
votes
1 answer

Dovecot mdbox to mbox/MailDir/eml conversion

Is there any way to convert Dovecot's mdbox/dbox to mbox, MailDir or eml format (or any other easy to import format)?
JackTheKnife
  • 371
  • 1
  • 6
  • 22
0
votes
1 answer

postfix local delivery mbox Permission denied

I recently switched from sendmail to postfix. My /etc/aliases says: [...] postmaster: /var/spool/mail/postmaster [...] The permissions are: -rw-rw---- 1 postfix mail 4.9M Aug 9 13:54 /var/spool/mail/postmaster before it was g=r, I changed it to…
Alexander
  • 267
  • 2
  • 8
0
votes
1 answer

Spamassassin + Gmail + Mbox

If I give sa-learn Maildir mails to train it as spam, it takes them without problems, but when trying to use a mbox file containing spam emails from my personal Gmail account (using https://takeout.google.com/settings/takeout/custom/gmail), it…
Peregring-lk
  • 489
  • 5
  • 18
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,210
  • 9
  • 47
  • 76
1
2