Benedict, > I was just wondering if Mark fancied including the ability to send > something to an external script via some kind of policy to make it more > flexible in much the same way postfix can.
You mean through SMTP? Sure, chain content filters as you like. :-) There are no hooks to add code which could easily modify mail body. There is some basic functionality to supply a MIME::Entity object for forwarding in place of the original mail on a file. It is used for basic 'defanging' and for sending notifications, but is slower than forwarding mail from a temporary file. There are two approaches on how mail body could be modified within amavisd: prepare a replacement MIME::Entity object and place it into $msginfo->mail_text. This is clean, but can be slow. Alternatively, one may prepare a new temporary file with a modified mail, close original file descriptor in $msginfo->mail_text and delete old temporary file, open new file and place a new open descriptor into $msginfo->mail_text. There may be other interactions with the rest of the code, specially in the milter interface, so this can be a bit tricky to do right. Properly adding disclaimers is a black art, it is not obvious where and how to place disclaimers when MIME structure becomes more complex than single a plain text part, and even that can be tricky as it can contain uuencoded text or use various encodings and character sets and text flows - added text must be compatible with existing set of MIME options. Mark All the advantages of Linux Managed Hosting--Without the Cost and Risk! Fully trained technicians. The highest number of Red Hat certifications in the hosting industry. Fanatical Support. Click to learn more http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642 _______________________________________________ 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/
