Thursday, August 20, 2009

Mime decoding

When the scanner encounters a file it deems too big, it breaks it up into a couple of chunks. Unfortunately it does not do this nicely, rather it just truncates it and then sends a new message continuing where it left off.

Anyways, to reassemble
1. Save all of the parts into one file
2. Elide the headers out of the file except for the first one
3. Use munpack or mimedecode to get the pdf

Not too bad, but the extra editing is a little annoying

Dec 2009 update:
It works better if I view the email and then save it. The headers do not get saved to the file, which makes decoding go much better.

No comments: