On 5/1/06, Jeff Portwine <[EMAIL PROTECTED]> wrote:
I tried ripmime, and it does extract the attachments but it throws away all
of the header information and gives me only the attachment by itself.

I wrote an extractor in procmail for simple (as in, it doesn't handle
nested structure well) MIME body parts.

http://www.well.com/user/barts/email/mimepart.txt

You'd do something like

CONTENT_TYPE=message/rfc822
INCLUDERC=mimepart.txt
RESULT=`echo "$BODY_PART" | spamc -L spam`

You probably want to avoid doing this on very large messages, as it
does slurp the entire message into a variable.

Reply via email to