Go to TogaWare.com Home Page.
GNU/Linux Desktop Survival Guide
by Graham Williams

Other Examples

Other Examples

A sample .procmailrc:

  * ^Resent-Sender.*debian-devel-request@lists.debian.org

  * ^Resent-Sender.*debian-user-request@lists.debian.org

The :0 begins a recipe. The following : ensures the mail file is locked. A line beginning with * begins a condition. You can have multiple conditions within a recipe. The condition ^Resent-Sender.*debian-devel-request@lists.debian.org captures email sent to the debian-devel mailing list. This matches messages that include Resent-Sender: debian-devel-request@lists.debian.org in their header. The final line of a recipe is the mailbox into which procmail will send the mail.

Copyright © 1995-2014 Togaware Pty Ltd
Support further development through the purchase of the PDF version of the book.
Brought to you by Togaware.