[29918 views]

[]

Attachment stripper

I wrote this simple Python script to strip binary attachments off email messages identified by the virus scanner.

Usage

usage: stripatt.py < infile > outfile
 infile       original message in RFC-822 format, 
              can use multipart MIME according to RFC-1341
 outfile      processed message without binary attachments
 
Removes any MIME parts from the message on stdin that are 
not text/*, message/* or multipart/* type.
Empty mulitpart/* parts are removed automatically. The 
message is then written to stdout.

Prerequisites

Python 2.3

Download

stripatt.py

License

© 2004 by Ortwin Glück
This is free software. Free as in "freedom" and "free beer".