procmail
[Top] [All Lists]

Re: Procmail vs perl script syntax

2006-08-18 15:46:06
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


____________________________________________________________
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