On Thu, Jul 26, 2018 at 01:30:56PM +0200, Matus UHLAR - fantomas wrote: > 1. the "From " line contains full "From: " header, while it's supposed to > contain only the address, without < and > brackets, with one space > separating address and date (two spaces are used now).
I've fixed this in Debian and submitted the patch upstream. > 2. output lines are end with CR-LF characters. CR's should be stripped, at > leasst on unix systems. > > I have compared output with and without --mbox and the only differences are > - From line > - mime boundaries > - new lines. > > Since the 2nd problem seems to come from Email::Sender::Transport::Mbox, I > believe that package could be avoided, and mbox files can be written to > single file starting each mail with "From address RFC822-date" and ending > with empty line. This same issue had also been reported upstream, but upstream believes the current behaviour is correct so I think you need to take it up with them if you disagree: https://github.com/mvz/email-outlook-message-perl/issues/13#issuecomment-616044853 Writing mbox isn't quite as simple as you suggest - e.g. extra care is needed for lines starting "From " in the message body. If this really is wrong then it would be better to get it fixed in Email::Sender::Transport::Mbox (as upstream suggests above) - that would benefit other users of it. Cheers, Olly