procmail
[Top] [All Lists]

Re: How to auto-process emails based with header?

2010-11-16 20:48:07
On Tue, Oct 19, 2010 at 09:54:55PM +0200, Michelle Konzack wrote:
Hello Yue Wu,

Am 2010-10-19 09:13:13, hacktest Du folgendes herunter:
Thanks for so patience and so kind of you!
I've tried it, it works somehow, but...:
1. it says errors when processing:
    LISTNAME: Undefined variable.
2. It filters all other mails into .Malinglists., though I've put the
rule in front of my other rules. I tried the following rule but with
no lucky:

Change the two lines:

:0
.Mailinglists.${LISTNAME}/

to:

  :0
  * ? test -n "${LISTNAME}"
  .Mailinglists.${LISTNAME}/

Which mean, if the previously recipes detect a valid LISTNAME only then,
the messages  is  saved  into  .Mailinglists.${LISTNAME}/  otherwise  it
continue wit the rest of the procmailrc


The setting works fine so long, til I met an email with the following headers:

Subject: Welcome to the "freebsd-acpi" mailing list
From: freebsd-acpi-request(_at_)freebsd(_dot_)org
To: vanopen(_at_)gmail(_dot_)com
X-No-Archive: yes
Message-ID: 
<mailman(_dot_)0(_dot_)1289918292(_dot_)81349(_dot_)freebsd-acpi(_at_)freebsd(_dot_)org>
Date: Tue, 16 Nov 2010 14:38:12 +0000
Precedence: bulk
X-BeenThere: freebsd-acpi(_at_)freebsd(_dot_)org
X-Mailman-Version: 2.1.5
List-Id: ACPI and power management development <freebsd-acpi.freebsd.org>

It doesn't go to the .Mailinglists.freebsd-acpi-freebsd-org as
expected, what's wrong?

-- 
Regards,
Yue Wu

Key Laboratory of Modern Chinese Medicines
Department of Traditional Chinese Medicine
China Pharmaceutical University
No.24, Tongjia Xiang Street, Nanjing 210009, China
____________________________________________________________
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>
  • Re: How to auto-process emails based with header?, Yue Wu <=