Peter, > > Is there anyway I can preserve the X-DSPAM-Signature in the headers > > when an email is tagged as spam? I'm just using SA's static rules > > and DSPAM's bayesian capability. > > In spam email, the X-DSPAM-* headers are missing... > > Just point me to the right piece of code to look at.
If we are talking about passed spam mail, the X-DSPAM* header fields should be there. If what you have in mind is the quarantined copy of the mail, it really does not receive X-DSPAM* header fields. It is a bit tricky to let X-DSPAM* fields reach the quarantine. The $hdr_edits->add_header called in Amavis::SpamControl::SpamAssassin::check is able to insert X-DSPAM* fields into the mail-to-be-forwarded because the object holding a message ($msginfo) already exists, and has the place in $msginfo->header_edits where header edits can be stored. Unlike the $msginfo object (the mail being processed, to be forwarded eventually), an object holding a mail to go into quarantine does not yet exist at the time DSPAM is being called. This object only springs to life in sub do_quarantine by a call my($quar_msg)=Amavis::In::Message->new; To be able to modify its header, the information from Amavis::SpamControl::SpamAssassin::check would somehow need to be carried over to the time of a do_quarantine call, perhaps in a global variable or with some other trick. Mark ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 _______________________________________________ AMaViS-user mailing list AMaViS-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/amavis-user AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3 AMaViS-HowTos:http://www.amavis.org/howto/