procmail
[Top] [All Lists]

Re: executing a program on match

2004-08-28 07:24:25
Bill McCormick wrote:

Michelle Konzack wrote:

Am 2004-08-28 08:21:16, schrieb Bill McCormick:

[snip]

MAKENEWDIR=`test -d $MAILBAG/.$LISTNAME  || maildirmake -f $LISTNAME


You do not need this, becaus 'procmail' create the right Directory if it does not exist and it works perfectly with courier-imap.

Well, I must be missing something then because without it ...

procmail: Assigning "DEFAULT=new"
procmail: Assigning "MATCH="
procmail: Matched "test-list"
procmail: Score: 2147483647 2147483647 "^(Sender:[
]*owner-|X-BeenThere:[  ]*|D
elivered-To:[       ]*mailing list )\/[-A-Za-z0-9_+]+"
procmail: Assigning "LISTNAME=test-list"
procmail: Match on ! "^^^^"
procmail: Assigning "LASTFOLDER=.test-list/new"
procmail: Opening ".test-list/new"
procmail: Error while writing to ".test-list/new"

If just I do ....

 :0
 .${LISTNAME}

... without the "/new", then yes, the folder seems to be created but then the message ends up in the folder .${LISTNAME} and not .${LISTNAME}/new so my MUA doesn't see it.

So again, I must be missing something trivial.

Thanks




____________________________________________________________
procmail mailing list   Procmail homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail