procmail
[Top] [All Lists]

Re: Need for assistance

2005-08-07 01:26:38
On Sat, 6 Aug 2005, Tony McClenny wrote:

I would appreciate your assistance in discovering the proper code to
eliminate an incoming message with foreign (to me) language characters in
the subject line.  I believe I should use a filter for the "Windows-1251"
data, but have thus far been unsuccessful in my attempts.  A sample of what
is incoming is shown below as is my unsuccessful code attempt.

The incoming header information:

Subject: .!! :)Èçìåðèòåëü àðòåðèàëüíîãî äàâëåíè^? Meditech
Date: Thu, 4 Aug 2005 12:42:01 +0000
MIME-Version: 1.0
X-Mailer: Microsoft Office Outlook, Build 11.0.5510
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
Thread-Index: IJZXc5yLv8uV7AbvvLnbve4EHrG48BgkRF6B
Content-Type: text/plain;
       charset="Windows-1251"
Content-Transfer-Encoding: 8bit

   [ The following text is in the "Windows-1251" character set. ]
   [ Your display is set for the "ISO-8859-1" character set.  ]
   [ Some characters may be displayed incorrectly. ]

My procmailrc file code, which is failing:

:0 h
* .*\<Windows-1251\>
/dev/null


        I cut-n-paste from your message and it works for me.
        Add the two following lines to your script to tell us
        what the logfile say:

VERBOSE=yes
LOGFILE=/tmp/log.procmail

        BTW.1  "H" not "h" (read in procmailrc man page, it's default).
        BTW.2  You don't look in the Subject field, but the whole header!

Bye,
 Udi



Thank you in advance for your consideration.

- Tony -



____________________________________________________________
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


+++++++++++++++++++++++++++++++++++++++++++
This Mail Was Scanned By Mail-seCure System
at the Tel-Aviv University CC.
____________________________________________________________
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