[plug] Procmail question

Anthony J. Breeds-Taurima tony at cantech.net.au
Tue Aug 13 11:01:41 WST 2002


On Tue, 13 Aug 2002, Trevor Phillips wrote:

> On Monday 12 August 2002 21:55, Michael Hunt wrote:
> >
> > Problem solved for you successfully then ???
> 
> Actually, not quite. ^_^
> It seems to be executing the Subject Mangle bit fine, but then it ignores the 
> next Delivery line, falls through, and is delivered by another later match.
> 
> Have I stuffed up a flag or something? Here's the code I'm using again:
> 
> :0:$CYUSER.lock
> * ^Subject:.*foo.*test
> {
>         :0fhw
>         | /usr/bin/perl -pe '!/^(Subject:.*)\[FOO\]/s && 
> s/^(Subject:\s*)(.*)$/${1}[FOO] $2/s;'
>         | $DELIVERMAIL -e -a $CYUSER -m $MAIN.FooFolder
> }

I would think that you need to rules:
{
	:0fw
	| perl mangle bit
	
	:0h
	| $DELIVERMAIL -e -a $CYUSER -m $MAIN.FooFolde
}


Also try setting:

MAILDIR='/home/trevor/.mail'
LOGFILE=${MAILDIR}/.log
VERBOSE=on

Or similar in your .procmailrc the verbose stuff should help alot.


Yours Tony

   Jan 22-25 2003           Linux.Conf.AU            http://linux.conf.au/
		  The Australian Linux Technical Conference!



More information about the plug mailing list