Gossamer Forum
Home : Products : Gossamer Mail : Discussion :

Forward and Spam Filters

Quote Reply
Forward and Spam Filters
Is this possible....
If the Forward email box is checked in the options section, can the email that is being forward be check against the spam filter list before it gets sent to the forward option?
I hope that makes sense.


Quote Reply
Re: [pcmike] Forward and Spam Filters In reply to
Yes, you can. You just need to move the forwarding code in incoming.pl (around line 750), to be after the spam and filtering code. The forwarding code looks like this:
if ($USER->{opts}->{mailbox}->{forward_email} and $CFG->{limits}->{forwards} and $USER->{opts}->{mailbox}->{forward_email_to} =~ m/^$VALID_CHARACTERS\@.+/) {
$PLG->dispatch('incoming::forward', \&forward, $num, $mail) or next MESSAGE;
next USER unless $USER->{opts}->{mailbox}->{save_forwarded};

I've made this change in cvs, so it should be like this in future releases as well.


Last edited by:

brewt: May 13, 2004, 4:51 PM