LinuxSA Mailing list archives

Index: [thread] [date] [subject] [author]
  From: Benjamin Close <linux@senet.com.au>
  To  : Adam Hawes <adam@overfiend.freeservers.com>
  Date: Fri, 17 Sep 1999 08:49:56 +0930 (CST)

Re: Filtering Mail

On Thu, 16 Sep 1999, Adam Hawes wrote:

> 
> Hi all.
> 
> I regularly use fetchmail to fetch my mail from a multi-drop mailbox.  Is
> there a way to filter the mail (easily) so that it puts messages from some
> senders (mainly lists) in my mailbox rather than the postmasters when it
> cannot resolve the name on my machine?
> 
> I am subscribed to a list that sends mail to the list with all the
> recipients in the BCC fields; so fetchmail doesn't process it properly.
> 

There is a very easy way.
Use procmail.

Lets say that fetchmail delivers from internet.com to user foo locally.
In foo's home directory you create a file .procmailrc
In this file you put something like:

# Move linuxsa stuff to the correct file
:0:
* ^X-Loop: linuxsa@linuxsa.org.au
mail/LinuxSA

# Move Networks related info to the required folder
:0:
* ^TOnetworks@internet.com
mail/Networks

#send anymail from the the badlysetupmailinglist to fred
:0
* ^CCbadlysetupmailinglist@internet.com
! fred                   


#anything ends up in foo's inbox


Cheers,
--

* Benjamin Close
* Benjsc@senet.com.au
* Web Page: http://users.senet.com.au/~benjsc

-- 
Check out the LinuxSA web pages at http://www.linuxsa.org.au/
To unsubscribe from the LinuxSA list:
  mail linuxsa-request@linuxsa.org.au with "unsubscribe" as the subject


Index: [thread] [date] [subject] [author]
Return to the LinuxSA Mailing List Information Page