Questions tagged [maildir]

The Maildir e-mail format is a common way of storing e-mail messages, where each message is kept in a separate file with a unique name, and each folder is a directory.

The original Maildir specification was written by Daniel J. Bernstein, the author of qmail, djbdns, and other software. Although the original specification was written specifically for Bernstein's qmail, it is general enough to be implemented in many programs.

Read more at: https://en.wikipedia.org/wiki/Maildir

54 questions
13
votes
2 answers

What do the flags in a Maildir message filename mean?

I'm cleaning up some old Maildir folders, and finding messages with names like: 1095812260.M625118P61205V0300FF04I002DC537_0.redoak.cise.ufl.edu,S=2576:2,ST They don't show up in my IMAP client, so I presume there's some semaphore indicating the…
11
votes
3 answers

Convert Maildir to mbox

Im changing hosts and i need to convert my maildir accounts on my old server to mbox on my new server. Any ideas on the best way to do this? I found this: for i in new/* cur/*;do formail <”$i” >> ../mbox;done But i dont really understand it. I have…
Cybercampbell
  • 2,486
  • 11
  • 48
  • 75
7
votes
5 answers

Using MailDir as a Backend for Gnus

I am using offlineimap to sync my gmail account to a locak maildir, then using gnus to read that directory everything is fine but gnus uses its own flags for marking read unread status of messages and they are not synced back to gmail. is there a…
Hamza Yerlikaya
  • 49,047
  • 44
  • 147
  • 241
5
votes
2 answers

Merging two dovecot Maildirs

I recently setup mail server using zpanel (with dovecot and Maildir format) for my domain and created a user email account with user@my-domain.com here. Here all the emails are stored in following tree in server under /var/zpanel/vmail/…
lalit
  • 3,283
  • 2
  • 19
  • 26
4
votes
1 answer

Maildir is much larger than expected

I'm retrieving my email using offlineimap to a local maildir which I am indexing with mu (reading/writing is done using mu4e in emacs). After loading all emails from the server my Maildir folder is about 1.1GB in size. However, the very same…
elemakil
  • 3,681
  • 28
  • 53
3
votes
0 answers

Open a file with colon in the filename in vim

I have a strange behaviour which I do not understand. My aim is to open a textfile in vim. The textfile is in the Maildir e-mail format within the Maildir structure. Information regarding the file file -I…
jerik
  • 5,714
  • 8
  • 41
  • 80
3
votes
1 answer

How can I stop Perl's Mail::Box::Manager from removing directories?

I'm using the Perl module Mail::Box::Manager to read messages from a Maildir and move them into another directory. Once the script has finishing processing the mail messages in the Maildir it appears to also remove the cur/ and new/ Maildir…
Imo
  • 135
  • 4
3
votes
2 answers

Extract only the body part of incoming emails using bash

I use offlineimap to fetch the mails into a Maildir folder. I want to automatically parse all new incoming emails in a Maildir folder and send only the "from", "subject" and "body" as an instant message somewhere else. So I try to process all mails…
rubo77
  • 19,527
  • 31
  • 134
  • 226
3
votes
2 answers

Convert simple emaildump to maildir or mbox format

In OTRS I've got a database with emails. I have the raw emails (in eml format) in a table called "article_plain". I can easily do a dump of this using a statement like: SELECT ap.body FROM article_plain ap INNER JOIN article a ON (a.id =…
Johan
  • 74,508
  • 24
  • 191
  • 319
2
votes
1 answer

Dovecot compress existing maildir mails from postfix

I've taken code snippets from elsewhere and created a script to compress existing maildir emails (Dovecot would need to be stopped as I don't check for locks). #!/bin/bash store=/var/vmail/mydomain.com find "$store" -type d -name "cur" | while read…
Jason
  • 607
  • 3
  • 9
  • 25
2
votes
2 answers

Issue processing MailDir format with Java on Windows

This is really two questions, but they are very closely related. I am developing a Java application that will process emails stored in the UNIX style MailDir format. I am using the JavaMail API, and found JavaMailDir that should work as a provider…
Michael
  • 2,460
  • 3
  • 27
  • 47
2
votes
1 answer

changing maildir order

I recently asked this question and worked out that the reason a single email message is displaying out of order is not in fact because of the date, but because of the order of the messages. I would like to modify my script to make sure all messages…
Joshxtothe4
  • 4,061
  • 10
  • 53
  • 83
2
votes
1 answer

migrate postfix accounts into google apps

I have a postfix server (Linux) hosting a large amount of emails (120GB for 70 accounts) to be migrated into Google Apps. Only 30 accounts remain active and the remainder are archives. What is an efficient way to migrate active accounts into Google…
darren
  • 579
  • 8
  • 23
2
votes
2 answers

migrate from Thunderbird to Maildir

I am using Thunderbird for more than 10 years and did always load my mails via POP3 from the server, so now I have thousands of old mails stored locally. The mail-server I used all this years is managed by a friend on his machine. But I am managing…
Hubert Schölnast
  • 8,341
  • 9
  • 39
  • 76
2
votes
0 answers

Why do maildirs need the `new` folder?

I understand the reason why tmp is needed in a maildir: It makes it possible to not have half-written mails in cur. However, why is new needed? Couldn't the mails just be dropped into the cur folder directly with a name : or so? As soon as a…
thejh
  • 44,854
  • 16
  • 96
  • 107
1
2 3 4