From owner-freebsd-questions@FreeBSD.ORG Sun Mar 28 22:34:33 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 89E671065670 for ; Sun, 28 Mar 2010 22:34:33 +0000 (UTC) (envelope-from gosand1982@yahoo.com) Received: from n1-vm1.bullet.mail.gq1.yahoo.com (n1-vm1.bullet.mail.gq1.yahoo.com [67.195.23.153]) by mx1.freebsd.org (Postfix) with SMTP id 587718FC12 for ; Sun, 28 Mar 2010 22:34:33 +0000 (UTC) Received: from [98.137.27.132] by n1.bullet.mail.gq1.yahoo.com with NNFMP; 28 Mar 2010 22:34:32 -0000 Received: from [67.195.9.102] by t4.bullet.mail.gq1.yahoo.com with NNFMP; 28 Mar 2010 22:34:32 -0000 Received: from [127.0.0.1] by omp106.mail.gq1.yahoo.com with NNFMP; 28 Mar 2010 22:34:32 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 566398.53744.bm@omp106.mail.gq1.yahoo.com Received: (qmail 80110 invoked by uid 60001); 28 Mar 2010 22:34:32 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1269815672; bh=2QQMaVTbkK5w7yyDHe/obJCribQNHUgkru35OGXiQ/g=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:MIME-Version:Content-Type; b=AlrZL/YGHYu7h2BBm7daQbSUZLl09pLtnCu8sLLDpZaLQmD573L/lEL6u9w8H8f8q3KEAmKpRgZg//BFqQdx+czW7Cm66sSp/usRZZChZWiUwWS5Grw2u01OLxO5Vu9Rhj7hTXJCjJ7A1zlHc/QgJ6hUcw2Zz07XycHYqcquEOI= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:MIME-Version:Content-Type; b=KDAvqZdFoQ52Angg0w6ljnDBC4InbAlnUvoVp2YS1rlQwJb5uGleeYwcWC+nEBp7z/PIBYFN6xF4WMEEmYwnCuoXSh1RRTCtG5reAdP9UwFjkvhUcRyeOQwIQBbIjYKUhuB6uQ3bxB+fxjSAjd0Lf8NTr7YHVrSDtWsmdBWk02E=; Message-ID: <471394.79697.qm@web111611.mail.gq1.yahoo.com> X-YMail-OSG: sDU0qEcVM1mE7Y0L1xnMAIBnSzHJS7l.o..MddT_tCZ8Wqd PMFHNf9YnVnIE.0ndT7ModDR19u.WzjgNf6zO_9LSijKLfdyyCJr2xaehRYs f0npXOAYKrdkQqC3Vja09Vizgj7ynUdb6oKrVHBV2PmwVe.2enXyVqPf.dj3 e07iQk_dUQ4QUb.3JCpPnmgm1VInK26Iyc95OqmjUaFR22AgEHLPlk1.mKZc 8Dw2C4ypzt1P9ZbTDRI9PCel_3nSyOLxyYJPsMii7d0oy6bj8IVi3ak3ybW_ 1 Received: from [24.5.102.43] by web111611.mail.gq1.yahoo.com via HTTP; Sun, 28 Mar 2010 15:34:32 PDT X-Mailer: YahooMailRC/324.3 YahooMailWebService/0.8.100.260964 Date: Sun, 28 Mar 2010 15:34:32 -0700 (PDT) From: George Sanders To: freebsd-questions@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailman-Approved-At: Sun, 28 Mar 2010 23:18:55 +0000 Subject: procmail regex help ... sometimes works, sometimes doesn't... X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 28 Mar 2010 22:34:33 -0000 I have added a very standard, very common regex line to my .procmailrc to filter character sets I can't read: UNREADABLE='[^?"]*big5|iso-2022-jp|ISO-2022-KR|euc-kr|gb2312|ks_c_5601-1987|ks_c_5601|3Deuc-kr|koi8' :0: * ^Content-Type:.*multipart * B ?? $ ^Content-Type:.*^?.*charset="?($UNREADABLE) unreadable_messages I know that this works because my "unreadable_messages" mail file is now full of messages with headers like: From: =?GB2312?B?xMLTq9Or?= Subject: =?GB2312?B?MjAxMMTqyMvBptfK1LS4w9bYytPKssO0?= To: "me" Content-Type: text/html; charset="gb2312" However, a lot of mail gets through to my inbox that matches: From: "osdeiiftnvpp@gmail.com" Reply-To: "osdeiiftnvpp@gmail.com" Message-ID: <533pbxxy2oc> To: me Subject: Fw: \xb8\xf2\xad\xe8\xa5X\xa8\xd3\xbd\xe6~\xb1o\xb4\xa9\xa9f\xaa\xb1\xb5L\xaeM\xa4\xba\xaeg\xb2n\xa7o X-Mailer: inhalation Organization: Microsoft Outlook Express 6.00.2462.0000 Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="1-104247307-2712732737=:8213" Status: RO X-Status: X-Keywords: X-UID: 63502 --1-104247307-2712732737=:8213 Content-Type: text/plain; charset="big5" Content-Transfer-Encoding: quoted-printable However, "big5" is very clearly listed in my regex above, and as far as I can tell, this mail should match perfectly... I cannot see why these "big5" emails are not matching my procmail regex ... is it obvious to anyone ?