procmail
[Top] [All Lists]

Re: executing a program on match

2004-08-28 08:59:44
Am 2004-08-28 09:09:44, schrieb Bill McCormick:
Michelle Konzack wrote:

:0
* ! LISTNAME ?? ^^^^
{
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"

:0
* ! LISTNAME ?? ^^^^
.$LISTNAME/
          ^
          |
You try to write to a MAILDIR !!!
So you need the trailing "/" at the end !

Greetings
Michelle

-- 
Linux-User #280138 with the Linux Counter, http://counter.li.org/ 
Michelle Konzack   Apt. 917                  ICQ #328449886
                   50, rue de Soultz         MSM LinuxMichi
0033/3/88452356    67100 Strasbourg/France   IRC #Debian (irc.icq.com)

Attachment: signature.pgp
Description: Digital signature

____________________________________________________________
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
<Prev in Thread] Current Thread [Next in Thread>