procmail
[Top] [All Lists]

Re: Who is the procmail maintainer? (revisited 2005)

2005-11-03 15:36:24
Google Kreme schreef:
On 03 Nov 2005, at 13:36, S.A. Birl wrote:
Your original post didnt list any specific problems to address.  Im
curious as to what you'd like to see in the "next" release.

PCRE/better (modern) regex

Didn't we have a thread on this topic?

My only idea concerns logging: adding the PID to the logs.
ie:
    procmail: Couldn't determine implicit lockfile from "/usr/lib/
sendmail"
   to
    procmail [586]: Couldn't determine implicit lockfile from "/usr/
lib/sendmail"

I wanna have

:0
* ^Phone:\t\/\(?\d{3}\)? ?-\d{3}-\d{4}
{ PHONE = $MATCH }

or something like that...



  t = '    '   # literal tab
  d = '[0-9]'
  d3 = "$d$d$d"
  d4 = "$d3$d"

  :0
  *$ ^Phone:$t\/\(?$d3\)? ?-$d3-$d4
  { PHONE = $MATCH }



As an excercise, I just rewrote Sean's listname recipe in Perl, see
below.



-- 

#!/usr/local/bin/perl

use strict;
use warnings;

  local ($,, $\, $/) = ("\t", "\n", undef);

  my $listname;

  $_ = <DATA>;  # slurp header

  if ( /^(?:Sender:      \s*owner-
           |X-BeenThere: \s*
           |Delivered-To:\s*mailing\slist\s)([-[:word:]+]+)/xmi
    || /^(?:List-Post:   \s*(?:<mailto:)?
           |List-Owner:  \s*(?:<mailto:)?owner-)([-[:word:]+]+)/xmi
    || /^   Sender:       .*\sList"?\s<(?:mailto:)?([-[:word:]+]+)/xmi
    || /^   Sender:      \s*([-[:word:]+]+)-owner/xmi ) {

    $listname = lc $1;
  }

  print 'List:', $listname if $listname;


__DATA__
Return-Path: <procmail-bounces(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE>
Date: Fri, 17 Dec 2004 10:41:54 +0100 (CET)
From: linux(AT)users.gamebox.net
Subject: data format error rfc822
Sender: procmail-bounces(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
To: procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
Errors-to: procmail-bounces(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
Message-id: <1103276514.41c2a9e2de999(AT)mail.sinetsrl.it>
MIME-version: 1.0
Content-type: text/plain; charset=ISO-8859-1
Content-transfer-encoding: 7BIT
Precedence: list
X-BeenThere: procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
User-Agent: IMP/PHP IMAP webmail program 2.2.6
X-Mailman-Version: 2.1.5
List-Post: <mailto:procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE>


-- 
Grtz, Ruud


____________________________________________________________
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