Horas and konnichiwa untuk semua


Procmail basics
March 4, 2005, 10:51 am
Filed under: notes/General

Syntax:

:0
* conditions, if any
| your-script-here

Flags:
:0: –> locking
Rule of thumb: Use file locking when delivering to a file. Don’t use file locking when delivering to /dev/null (because then it doesn’t matter if the message gets mangled, and you might not have the permission to acquire a lock on a device), forwarding to another address, or piping into a program. A pipeline which ends up appending to a file should still use a lock, of course, since there is the same race condition as when delivering straight to a file.
:0c –> leave a copy of the email in the server

Actions:
! –> forward email

See here for details:
http://laku19.adsl.netsonic.fi/era/procmail/mini-faq.html