From owner-freebsd-questions@FreeBSD.ORG Mon Mar 29 07:26:05 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 B9709106566C for ; Mon, 29 Mar 2010 07:26:05 +0000 (UTC) (envelope-from parv@pair.com) Received: from hrndva-omtalb.mail.rr.com (hrndva-omtalb.mail.rr.com [71.74.56.122]) by mx1.freebsd.org (Postfix) with ESMTP id 6FAA68FC13 for ; Mon, 29 Mar 2010 07:26:05 +0000 (UTC) X-Authority-Analysis: v=1.0 c=1 a=duTYv7naDqYA:10 a=kj9zAlcOel0A:10 a=CjxXgO3LAAAA:8 a=W_aJ7GvLAAAA:8 a=HHGDD-5mAAAA:8 a=pGLkceISAAAA:8 a=L9gFUJyyAAAA:8 a=whqczNdAAAAA:8 a=LKMZUqQPp0BhLiGnsR4A:9 a=G1o11p79un5hQmVCfnsA:7 a=mIQ-bu0dR7p4P4jGVSBdOfRloL0A:4 a=CjuIK1q_8ugA:10 a=Vfe9Bf0ic3gA:10 a=kXat3GY-7u4A:10 a=Clo7D6qQOBoA:10 a=i1zE5R4R5dEA:10 a=MSl-tDqOz04A:10 X-Cloudmark-Score: 0 X-Originating-IP: 72.130.250.48 Received: from [72.130.250.48] ([72.130.250.48:63505] helo=localhost.hawaii.res.rr.com) by hrndva-oedge02.mail.rr.com (envelope-from ) (ecelerity 2.2.2.39 r()) with ESMTP id B3/CD-20831-C0650BB4; Mon, 29 Mar 2010 07:26:04 +0000 Received: from holstein.holy.cow (localhost [127.0.0.1]) by localhost.hawaii.res.rr.com (Postfix) with ESMTP id 308B235E1; Sun, 28 Mar 2010 21:27:57 -1000 (HST) Received: (from parv@localhost) by holstein.holy.cow (8.13.8/8.13.8/Submit) id o2T7RuEH002934; Sun, 28 Mar 2010 21:27:56 -1000 (HST) (envelope-from parv@pair.com) X-Authentication-Warning: holstein.holy.cow: parv set sender to parv@pair.com using -f Date: Sun, 28 Mar 2010 21:27:56 -1000 From: parv@pair.com To: George Sanders Message-ID: <20100329072756.GA1322@holstein.holy.cow> Mail-Followup-To: George Sanders , freebsd-questions@freebsd.org References: <471394.79697.qm@web111611.mail.gq1.yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <471394.79697.qm@web111611.mail.gq1.yahoo.com> Cc: freebsd-questions@freebsd.org Subject: Re: 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: Mon, 29 Mar 2010 07:26:05 -0000 in message <471394.79697.qm@web111611.mail.gq1.yahoo.com>, wrote George Sanders thusly... > > 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 ? Is "Content-Type:" completely missing from the body of your first example? Do you have your examples flipped? I would have thought that first example would have delivered in your inbox & second one in your unreadable_messages one. In any case, what does the procmail log say? See also http://www.professional.org/procmail/sandbox.html#. Do try your luck on procmail@lists.RWTH-Aachen.de list, http://mailman.rwth-aachen.de/mailman/listinfo/procmail. - parv --