It's interesting that this discussion is going on, as i'm wanting to do exactly this.
What i'm hearing, is that the only way to have both high-level spam (lets say 15+ result from spamassassin) stopped at the smtp level, as well as an imap Spam folder for the lower stuff, is to process the messages twice.
I currently have spamassassin run using an xfilter in my maildroprc but as has been mentioned in this discussion, it doesn't stop the spam from arriving on my server, and doesn't try to help stop the spam from coming in.
I am occupied with the same quest. I believe we should join forces.
I took a look at the submit code (no, I am not used to C++ at all) and I believe that I found the place to create a hook to pass and receive back a message to SpamAssassin.
I tried to rewrite a message using a modified version of the perlfilter to see what would happen and, surprise! It worked. But Mr. Sam told me that it was just good luck. I'm not sure why.
I need to understand a bit better submit's code but I believe that closing and reopening the files around the filters calling inside submit, and so updating the filehandles, might solve the problem. Any comments Mr. Sam?
Rodrigo
-- ---------------------------------------------------- Rodrigo Severo Fábrica de Idéias Fone: +55(61)321 1357 Fax: +55(61)223 1712 SBS - Quadra 2 - Ed. Empire Center - Sala 1301 Brasília/DF - Brasil CEP: 70.070-904 ----------------------------------------------------
------------------------------------------------------- This SF.NET email is sponsored by: eBay Great deals on office technology -- on eBay now! Click here: http://adfarm.mediaplex.com/ad/ck/711-11697-6916-5 _______________________________________________ courier-users mailing list [EMAIL PROTECTED] Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users