RE: Procmail recipe's


Subject: RE: Procmail recipe's
From: Mike Barsalou (mbarsalou@aidea.org)
Date: Wed Apr 03 2002 - 15:30:11 AKST


Since I was trying to match this line:

Received: (from pmguser@localhost)

it would be more like

:0
* .*from.*pmguser\@localhost
/dev/null

-----Original Message-----
From: Mike Tibor [mailto:tibor@lib.uaa.alaska.edu]
Sent: Wednesday, April 03, 2002 2:27 PM
To: Mike Barsalou
Cc: 'aklug@aklug.org'
Subject: Re: Procmail recipe's

On Wed, 3 Apr 2002, Mike Barsalou wrote:

> I have this header:
>
> Received: from gateway.aidea.org (aidea.org [192.168.1.10]) by
> server3.aidea.org with SMTP (Microsoft Exchange Internet Mail Service
> Version 5.5.2653.13)
> id GXT55ZDY; Wed, 3 Apr 2002 00:26:20 -0900
> Received: from s1053.mb00.net (s1053.mb00.net [207.33.16.53])
> by gateway.aidea.org (8.11.6/8.11.6) with ESMTP id g339Owo05870
> for <lhakala@aidea.org>; Wed, 3 Apr 2002 00:24:59 -0900
> Received: (from pmguser@localhost)
> by s1053.mb00.net (8.8.8pmg/8.8.5) id HAA49988
> for
>
:include:/usr/home/pmguser/pmgs/users/foryou/delivery/1017816045.7770/rblk.2
> 6836; Wed, 3 Apr 2002 07:30:29 GMT
> Message-Id: <200204030730.HAA49988@s1053.mb00.net>
> From: Recipe for Friendship! <foryou.14@reply.mb00.net>
> To: test@aidea.org
> X-Info: Message sent by Mindshare Design customer with ID "foryou"
> X-Info: Report abuse to list owner at foryou@complaints.mb00.net
> X-PMG-Userid: foryou
> X-PMG-Msgid: 1017816045.7770
> X-PMG-Recipient: test@aidea.org
>
>
> I thought if I used this recipe, it would junk them:
>
> :0
> * ^from.*pmguser
> /dev/null
>
> Does that look right?

I don't think so--I don't see any headers up there that the regex matches
(^from.*pmguser). If you want to roundfile the message based on the From:
header, then the following would work:

 :0
 * ^From:.*foryou\.14\@reply\.mb00\.net
 /dev/null

Mike

-- 
Mike Tibor         Univ. of Alaska Anchorage    (907) 786-1001 voice
Network Technician     Consortium Library         (907) 786-6050 fax
tibor@lib.uaa.alaska.edu       http://www.lib.uaa.alaska.edu/~tibor/
http://www.lib.uaa.alaska.edu/~tibor/pgpkey  for PGP public key

--------- To unsubscribe, send email to <aklug-request@aklug.org> with 'unsubscribe' in the message body.



This archive was generated by hypermail 2a23 : Wed Apr 03 2002 - 15:32:11 AKST