From: "Lovell Mcilwain" <lovell.mcilwain@xxxxxxxxx>
jdow wrote:
...
He specifically said he was using fetchmail.
So here is the fetchmail -> procmail part of his picture.
===8<--- For account jdow
defaults mda "/usr/bin/procmail -d jdow"
set syslog
set postmaster ""
set no bouncemail
set no spambounce
set properties ""
# following is for debug.
#set logfile fetchmail_el.log
poll smtp.earthlink.net with proto POP3
user 'jdow' there with password 'ASDFGHJKL'
is 'jdow@xxxxxxxxxxx' here options pass8bits
smtpaddress ' '
===8<---
Then you have the .procmailrc to setup.
===8<---
#############################################################################
# Necessary generic definitions
#############################################################################
DROPPRIVS=yes
VERBOSE=yes
LOGNAME=procmail
# Example folder diversion with clone so email also appears in main
folder
:0c: clone.lock
* ^List-Id: .*(spamassassin\.apache.\org)
$HOME/mail/rawmbox
# Example folder diversion without clone. I'm indecisive about the real
# destination for the UOL crap.
:0:
* ^From: AntiSpam UOL <.*@uol.com.br>
#/dev/null
/$HOME/mail/uol_crap
===8<--- And so forth.
{^_^}
So it loks like I have all of my logs working properly and mail is being
looked at through procmail from what I can tell in the fetchmail and
procmail log files that are generated in my home directory. But it
still looks as though procmail is not filtering the mail. Based on me
just looking at the log file Im still think that I am not able to set up
the filter properly.
Fetchmail.Log shows:
procmail: [2668] Sun Jan 15 11:09:49 2006
procmail: Assigning "LOGNAME=procmail.log"
procmail: Assigning "LOGFILE=procmail.log"
procmail: Opening "procmail.log"
Procmail.Log shows:
procmail: No match on "^Sender:.*fedora.*list.*list.*@"
This is what you need to match:
Sender: fedora-list-bounces@xxxxxxxxxx
How does your pattern match it? You are looking for list twice.
* ^Sender: fedora-list-bounces@xxxxxxxxxx
Try the above like. I think you might like it better.
procmail: Bypassed locking "/var/spool/mail/lmcilwain.lock"
procmail: Assigning "LASTFOLDER=/var/spool/mail/lmcilwain"
procmail: Opening "/var/spool/mail/lmcilwain"
procmail: Acquiring kernel-lock
procmail: [2660] Sun Jan 15 11:04:28 2006
procmail: Notified comsat: "procmail.log@35131897:/var/spool/mail/lmcilwain"
From lmcilwain Sun Jan 15 11:04:27 2006
Subject: Re:OT: Laptop screen died
Folder: /var/spool/mail/lmcilwain
So I guess my question at this point is, where is a good place that I
can reference different syntax' for setting up simple filters either by
full e mail address or a word contained in the subject line including
how to use escape characters. I have been googling for most of the
morning and I have yet to see clear documentation on what syntax
performs what function.
Two excellent man files are:
man procmailrc
and
man procmailex
The second one is examples, some pretty exotic. They can help you get going.
{^_^}