procmail
[Top] [All Lists]

Re: Need help from the procmail rule gods. (simplified)

2002-11-22 04:30:38
Well I'm back to having problems with exit status and my filter again.

I currently have this

:0 Wf:$HOME/filtmail.lock
| $HOME/.filtmail/filtmail

:0e
{
 :0hf
 * ^^rom( )
 | sed '1s/^rom/From/'

 :0
 * ^TOann(_at_)elastica(_dot_)com
 $ANNDEFAULT

 :0
 * ^TOrobert(_at_)elastica(_dot_)com
 $DEFAULT
}

when my filtmail script exits with a status or 0 for some reason it's matching
the ^TO(_at_)elastica(_dot_)com

rule.

Why?

It should only go in that block if filtmail returns a non zero exit status.

and

currently filtmail will output stuff to stdout but that shouldn't mean it completed successfully.

procmail: Locking "/usr/home/steffi/filtmail.lock"
procmail: Executing "/usr/home/steffi/.filtmail/filtmail"
procmail: Unlocking "/usr/home/steffi/filtmail.lock"
procmail: No match on "^^rom( )"
procmail: No match on "(^((Original-)?(Resent-)?(To|Cc|Bcc)|(X-Envelope|Apparently(-R
esent)?)-To):(.*[^a-zA-Z])?)ann(_at_)elastica(_dot_)com"
procmail: Match on "(^((Original-)?(Resent-)?(To|Cc|Bcc)|(X-Envelope|Apparently(-Rese
nt)?)-To):(.*[^a-zA-Z])?)robert(_at_)elastica(_dot_)com"
procmail: Assigning "LASTFOLDER=/usr/home/steffi/users/steffi/mail/robertsmail/new"
procmail: Opening "/usr/home/steffi/users/steffi/mail/robertsmail/new"
procmail: Acquiring kernel-lock
procmail: Notified comsat: "steffi(_at_)118860:/usr/home/steffi/users/steffi/mail/robertsm
ail/new"

Note this shows a zero exit status so why does it evaluate rules in that :0e block?


_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail