On Mon, Jun 10, 2002 at 12:32:53PM -0600, Jake Edge wrote:
> 
> It looks like this has been reported a couple of times, but I could find
> no resolution in the archives ... version 2.20 of SA, version 2.1 of
> Mail::Audit.  When I call rewrite_mail(), I get the following error message
> (some of the time):
> 
> you cannot use body() to set the encoded contents
>  at /usr/lib/perl5/site_perl/5.6.1/Mail/SpamAssassin/EncappedMessage.pm line 37

Spent some time chasing this down, so here is the answer to my own 
question ...

It would appear that there is some problem using the body() method to set
the body of a MIME::Entity message type ... a workaround that seems to work
for me is to use the 'nomime' option to Mail::Audit :

$msg = Mail::Audit->new(nomime => 1);

As far as I can tell, this solves (or works around) the problem ...

jake

_______________________________________________________________

Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas - 
http://devcon.sprintpcs.com/adp/index.cfm?source=osdntextlink

_______________________________________________
Spamassassin-talk mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/spamassassin-talk

Reply via email to