parse Maildir e-mail

thufir hawat.thufir at gmail.com
Tue Nov 20 00:19:39 UTC 2012


I want to parse Maildir e-mail with Java, or maybe Ruby.  However, I'm 
not totally clear on where the mail is.

I'm using dovecot-postfix and mailman to manage a small mailing list, 
just for personal use.  (Testing stuff out.)  The mail is delivered to 
thufir at dur.bouncme.net and resides as so:

 	
thufir at dur:~$ 
thufir at dur:~$ ll Maildir/
total 476
drwx------  7 thufir thufir   4096 Nov 19 15:05 ./
drwxr-xr-x 39 thufir thufir   4096 Nov 19 14:12 ../
drwx------  2 thufir thufir  45056 Nov 19 15:05 cur/
-rw-rw-r--  1 thufir thufir   2045 Nov 19 09:30 cur.msf
drwxr-xr-x 16 thufir thufir   4096 Nov 19 14:12 cur.sbd/
-rw-------  1 thufir thufir   4480 Nov 19 14:36 dovecot.index
-rw-------  1 thufir thufir 212992 Nov 19 14:55 dovecot.index.cache
-rw-rw-r--  1 thufir thufir   2017 Nov 19 09:30 dovecot.index.cache.msf
-rw-------  1 thufir thufir  21576 Nov 19 15:05 dovecot.index.log
-rw-------  1 thufir thufir  32872 Nov 19 14:35 dovecot.index.log.2
-rw-rw-r--  1 thufir thufir   1796 Nov 19 09:30 dovecot.index.log.msf
-rw-------  1 thufir thufir  16689 Nov 19 14:55 dovecot-uidlist
-rw-rw-r--  1 thufir thufir   1783 Nov 19 09:30 dovecot-uidlist.msf
-rw-------  1 thufir thufir      8 Nov 16 11:57 dovecot-uidvalidity
-r--r--r--  1 thufir thufir      0 Nov 16 11:57 dovecot-
uidvalidity.50a69aba
-rw-rw-r--  1 thufir thufir   1801 Nov 19 09:30 dovecot-
uidvalidity.50a69aba.msf
-rw-rw-r--  1 thufir thufir   1785 Nov 19 09:30 dovecot-uidvalidity.msf
-rw-------  1 thufir thufir      0 Nov 16 23:51 draftbox
-rw-rw-r--  1 thufir thufir   1801 Nov 19 09:30 draftbox.msf
-rw-r--r--  1 thufir thufir   1156 Nov 19 09:45 Drafts
-rw-rw-r--  1 thufir thufir   2915 Nov 19 09:45 Drafts.msf
-rw-r--r--  1 thufir thufir      0 Nov 16 19:21 Inbox
-rw-rw-r--  1 thufir thufir   1965 Nov 19 09:30 Inbox.msf
drwx------  2 thufir thufir  20480 Nov 19 14:55 new/
-rw-rw-r--  1 thufir thufir   1961 Nov 19 09:30 new.msf
drwxr-xr-x  5 thufir thufir   4096 Nov 16 19:21 new.sbd/
-rw-------  1 thufir thufir      0 Nov 19 14:25 outbox
-rw-rw-r--  1 thufir thufir   1804 Nov 19 09:30 outbox.msf
-rw-r--r--  1 thufir thufir   2961 Nov 19 09:45 Sent
-rw-------  1 thufir thufir   3344 Nov 19 14:25 sentbox
-rw-rw-r--  1 thufir thufir   3278 Nov 19 09:30 sentbox.msf
-rw-rw-r--  1 thufir thufir   3091 Nov 19 14:12 Sent.msf
-rw-r--r--  1 thufir thufir      0 Nov 16 19:21 Templates
-rw-rw-r--  1 thufir thufir   1807 Nov 19 09:30 Templates.msf
drwx------  2 thufir thufir   4096 Nov 19 14:55 tmp/
-rw-rw-r--  1 thufir thufir   1801 Nov 19 09:30 tmp.msf
-rw-------  1 thufir thufir      0 Nov 16 23:51 trash
-rw-r--r--  1 thufir thufir      0 Nov 16 19:21 Trash
-rw-rw-r--  1 thufir thufir   1194 Nov 17 12:25 Trash.msf
-rw-r--r--  1 thufir thufir      0 Nov 16 19:21 Unsent Messages
-rw-rw-r--  1 thufir thufir   1840 Nov 19 09:30 Unsent Messages.msf
thufir at dur:~$ 
thufir at dur:~$ 

All I did was to point balsa to that directory and it seems to have 
created most of those directories.  Previously, the new messages were in 
Maildir/new and now seem to somewhere else.  But where?  I want to 
continue using Balsa to read these e-mails.  

However, in order to start parsing the e-mails with Java I should first 
find them.  Where did they go?


thanks,

Thufir





More information about the ubuntu-users mailing list