########################################################################## ########################################################################## stripmime - by Adam Glass Current version: 0.8.3a, 8/10/00 ########################################################################## ########################################################################## Change Log/Revision History: 0.8.3a - 8/10/2000 - fixed miscellaneous stupidity related to the recognition of boundary markers. the code grows ever uglier, but it seems to work better now, particularly with message/delivery-status MIME, which, by the way, is now passed by default like text/plain is. spaces are now permitted in a comma-separated list of mime types (specified on the command line for use with, say, the -i flag), but for crying out loud, enclose the list in quotes if you're going to put spaces in there, otherwise they'll be interpreted as separate arguments, which will result in bad behavior. updated some of the documentation a bit. made the default MIME type of a MIME section text/plain per RFC 2045, though i apologize and promise i won't let the RFCs interfere with this code ever again. also, webtv's MTA seems to send out bounces with a text/rfc822-headers MIME type, so, what the hell, we'll treat that like we do message/rfc822. 0.8.2a - 2/24/2000 - fixed a small but stupid error that caused a variety of bad bevaior. good thing i don't write medical software. diff this with 0.8.2 if you want to find the one line to remove ("$done=1;" around line 225) that fixes 0.8.2 and makes it 0.8.2a (hardly worth a whole new version number...) 0.8.2 - 2/23/2000 - fixed a couple of STUPID STUPID bugs, tried to implement an "input arbitrator" to let code push input back into to the input stream if it read in too much (remember, we're a filter ... one pass only), but that was a dumb idea, or at least badly implemented, so now there's a nifty a?b:c sort of trick in the main while loop. one line of push-back only, but that should be all we need. anyway, there may still be bugs related to that or other failed efforts (wait, am i supposed to admit to that? hmm), so proceed with extra caution and be on the look out for a hastily-released 0.8.3 with bugfixes. smart enough to release code with $DEBUG=1 commented OUT this time. oy... 0.8.1 - 2/ 9/2000 - minor bugfix release to fix parsing of content-type header, possibility that related quirks still exist 0.8.0 - 2/ 6/2000 - major release -- added -b feature to override non-MIME bodies of MIME messages, added support for nested MIME sections, fixed a bunch of really irksome bugs. UPGRADE! 0.7.5 - 12/28/1999 - added -r feature -- print notice when stripmime removes a MIME section (see HEY-YOU-README file) 0.7.4 - 12/28/1999 - fixed bugs related to improper handling of MIME section header fields and WebTV MIME formatting 0.7.3 - interim/testing version number, never released 0.7.2 - 12/23/1999 - fixed bug related to post-MIME text in email fixed bug related to bad behavior on mimeless email 0.7.1 - interim/testing version number, never released 0.7.0 - 12/22/1999 - initial public release 0.0.0 through 0.6.9 - internal/private releases and testing