Alex wrote: > Paul J Stevens wrote: > >> That's exactly what I changed. Unless mailbox2dbmail nukes the From_ >> lines it should work. Ah wait. That's it. Please try to use the >> mailbox2dbmail from svn-trunk. > > > It works now. Thank you!
great. > Maybe you know of a convenient way, some bash/perl/python script to > split an mbox message by message? If you want to split messages in a mailbox, there's of course 'formail' which is part of procmail. cat largembox|formail -ds <executable> so for example: cat largembox|formail -ds dbmail-smtp -u username -m mailboxname formail will do all kinds of neat stuff like fixing broken mailboxes. However, if you want to search an mbox for messages that match a regex, use grepmail: Description: search mailboxes for mail matching an expression Grepmail looks for mail messages containing a pattern, and prints the resulting messages. Usage is very similar to grep. It can handle compressed mailbox files, and can search the header or body of emails. It also supports searches constrained by date and size. -- ________________________________________________________________ Paul Stevens paul at nfg.nl NET FACILITIES GROUP GPG/PGP: 1024D/11F8CD31 The Netherlands________________________________http://www.nfg.nl
