procmail
[Top] [All Lists]

Re: Procmail vs perl script syntax

2006-08-18 22:24:07
From: "Ruud H.G. van Tol" <rvtol(_at_)isolution(_dot_)nl>
To: "[procmail]" <procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE>
Subject: Re: Procmail vs perl script syntax
Date: Sat, 19 Aug 2006 00:23:18 +0200

Jack Stone schreef:

    :0
    $SORBS

(1) If $SORBS has a value ending in a slash, then this recipe is OK,
because it means maildir-type delivery. But I then would take the
end-slash out of SORBS and write it as

     :0    # maildir-type delivery, no locking required
     $SORBS/


(2) If $SORBS doesn't end in a slash, but is an existing directory, then
this recipe is also OK, because procmail will deliver to a unique
filename (see MSGPREFIX in man procmailrc).


(3) But if $SORBS is meant as a plain file, then you need to put a colon
after the 0, for locking.

See man procmailrc, look for 'mailbox'.

In cases (1) and (3), it is best to let procmail create the mailbox. For
(2) you will have to create the directory beforehand, or procmail will
create a mailbox-file.

--
Groet, Ruud


OUCH! Right you are. Thanks for the catch and to all others that helped on 
this one.

Jack

_________________________________________________________________
On the road to retirement? Check out MSN Life Events for advice on how to 
get there! http://lifeevents.msn.com/category.aspx?cid=Retirement


____________________________________________________________
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>