procmail
[Top] [All Lists]

Re: Question about simple sorting.

2005-08-28 05:19:15
On Fri, 26 Aug 2005, Michelle Konzack wrote:

Am 2005-08-26 15:12:26, schrieb Steven W. Orr:
I'm on a list called mythtv-users and I put all the mail from that list
into a seperate folder:

:0:
         * ^Subject:.*\[mythtv-users\]
mythtv-i

But some of the mail is not getting picked up. I figured it out that it's
because of this:

Subject: =?ISO-8859-1?Q?Re=3A_=5Bmythtv-users=5D_Problems_with_Vi?=
     =?ISO-8859-1?Q?a_C3_compile=3F_=28Was=3A_mythplugin=3A_Ung=FCl?=
     =?ISO-8859-1?Q?tiger_Maschinenbefehl_=28unknown_machine_command=3F?=
     =?ISO-8859-1?Q?=29=29?=

What's a better way to do the filtering?

Maybe:

 __( '/home/michelle.konzack/.procmail/FLT_rfc2047' )__________________
/
| :0
| * ^Subject:.*(=?ISO-8859-1|=?ISO-8859-15|=?WINDOWS-1252)?[QB]?
| {
|   SUB=`formail -zX Subject: |mimedecode |tr -ds '[ntr]' ' '`


        I use the following in my procmailrc for long time:

:0 w
* < 99000
* ^Subject: =\?(iso-8859-1|utf-8)\?\/..[^\?]*
{
         :0
         * MATCH ?? B\?\/[^\?]*
         { BBB=`echo $MATCH | mimencode -u | cat -v` }

         :0
         * MATCH ?? Q\?\/[^\?]*
         { QQQ=`echo $MATCH | mimencode -u -q | cat -v` }

        ...(cut)...

        And I believe that it's cheaper.  Also, look at the mimencode
        flags.

Bye,
  Udi



|
|   :0 fhw
|   | formail -i "$SUB"
| }
\______________________________________________________________________

TIA

Greetings
Michelle

-- 
Linux-User #280138 with the Linux Counter, http://counter.li.org/
Michelle Konzack   Apt. 917                  ICQ #328449886
                  50, rue de Soultz         MSM LinuxMichi
0033/3/88452356    67100 Strasbourg/France   IRC #Debian (irc.icq.com)

____________________________________________________________
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.


---------------------------------------------------------------------------
Udi Mottelo - Unix System Administrator.
Faculty of Engineering - Tel-Aviv University
E-Mail: uuddii(_at_)eng(_dot_)tau(_dot_)ac(_dot_)il    Phone: +972-3-6409446
---------------------------------------------------------------------------

____________________________________________________________
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>