On Mon, May 14, 2012 at 09:03:00AM +1000, Cameron Simpson wrote:
> On 13May2012 06:21, Jim Graham <spooky1...@gmail.com> wrote:
> | On Sun, May 13, 2012 at 04:53:32PM +1000, Cameron Simpson wrote:

> | OB Mutt:  I use fcc-hook frequently to store related groups of e-mail.

NOTE:  That should have been fcc-hook AND save-hook....  Oops.

> I do this in my mail filters. That way if I need to I can refile a
> message without composing an email; just copy/move it to the right spool
> folder. My setup goes:
> 
>   cron runs getmail regularly, delivers to "spool"
>   once a second, my filtering program polls spool-in (divert spam, the rest
>     to "spool"), spool (filter inbound email to various folders), spool-out
>     (file outdound email - this is $record), spool-xref (cross file
>     messages)

Here's my setup:

   cron runs fetchmail --all every even numbered minute at 0 seconds
   fetchmail hands all incoming e-mail to procmail, which is the MDA
   procmail looks through ~/.procmailrc (and included files) for a
      matching rule.  Whitelisted addresses are matched first, to
      avoid false positives.  Know/frequent spammer addresses are
      caught in a filter file called ~/.procmail/defspam, and go
      straight to /dev/null.  All others face The Gauntlet....
      Survivors go to /var/spool/jim OR to a file for its list in
      `/incoming.mail (e.g., mutt-users, android-developers, etc.).

> Most rules are one liners:
> 
>   folder tag  pattern

Procmail rules are also quite simple---here are a couple of examples:

:0:
* ^(From|To|CC).*(known_spam...@foo.com|amazon.com|spamsite)
/dev/null

:0:
* ^From.*somebody.i.k...@gmail.com
$DEFAULT

:0:
* ^Subject.*(cialis|viagra|make money fast)
/dev/null

:0:
* ^(From|To|CC).*android-developers
android-developers

and so on.  Not one-liners, but simple enough.  And, procmail's abilities
do NOT stop with these ultra-simple examples.  :-)  But, you really need
to set it as the MDA (e.g., instead of /bin/mail).  You don't have to,
but it's easier that way.

No, I didn't write procmail...I've just been a fan/user for...ummm,
at least two decades, maybe a year or two beyond that.

Later,
   --jim

-- 
THE SCORE:  ME:  2  CANCER:  0
73 DE N5IAL (/4)                  |        |\      _,,,---,,_
< Running FreeBSD 7.0 >           | ZZZzz  /,`.-'`'    -.  ;-;;,_
spooky1...@gmail.com              |       |,4-  ) )-,_. ,\ (  `'-'
ICBM/Hurr.:  30.44406N 86.59909W  |      '---''(_/--'  `-'\_)
                                  |
                                  | "Kitty!"   --Crow T. Robot (MST3k)

Android Apps Listing at http://www.jstrack.org/barcodes.html

Reply via email to