From: Stephen Reese [mailto:[EMAIL PROTECTED]
> 
> And here's my maildroprc:
> 
> if ( $SIZE < 26144 )
> {
>         exception {
>                 xfilter "/usr/bin/spamassassin"
>         }
> }
> if (/^X-Spam-Flag: *YES/)
> {
>         exception {
>                 to "$HOME/Maildir/.Trash/"
>         }
> }
> else
> {
>         exception {
>                 to "$HOME/Maildir/"
>         }
> }
> 
> 
> Would this have any effect of the $HOME/.courier and
> $HOME/.mailfilter being read? I don't seem to get any information
> and /var/log/mail* so I'm wonder if maildrop is even seeing my
> $HOME/.mailfilter?

I changed the subject as this doesn't seem to have any relation to
the original email.  I think you probably replied to the wrong email.

If $HOME/.courier exists, then it will be read and used instead of
your DEFAULTDELIVERY.  It may or may not call maildrop to finish
delivering the email.

If maildrop is being used (as DEFAULTDELIVERY or from your .courier
file), then /etc/courier/maildroprc will be read.  If maildroprc does
not complete delivery of the email, then $HOME/.mailfilter will be
read.

Your problem here is that the 'to' command completes the email
delivery.  As soon as maildrop processes the 'to' command, it exits.
Since there is a 'to' command in both the 'if' and 'else' clauses,
your maildroprc file will always complete delivery and your
.mailfilter file will never be read.  Get rid of the 'else' clause
here and then the .mailfilter file will be used for any mail that is
not flagged as spam.

Keep in mind that $HOME/Maildir is the default delivery location for
maildrop, so you don't need to specify it.  If maildrop goes through
both maildroprc and .mailfilter without completing the email
delivery, then it will automatically deliver the mail to
$HOME/Maildir.

Bowie



-------------------------------------------------------
This SF.Net email is sponsored by: INetU
Attention Web Developers & Consultants: Become An INetU Hosting Partner.
Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
_______________________________________________
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users

Reply via email to