Thanks for the pointers, people. It was indeed the 'From ' line that was out-of-spec. I took a look at the unix.h VALID macro for mbox validation, and found that the day number _must_ be two characters, i.e.:

From - Mon Jan 1 00:00:00 1965

is valid but

From - Mon Jan 1 00:00:00 1965

is not (with respect to that macro). This turned out be the key. With the extra space, Mahogany successfully loaded the mbox. Things got a lot easier from then on :) It gave a stream of entries in the log concerning the date, which as VZ noted was before the Unix epoch, eg:

15:21:51: Status: Mail log: Unable to parse internal date: 1-Jan-1965 00:00:00-LCL

as well as any errors found in the message headers themselves.


So, replacing the 'From ' lines with:


From - Mon Jan 1 00:00:00 1970

clears up he initial valid problem, and also the internal date error.
Although '-' is a garbage user id, Mahogany doesn't seem to mind; of course replacing it with something else is trivial anyway. OE seems to copy the envelope "From" into a Return-Path: header so the information is present, anyway.


I'll post a bug report to the Mozilla team, if it's not already noted, regarding the date field. They may be willing to fix it; should be simple enough, although personally I don't feel too keen on wading through the mountains of source code they have!


A saw a bunch of other stuff in the log, but so far they're all just warnings about mal-formed headers, they seem to get sorted out reasonably one way or another.



Anyway, success :) Thanks people.


Kev.




------------------------------------------------------- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01 _______________________________________________ Mahogany-Users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/mahogany-users

Reply via email to