From: Sam Varshavchik [mailto:[EMAIL PROTECTED]
>
> Bowie Bailey writes:
>
> > From: Sam Varshavchik [mailto:[EMAIL PROTECTED]
> >>
> >> Bowie Bailey writes:
> >>
> >> > On a related topic, is there any way to prevent a DSN from
> >> > being sent for a message that is marked as spam? Is there
> >> > something I can put in my maildroprc to prevent a DSN from
> >> > being sent?
> >>
> >> Terminate filtering with an explicit exit statement.
> >
> > The filter is already terminated with a delivery instruction. All
> > the filter knows is that the mail is delivered to a mailbox. How
> > do I prevent the DSN if the mailbox is full?
>
> Use the exception statement, coupled with some additional logic.
Ah...I see.
I assume it would look something like this?
If ( /^X-Spam-Flag: YES/ )
{
# Attempt delivery
exception
{
to "./Maildir/"
}
# Exit with no DSN if delivery fails
exit
}
else
{
# Normal delivery with DSN
to "./Maildir/"
}
Also, since the delivery instructions are not the same for all my
accounts, I would have to add this logic to the .mailfilter for each
account. Is there an easier way? Can I make this script act as the
default delivery instruction (i.e. used for any account that doesn't
have an explicit TO or EXIT command in it's .mailfilter)?
Bowie
-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
_______________________________________________
courier-users mailing list
[email protected]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users