procmail
[Top] [All Lists]

Re: Newbie - How do I get procmail to create a mailbox correctly?

2006-03-06 09:17:33
John Binder schreef:

  :0w
  * ^TO_username*
  /var/mail/username

The w-flag is for filters. Why 0 or more 'e'-characters? Do you want to
deliver to a file or to a maildir? For a file you need locking. The
^TO_macro is meant for addresses, see `man procmailrc`.


Delivery to mailbox-file:

   :0:
   *$ ^TO_$LOGNAME
   /var/mail/$LOGNAME


Delivery to maildir:

   :0
   *$ ^TO_$LOGNAME
   /var/mail/$LOGNAME/


Such recipes are rather flaky; you'd better test against the
${recipient} parameter.

-- 
Greetz, 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