You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
assignee='https://github.com/akuchling'closed_at=<Date2007-01-22.20:55:04.000>created_at=<Date2007-01-12.01:14:08.000>labels= ['library']
title='mailbox.py _fromlinepattern regexp does not support positive'updated_at=<Date2007-01-22.20:55:04.000>user='https://github.com/doko42'
The "-0400" appears to be throwing it off. If the first message of an
mbox file has such a line on it, archivemail flat out stops, saying the
file is not mbox.
If the later messages in an mbox file are in this style, they are not
counted, and archivemail thinks that the preceding message is just kind
of long, and the decision to archive or not is broken.
I have stumbled on this bug when I wanted to archive my mails on a
Sarge system. And since my TZ is positive, the regexp did not work. I
think the correct regexp for /usr/lib/python2.3/mailbox.py should be:
According to qmail's description of the mbox format (http://www.qmail.org/qmail-manual-html/man5/mbox.html), the 'from' lines shouldn't contain timezone info, but may contain additional information after the date. So I think a better change is just to add [^\\s]\s to the end of the pattern.
Note that the docs recommend the PortableUnixMailbox class as preferable for just this reason: there's too much variation in from lines to make the strict parsing useful.
Change committed to trunk in rev. 53519, and to release25-maint in rev. 53521. Thanks for your report!
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: