Christoph,
> > $defang_spam = 1; # old style, applies the first available mangler
>
> That's close to what I want, it sends the spam report with the embedded
> original mail. But I prefer the opposite: Sending the original mail with
> embedded spam report. Is that possible?
You could try swapping both "eval { $new_entity->attach... }"
sections in sub defanged_mime_entity, which will hopefully place the
text part last, but the original message would still be wrapped into
a message/rfc822 MIME wrapper, which may not be what you have in mind.
Without a major hack it is currently not possible to edit the original
MIME structure as kept in a MIME::Entity object and use that for mail
forwarding. One reason is that some parts (kept on files) may no longer
be available at the time of mail forwarding. All that we reliably have
is the original mail on a file (with an open descriptor).
Mark
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
AMaViS-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/amavis-user
AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3
AMaViS-HowTos:http://www.amavis.org/howto/