[issue28473] mailbox.MH crashes on certain Claws Mail .mh_sequences files

2016-10-29 Thread Garrett Nievin
Garrett Nievin added the comment: Interestingly, mailutils mh (GNU Mailutils 2.99.99, Ubuntu 16.10) doesn't have a problem with these files, so I'm using that instead of nmh. I assume this is relevant: http://www.nongnu.org/nmh/diff.html The limitation on the length of lines in the file

[issue28473] mailbox.MH crashes on certain Claws Mail .mh_sequences files

2016-10-29 Thread Garrett Nievin
Garrett Nievin added the comment: Yes, I couldn't access the mailbox at all. Here's what happens: $ cat mymail.py ; ./mymail.py #!/usr/bin/python3 import mailbox for message in mailbox.MH('~/mail/Personal'): print(message['subject']) Traceback (most recent call last): File "/us

[issue28473] mailbox.MH crashes on certain Claws Mail .mh_sequences files

2016-10-18 Thread Garrett Nievin
New submission from Garrett Nievin: Using Claws Mail, and mailbox.MH crashes on two different conditions: 1) sequence spans lines, suchly: unseen: 1-222 225-300 990-1024 1048-2048 Not Pythonic, but I fixed it with this update: def get_sequences(self): """Return a n