Steven Schneider wrote:
> 
> Anyhow, I'm on a couple of mailing lists and am beginning to find that
> my inbox is getting quite full.  What program is the best to use for
> sorting my incoming messages into different folders?  I've heard that
> Procmail is user-hell, but I know people who swear by it. Is there a
> better program to use, or is Procmail "the" software?

well there is definitely other software, but i am quite happy with
procmail.  it's true that it's a bit difficult to grasp at first, but
it's not really that bad.  if you're used to using regular expressions
(i wasn't when i started using procmail) it will make a bit more sense.
there are some good tutorials online that will get you started, and
making basic recipes is actually pretty simple.

here's a brief set of examples.... 

assuming you're using mbox (for maildir, omit the lock file and add a
trailing slash to the folder name), you can do something like:

someone you don't like:
:0:                             *start a recipe and use a lockfile
* ^Return-Path: <ameno@2-step\.com|\
  ^Return-Path: <pull@2-step\.com
/dev/null                       #send to the bit bucket

mailing list
:0:
* ^Sender: owner-postfix-users@postfix\.org
lists:postfix                   * stick in mbox folder 'lists:postfix'

:0:
* ^Return-Path: <mutt-users-owner
lists:mutt

:0:
* ^Return-Path: <owner-freebsd-security@FreeBSD\.ORG
lists:bsdsec

etc. etc.  the TO_ operator is a bit different since it matches To:,
CC, etc.  this is a bit more expensive so only use it if you need to.

:0:
* TO_docs@newdream\.net
ndn:docs

my actual recpies look more like this, since i use maildir; the second
colon is ommited because i'm not using a lockfile, and the trailing
slash is used to denote a maildir folder.

:0
* TO_docs@newdream\.net
ndn:docs/

if you care to, you can get way more in depth with procmail (ie scoring,
spam filters, etc).  i mostly just use it for sorting into folders, and
i also use spambouncer (www.spambouncer.org), which is procmail based.

some links that might be helpful:

http://www.ii.com/internet/robots/procmail/qs/
http://www.procmail.org
http://www.ling.helsinki.fi/users/reriksso/procmail/
http://www.uwasa.fi/~ts/info/proctips.html

-- 
William Yardley                   System Administrator, Newdream Network
[EMAIL PROTECTED]         http://infinitejazz.net/will/pgp/gpg.asc

Reply via email to