procmail
[Top] [All Lists]

Re: eliminating incoming message

1996-02-06 11:23:42
Ching-Han Tsai <chtsai(_at_)crhc(_dot_)uiuc(_dot_)edu> writes:
I just started using procmail yesterday, and cannot get it configured 
correctly yet. Specifically, I have the following .procmailrc file:

##
PATH=/bin:/usr/bin:/home/bach3/chtsai/bin:/home/bach3/chtsai/bin/SUN4
MAILDIR=$HOME/Mail
LOGFILE=$MAILDIR/LOG

This could just be LOGFILE=LOG, as procmail will do it relative to
MAILDIR by default.


:0
* ^Subject:.*Cron
/dev/null

:0
* ^Subject.*FVWM
$HOME/Mail/fvwm
##

I can get a copy of all messages from the FVWM mailing list in the folder
$HOME/Mail/fvwm, but still these messages remain in the system mailbox.
What I'd like to do is to make them not appear in the system mailbox and
go to the specified folder only, so I'll not be bothered by their
arrival while I'm working. Can someone tell me how to do that? 


You mean the messages arrive in both your system mailbox and in the
fvwm folder?  procmail will only deliver a message more than once if
you use the 'c' flag on a recipe.  Are you sure you don't have that?

Alternatively, are you using the testing setup in your .forward like
this:

        \chtsai,"|/usr/local/bin/procmail #chtsai"

If so, remove the '\chtsai,' as that causes a copy to _always_ be saved
to your system mailbox.


BTW: When filtering mailing lists, you usually want to sort not on the
subject but rather on the 'Return-Path' (if your system supports it) or
'From ' headers.

:0
* ^Return-Path: .*fvwm-owner
fvwm

You should look at what shows up in the Return-Path normally and use
that instead of 'fvwm-owner'.  For example, I have the following in my
.procmailrc:

:0
*       ^Return-Path: 
+procmail-request(_at_)informatik\(_dot_)rwth-aachen\(_dot_)de
        Lists/procmail/.

That's more specific than needed, but it works quite nicely.



Philip Guenther

----------------------------------------------------------------
Philip Guenther                 UNIX Systems and Network Administrator
Internet: guenther(_at_)gac(_dot_)edu   Phonenet: (507) 933-7596
Gustavus Adolphus College       St. Peter, MN 56082-1498
Source code never lies (it just misleads).  (Programming by Purloined Letter?)

<Prev in Thread] Current Thread [Next in Thread>