If this has all worked correctly—congratulations! You are well on the way to organizing your mail.
If it didn't quite work as expected, there are a number of simple things we can do to find out what the problem is.
As with any programming process, if at first it doesn't work, check the code to make sure that there were no obvious typos introduced during the editing phase.
If that doesn't highlight anything, you can look at the log file created by Procmail. In this case, the log file is called pmlog
in the ~/Procmail
directory. To look at just the last few lines, use the following command:
tail ~/Procmail/pmlog
In the following example there is a missing :0
so that the rule lines are being skipped:
* ^Subject:.*hello world
TEST-HelloWorld
This would give the following errors:
procmail: [10311] Mon Jun 8 18:21:34 2009 procmail: Skipped "* ^Subject:.* hello world" procmail: Skipped "TEST" procmail...