Philip Guenther | 1 May 04:00 1998
Picon

Re: procmail/sendmail general filter question

abeck <at> falcon.org writes:
>ok, im subscribed to the list now.. no need to send me a direct copy.. :)
>(thanks to all of those who did!)

If you don't want the direct copy, you should, if you can, put a

	Reply-To: procmail <at> informatik.rwth-aachen.de

header in your outgoing messages.

>On Wed, 29 Apr 1998, Philip Guenther wrote:
>
>to make a long story short, i've boned up on m4.. i like it :)
>i've thrown this into my .mc file:
>
>LOCAL_RULE_0
>R$*< <at> $+>$*      $#procmail $ <at> /etc/procmailrc $:$1 <at> $2procmail$3
>R$*< <at> $*.procmail>$*     $1 <at> <$2>$3       map back of procmail copy
>
>it puts it in S98.. 

Looks good.

>> 	# If you haven't extracted the envelope sender from $ <at>  already:
>> 	SENDER = $1
>> 	SHIFT  = 1
>
>what im wondering is, does it throw it into the right place, in regards to
>using the above suggestion?  

(Continue reading)

Philip Guenther | 1 May 04:03 1998
Picon

Re: double action

Liutauras Lipavicius <liutauras <at> nomagic.com> writes:
>I need to copy an e-mail message to two locations. I'm trying to the
>following:
>
>
>^Subject:.*test
>.testmail
>
>        :
>        ^Subject:.*test
>        $MAIL
>
>
>though it performs only the first part. The message is never saved to
>the $MAIL file.
>Could somebody help me out?

The first recipe is missing the 'c' flag.  Also, rather then testing
the same condition twice, you can use the 'A' flag to chain the actions.
To use the modern procmail recipe syntax:

	:0 c
	* ^Subject:.*test
	.testmail

	:0 A
	$MAIL

If your version of procmail doesn't like the above recipes, you really
need to upgrade, as the above syntax was added in 2.90 back in 1993.
(Continue reading)

Philip Guenther | 1 May 04:06 1998
Picon

Re: Filtering out from a smartlist

Jacques Gauthier <jacques_g <at> yahoo.com> writes a while ago:
>I placed a filter in my .procmailrc so that it would
>delete anything not addressed to me.  ei:
>The TO field does not contain my  email address.
>
>This works well except that my mailing list still
>posts it to everyone.
>
>(My .forward file looks like this)
>
>salsa-request: "|exec /home/salsa/slist/.bin/flist salsa-request"
>salsa: "|exec /home/salsa/slist/.bin/flist salsa"
>"|IFS=' ' && exec /home/salsa/procserver/bin/procmail -f- || exit 75 #salsa" 

Those first two lines belong in the system alias file, say, /etc/aliases,
not your .forward file.

Philip Guenther

Felix Tilley | 1 May 07:05 1998
Picon

Re: Favorite Recipes

>Quoting ftilley <at> goodnet.com%INTERNET
>(ftilley#064#goodnet.com%INTERNET <at> email.mot.com):
>> :0
>> * ^Subject:.*\$\$\$
>> /dev/null
>
>What does this condition do?
>

It deletes any incoming email with the substring $$$ in the subject
line/header.  A lot of spam contains dollar signs in the headers - or
rather they used to contain dollar signs.  I am not real sure if it works
anymore.  The spammers may have learned to omit $$$ in the headers.

Felix

----
I receive the Procmail list in digest format.  I may be a few days behing
the time in responding.

Liviu Daia | 1 May 08:40 1998
Picon

Re: procmail/sendmail general filter question

On 30 April 1998, Philip Guenther <guenther <at> gac.edu> wrote:
> abeck <at> falcon.org writes:
> >ok, im subscribed to the list now.. no need to send me a direct
> >copy.. :) (thanks to all of those who did!)
>
> If you don't want the direct copy, you should, if you can, put a
>
>       Reply-To: procmail <at> informatik.rwth-aachen.de
>
> header in your outgoing messages.
[...]

... or set the "Mail-Followup-To:" header to the same address, and
hope that at some point in the future the MUAs out there will honor it
(although IMO this is not likely to happen in a near future). :-)

    Regards,

    Liviu

--

-- 
Dr. Liviu Daia                   e-mail:   daia <at> stoilow.imar.ro
Institute of Mathematics         web page: http://www.imar.ro/~daia
of the Romanian Academy          PGP key:  finger daia <at> stoilow.imar.ro

Walter Dnes | 1 May 09:17 1998
Picon

Re: Favorite Recipes

A *SPECIAL* favourite just for this list<g>.  Because I
shouldn't have to type in the Reply address manually.  This
one re-writes the "Reply-To:" address.  I have a similar one
for another mailing list that is similarly (mis)configured...

:0 fhw
* ^Resent-Sender: procmail-request <at> Informatik\.RWTH-Aachen\.DE
* !^Reply-To:.procmail <at> Informatik\.RWTH-Aachen\.DE
  | formail -i "Reply-To: procmail <at> informatik.RWTH-Aachen.DE"

=============================================================

  The workhorse that still captures 90%+ of spam I trap.  At
the beginning of my .procmailrc, I divert mailing lists and
define variable MYISP. Interlog owns both interlog.com and
interlog.net domains...

MYISP="interlog\.(com|net)"
:0
*$!^(Sender|From|Reply-To):.*$MYISP
*$!^(Apparently.*|To|Cc):.*$LOGNAME <at> $MYISP

DIAGNOSTIC="///////////////////// Not addressed to me"
{
:0:
| echo $DIAGNOSTIC>>junkmail ; cat - >>junkmail
}

=============================================================

(Continue reading)

Lars Hecking | 1 May 12:36 1998
Picon

Re: Favorite Recipes

Walter Dnes writes:
> A *SPECIAL* favourite just for this list<g>.  Because I
> shouldn't have to type in the Reply address manually.  This
> one re-writes the "Reply-To:" address.  I have a similar one
> for another mailing list that is similarly (mis)configured...
> 
> :0 fhw
> * ^Resent-Sender: procmail-request <at> Informatik\.RWTH-Aachen\.DE
> * !^Reply-To:.procmail <at> Informatik\.RWTH-Aachen\.DE
>   | formail -i "Reply-To: procmail <at> informatik.RWTH-Aachen.DE"

 Funny. In my MUA I just type "L" (shift-ell) to reply to the list.
 To any list, in fact ...

Louis J. LaBash Jr. | 1 May 15:47 1998

Re: procmailrc

On Thu, Apr 30, 1998 at 04:23:41PM -0500, Christopher Lindsey wrote:
> > I am looking to use procmail and formail to strip the header of a
> > message and append the body of a message to a txt file.
...

> No need to use formail:
> 
>    :0 bc:
>    message

I noticed when this recipe is used mail is copied to 'message' as well
as delivered to 'mbox'.

--

-- 
Louis-ljl-{llabash <at> siue.edu | lou <at> minuet.siue.edu}

Jacques Gauthier | 1 May 15:56 1998
Picon

Re: Filtering out from a smartlist

> >salsa-request: "|exec /home/salsa/slist/.bin/flist salsa-request"
> >salsa: "|exec /home/salsa/slist/.bin/flist salsa"
> >"|IFS=' ' && exec /home/salsa/procserver/bin/procmail -f- || exit
75 #salsa" 
> 
> Those first two lines belong in the system alias file, say,
/etc/aliases,
> not your .forward file.
> 
> 
> Philip Guenther

Unfortunately, I don't have root access at my
Internet provider.  (I can't edit the /etc/aliases file).

Jacques G.
_________________________________________________________
DO YOU YAHOO!?
Get your free  <at> yahoo.com address at http://mail.yahoo.com

Paul O Bartlett | 1 May 16:36 1998
Picon
Picon

Re: procmail/sendmail general filter question

On Thu, 30 Apr 1998, Philip Guenther wrote (excerpt):

> If you don't want the direct copy, you should, if you can, put a
> 
> 	Reply-To: procmail <at> informatik.rwth-aachen.de
> 
> header in your outgoing messages.

    Of course, the list could do as well-run lists do and insert the
Reply-To: automatically so users would not have to fumble around with
special recipes or add one-shot special headers on their own. 
Unfortunately, the procmail list seems to be an orphan, so I don't know
who could make this much-needed change.

Paul                             <pobart <at> access.digex.net>
..........................................................
Paul O. Bartlett, P.O. Box 857, Vienna, VA 22183-0857, USA
Finger, keyserver, or WWW for PGP public key
Home Page:  http://www.access.digex.net/~pobart


Gmane