Procmail filtering
Alexander Dalloz
ad+lists at uni-x.org
Sat Jan 14 19:31:57 UTC 2006
Am Sa, den 14.01.2006 schrieb Lovell Mcilwain um 16:31:
> I seem to be having a bit of trouble getting procmail to filter e mails
> to individual mailboxes on my FC4 machine.
>
> I am using fetchmail to poll my email to my machine and I want to use
> procmail rather my then my mail client to filter my e mail. I don't
> have many mailboxes but I change machines often enough that its hard to
> keep updating my mail client filters.
>
> When I tail my mail.log file it does show that .fetchmail is looking at
> my .forward file in my home directory so I am assuming that there is an
> issue with the syntax of my .procmailrc file. Im new to using procmail
> so I copied and pasted some procmail examples into my .procmailrc file
> and gave it a whirl but no luck.
>
> Any help is appreciated..
>
>
> Here are what I have in my files:
>
> .forward:
>
> "|IFS=' ' && exec /usr/bin/procmail || exit 75 #myusername"
Why that kind of call? I assume you run local MTA, which is Sendmail.
Correct? Then Procmail is called automatically and you don't need to use
a .forward for this.
> .procmailrc:
>
> # .procmailrc
> # routes incoming mail to appropriate mailboxes
> VERBOSE=off
Why off? You are debugging, so use the power of logging verbosely.
> MAILDIR=~/mail/IMAP #elm users might use $HOME/Mail instead
^^^ ? Really intended?
Be aware that "MAILDIR" does not imply to get Maildir format storage.
> #PMDIR=~/.procmail
> DEFAULT=/var/mail/username
/var/spool/mail/<user> | /var/mail/<user> is the default INBOX spool, no
need to set that explicitly.
> LOGFILE=~/procmail.log
Look into your logfile for analyzing.
> #INCLUDERC=$PMDIR/default.rc
> #INCLUDERC=$PMDIR/general.rc
> #INCLUDERC=$PMDIR/lists.rc
> #INCLUDERC=$PMDIR/guestbook.rc
> #INCLUDERC=$PMDIR/spam.rc
>
> # Put mail from mailing lists into mailboxs
> :0:
> * ^Subject:.*[Subject]
You have to escape special signs like "]".
> Groups
Better use absolute paths.
> :0:
> * ^From.*fedora.*list.*list.*@
? The Fedora list is the recipient, not the From: sender. You may want
to catch
* ^Sender:.*fedora-list-bounces at redhat\.com
> Fedora2
Very verbose Procmail documentation:
http://pm-doc.sourceforge.net/pm-tips-body.html
Alexander
--
Alexander Dalloz | Enger, Germany | GPG http://pgp.mit.edu 0xB366A773
legal statement: http://www.uni-x.org/legal.html
Fedora Core 2 GNU/Linux on Athlon with kernel 2.6.11-1.35_FC2smp
Serendipity 20:10:37 up 41 days, 47 users, load average: 0.16, 0.16,
0.16
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: Dies ist ein digital signierter Nachrichtenteil
URL: <http://listman.redhat.com/archives/fedora-list/attachments/20060114/cd776153/attachment-0001.sig>
More information about the fedora-list
mailing list