develooper Front page | perl.qpsmtpd | Postings from December 2010

body_(re)write method in Transaction.pm

Thread Next
From:
Ryszard
Date:
December 23, 2010 17:01
Subject:
body_(re)write method in Transaction.pm
Message ID:
AANLkTinYHzc52qLMfHwRmv=dKHYZoVp46tTZrdn_ypr0@mail.gmail.com
Hi All,

I'm having a bit of trouble rewriting and entire message body with the
standard api calls.  what i would like to do is add header text to the
body of an email.

i've set the size_threshold to zero and performed a body_resetpos  to
attempt to re-write the message body, however cant seem to get this to
work.

i've had a look thru' the Transaction.pm code and figure its not hard
to clone the body_write method to be something like body_rewrite so i
can rewrite the entire body.

A couple of questions:
1) have i done something incorrect, or have missed something that will
allow me to rewrite the entire message body?
2) are patches being accepted in the case i have not missed anything?

regs
ryszard

Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About