Odhiambo Washington asked:
I saw this and went ahead to test it but it ends up creating a file called
$ which apparently takes all newly incoming mail.
Here is what I tested:
# add the first line from the body to spam word list
* ^From: $LOGNAME
* ^Subject: weird-add
| sed -n 1p >> $PMDIR/.weird
The only hitch here is that it's not creating the
file .weird but just puts the e-mail in $DEFAULT.
Have you set PMDIR to something? If not, you probably don't
have permissions to write to file /.weird (in the root directory).
Other possibilities are that you don't have matches on your
"From" and "Subject" header conditions, or that for some reason
you don't get to that recipe.
(What's the point of trying to use a named lockfile, anyway? As far
as I can see, you only need to lock $PMDIR/.weird, and the default
lockfile should do just fine for that.)
Turn on verbose logging and it should be much more obvious what
conditions are being tested and what's going where.
procmail mailing list