rewriting body with contents of attachment

[email protected] (Loren Carvalho)
Newsgroups perl.qpsmtpd
Organization http://groups.google.com
Message-ID <048aa04d-4d9a-4f8c-830c-1b53588b5bf5@x21g2000yqa.googlegroups.com>
Hey all,

I've been reading this group for a while now, and I'm stumped so I
decided to come here to ask for help...

I've got a pretty robust plugin written for qpsmtpd that inserts
parsed received mail into a SQL database and the raw text of the mail
onto a fileserver... It works great, it's fast, and it does everything
I want it to do. Almost.

There are emails that it receives where the *actual* email is attached
to a fwd'd message. I'm trying to come up with a way to essentially
take the attachment and write it back to the $transaction itself, so
that my previously mentioned plugin can parse it and insert as it
would with any other message.

I played around with body_resetpos and body_write, but the results
were lacking. Is it possible to empty a $transaction object and
replace it? Like you would do with any other mail::internet object?

halp!
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.