Differences between version 8 and revision by previous author of SpamAssassin.
Other diffs: Previous Major Revision, Previous Revision, or view the Annotated Edit History
Newer page: | version 8 | Last edited on Wednesday, July 21, 2004 6:27:25 am | by SpamAssassin | Revert |
Older page: | version 7 | Last edited on Sunday, November 30, 2003 12:23:24 pm | by JohnMcPherson | Revert |
@@ -22,22 +22,25 @@
* add a filter rule to Evolution: if specific header X-Spam-Flag = YES, drop the email in my Spam folder
.fetchmailrc:
- poll mail.myisp.co.nz
- user "pop3user" password "secret" is user "localuser" here
+ poll mail.myisp.co.nz protocol POP3
+ user "pop3user" password "secret" is user "localuser" here mda "/usr/bin/procmail";
.procmailrc
+ :0 fhw
+ | formail -I "From " -a "From "
:0fw
| spamassassin
Note: older versions of spamassassin needed a "-P" option to tell it to read from a pipe, but that is now the default.
+The formail line corrects incoming messages for programs like evolution and mail by readding the From line.
~/bin/getmail:
#!/bin/bash
- /usr/bin/fetchmail -m /usr/bin/procmail
>> ~/log/fetchmail
+ /usr/bin/fetchmail >> ~/log/fetchmail
crontab:
*/5 * * * * /home/localuser/bin/getmail