Age | Commit message (Collapse) | Author |
|
|
|
|
|
pep8 standard for indentation
|
|
For some really broken messages, we end up in a cannot-happen codepath.
Trap this one and just consider that MIME part empty, and try again
later.
In passing, also change it so we continue loading after failures of parsing.
We continued in the mode where we just generated diffs, but not when
making updates. Now continue in both cases, but of course don't do the
actual update if the parsing failed.
|
|
Some minor cleanups as well, but mostly just the output of the 2to3 tool
and some manual changes.
|
|
|
|
Created a *lot* of unnecessary I/O
|
|
|
|
If it's empty only, same as with the diffs
|
|
|
|
|
|
|
|
|
|
|
|
By default, reparse_message.py will now reparse the message and print the
diff, instead of actually updating it. Give it a --update to make it
actually do the update, like before. This makes it a good tool for testing
updates to the message parsing code.
Also implement --all and --sample <n>, to have it run the diff across
all or a certain number of messages in the archives. (Be *very* careful
about running it with both --all and --update..)
|
|
Read back the rawtxt stored in the database and reapply our parsing rules.
This is used when the code/rules for parsing a message has changed,
such as attachment or body parsing rules. Does not attempt to rethread
a message in any way.
|