From owner-freebsd-questions@FreeBSD.ORG Mon Sep 6 17:46:55 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 0A18510656C4 for ; Mon, 6 Sep 2010 17:46:55 +0000 (UTC) (envelope-from drew@mykitchentable.net) Received: from smtp2.mc.surewest.net (qsmtp.mc.surewest.net [66.60.130.145]) by mx1.freebsd.org (Postfix) with SMTP id CF1508FC16 for ; Mon, 6 Sep 2010 17:46:54 +0000 (UTC) Received: (qmail 4338 invoked from network); 6 Sep 2010 10:55:39 -0700 Received: by simscan 1.1.0 ppid: 4334, pid: 4335, t: 0.1791s scanners: regex: 1.1.0 attach: 1.1.0 spam: 3.1.7-deb X-Spam-Checker-Version: SpamAssassin 3.1.7-deb (2006-10-05) on smtp2.surewest.net. X-Spam-Level: * X-Spam-Status: No, score=1.8 required=13.5 tests=RATWARE_GECKO_BUILD autolearn=disabled version=3.1.7-deb X-Spam-CMAE-Analysis: v=1.0 c=1 a=VphdPIyG4kEA:10 a=8nJEP1OIZ-IA:10 a=jDt-9pEAAAAA:8 a=EiajMPFTi2A8m02YBJQA:9 a=tDZBUEopoDIP9nFDodwA:7 a=gs-T5HaWtwOxkeyJKFh9YErHz4IA:4 a=wPNLvfGTeEIA:10 Received: from unknown (HELO blacklamb.mykitchentable.net) (69.62.230.77) by smtp2 with SMTP; 6 Sep 2010 10:55:39 -0700 Received: from [127.0.0.1] (bigdaddy.mykitchentable.net [192.168.1.3]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by blacklamb.mykitchentable.net (Postfix) with ESMTPS id 766E6164E66; Mon, 6 Sep 2010 10:46:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=mykitchentable.net; s=default; t=1283795213; bh=Eokm0gx/ZlAY62k5Cb++1WfdFGrVD4iuAMJTmFsDwAA=; h=Message-ID:Date:From:MIME-Version:To:CC:Subject:References: In-Reply-To:Content-Type:Content-Transfer-Encoding; b=IYoHwb8p1MIJ1OLw9nPXofbbHnOtbnWdKOeFJ7d0You5VqbZjM4aLBfbmyT/OQBJ5 yls7hBMXqyqqg3rZEEQcm1CsW4zQxJnecuW6lX2YxuzHj9B9GtaIyKiTTL8AxO5OSE QzX1aU2/SoEZi125sMAuwyA9tCwwIpSM65C5R7BE= Message-ID: <4C852907.5000303@mykitchentable.net> Date: Mon, 06 Sep 2010 10:46:47 -0700 From: Drew Tomlinson User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.8) Gecko/20100802 Thunderbird/3.1.2 MIME-Version: 1.0 To: perryh@pluto.rain.com References: <4C814262.5060504@mykitchentable.net> <4C814634.1000003@gmail.com> <4C8164C7.9000107@mykitchentable.net> <4C83C65B.6060508@mykitchentable.net> <20100905205910.GA82375@orange.esperance-linux.co.uk> <4c84216f.w2295Zjs25+GOe/F%perryh@pluto.rain.com> In-Reply-To: <4c84216f.w2295Zjs25+GOe/F%perryh@pluto.rain.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Antivirus: avast! (VPS 100906-0, 09/06/2010), Outbound message X-Antivirus-Status: Clean Cc: frank@shute.org.uk, freebsd-questions@freebsd.org Subject: Re: Regex Help For Procmail 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, 06 Sep 2010 17:46:55 -0000 On 9/5/2010 4:02 PM, perryh@pluto.rain.com wrote: > Frank Shute wrote: > >> Drew, try this: >> >> * ^From:.*famous-smoke\.com >> >> I think it's not catching it because the period isn't backslash >> escaped ... > Unless there's some edge case that I'm not thinking of, adding a > backslash to escape a period will never convert a non-match into > a match. An unescaped period in an RE matches any character, > including a period. An escaped period matches only a period. I have confirmed this. I did add the backslash but procmail is still not matching. > Adding the backslash _does_ better represent what the OP wants > to accomplish, but the lack of it is not the cause of the RE not > matching. (I'm not sufficiently familiar with how procmail uses > REs to figure out what _is_ causing it not to match.) True and thus I'll leave the backslash. However I have no idea what _is_ causing it not to match either. I'm stumped. Thanks, Drew -- Like card tricks? Visit The Alchemist's Warehouse to learn card magic secrets for free! http://alchemistswarehouse.com