procmail
[Top] [All Lists]

FROM_DAEMON macro needs updating

2005-07-07 06:17:43

I try to match mail from daemons and mailingslists to avoid processing.

Now I get this mail, which does not match the FROM_DAEMON regular
expression.  Here are the full headers:

From 
owner-nolist-ai10305*paul*-bijnens**XPLANATION*-COM(_at_)ACTIVEIDEA(_dot_)COM 
 Wed Jul  6 19:05:03 2005
Return-Path: 
<owner-nolist-ai10305*paul*-bijnens**XPLANATION*-COM(_at_)ACTIVEIDEA(_dot_)COM>
Received: from mail.activeidea.com (mail.activeidea.com [212.3.243.38])
        by smtp.xplanation.com (8.12.9/8.12.9) with ESMTP id j66H52At012459
        for <paul(_dot_)bijnens(_at_)XPLANATION(_dot_)COM>; Wed, 6 Jul 2005 
19:05:02 +0200
Message-Id: 
<200507061705(_dot_)j66H52At012459(_at_)smtp(_dot_)xplanation(_dot_)com>
Received: from mail (localhost) by mail.activeidea.com (LSMTP for Windows NT 
v1.1b) with SMTP id <5(_dot_)000CAA0B(_at_)mail(_dot_)activeidea(_dot_)com>; 
Wed, 6 Jul 2005 18:57:41 +0200
Date: Wed, 6 Jul 2005 18:57:29 +0200
From: "Webmaster Proximus" <webmaster(_at_)proxinews(_dot_)be>
Subject: Verrassing! Ontdek nu uw nieuwe Proximus E-zine! 
Reply-to: webmaster(_at_)proxinews(_dot_)be
To: paul(_dot_)bijnens(_at_)XPLANATION(_dot_)COM
MIME-Version: 1.0
Content-Type: multipart/alternative; boundary="A----=_AIBoundary_001"
Importance: Normal
X-AIClient: 843
X-AIJob: 2
X-AIUid: 3472289 
X-AISend: 0

I believe that the cullprit is in the '*' used inside the From_ line
to encode dots ( *- ) and at-signs ( ** ).

Currently the FROM_DAEMON regexp is:
(shorted by adding XXX in the middle)

(^(Mailing-List:.XXX.|utoanswer))(([^).!:a-z0-9][-_a-z0-9]*)?[%@>\t][^<)]*(\(.*\).*)?)?$([^>]|$)))

Adding a '*' to the valid chars before the @-sign makes it match my
headers and recognize it as coming from a mailinglist again:

(^(Mailing-List:.XXX.|utoanswer))(([^).!:a-z0-9][-_a-z0-9*]*)?[%@>\t][^<)]*(\(.*\).*)?)?$([^>]|$)))

Where should I mail this as possible enhancement for future versions?
Do the authors of procmail read this forum?

-- 
Paul Bijnens, Xplanation                            Tel  +32 16 397.511
Technologielaan 21 bus 2, B-3001 Leuven, BELGIUM    Fax  +32 16 397.512
http://www.xplanation.com/          email:  
Paul(_dot_)Bijnens(_at_)xplanation(_dot_)com
***********************************************************************
* I think I've got the hang of it now:  exit, ^D, ^C, ^\, ^Z, ^Q, F6, *
* quit,  ZZ, :q, :q!,  M-Z, ^X^C,  logoff, logout, close, bye,  /bye, *
* stop, end, F3, ~., ^]c, +++ ATH, disconnect, halt,  abort,  hangup, *
* PF4, F20, ^X^X, :D::D, KJOB, F14-f-e, F8-e,  kill -1 $$,  shutdown, *
* init 0, kill -9 1, Alt-F4, Ctrl-Alt-Del, AltGr-NumLock, Stop-A, ... *
* ...  "Are you sure?"  ...   YES   ...   Phew ...   I'm out          *
***********************************************************************



____________________________________________________________
procmail mailing list   Procmail homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

<Prev in Thread] Current Thread [Next in Thread>
  • FROM_DAEMON macro needs updating, Paul Bijnens <=