From owner-freebsd-questions@FreeBSD.ORG Mon Sep 6 17:48:59 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 EF53E1065698 for ; Mon, 6 Sep 2010 17:48:59 +0000 (UTC) (envelope-from drew@mykitchentable.net) Received: from smtp3.mc.surewest.net (qsmtp.mc.surewest.net [66.60.130.145]) by mx1.freebsd.org (Postfix) with SMTP id C27BC8FC0A for ; Mon, 6 Sep 2010 17:48:59 +0000 (UTC) Received: (qmail 7883 invoked from network); 6 Sep 2010 10:49:31 -0700 Received: by simscan 1.1.0 ppid: 7879, pid: 7880, t: 0.1906s 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 smtp3.int.surewest.net. X-Spam-Level: * X-Spam-Status: No, score=1.4 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=-oaE953oCEnqpMMa_o0A:9 a=JBTVfCRS9can30Pww-0A:7 a=89nJzzNgGUctL6HFpq6vAs5d6cAA:4 a=wPNLvfGTeEIA:10 a=-Bmh7uUyL5QA:10 Received: from unknown (HELO blacklamb.mykitchentable.net) (69.62.230.77) by smtp3 with SMTP; 6 Sep 2010 10:49:31 -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 E13B1164E73; Mon, 6 Sep 2010 10:48:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=mykitchentable.net; s=default; t=1283795339; bh=lOg/8eU6to+TKkThWjCEkZHYFPiL83VQcwxqqWGyiNo=; h=Message-ID:Date:From:MIME-Version:To:CC:Subject:References: In-Reply-To:Content-Type:Content-Transfer-Encoding; b=vYDlSW9Mu+96dxd0y8kcHMvzXVrc02OXrKiv7/zyGR4ATm/E/udirubXhvRqHjE4O dqgSp52Kj8RF3uwkpk7ijtCbV+yxMNDnTazGUthS0yqOfJbBR6zURoysPZonBr3Si6 tFOpATKHaRM/jqIpBg0zY2GRtWJowRe9Xpt3dsxI= Message-ID: <4C852985.90606@mykitchentable.net> Date: Mon, 06 Sep 2010 10:48:53 -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: Glen Barber References: <4C814262.5060504@mykitchentable.net> <4C814634.1000003@gmail.com> <4C8164C7.9000107@mykitchentable.net> <4C83C65B.6060508@mykitchentable.net> <4C840C59.6050704@gmail.com> In-Reply-To: <4C840C59.6050704@gmail.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: 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:49:00 -0000 On 9/5/2010 2:32 PM, Glen Barber wrote: > On 9/5/10 12:33 PM, Drew Tomlinson wrote: >> No, still not matching. Basically, why doesn't this header: >> >> From: "Famous Smoke Shop" >> >> Match this procmail recipe: >> >> :0 >> * ^From:.*famous-smoke.com>$ > Hmm.. I just noticed this - I don't think you need the trailing bracket (>). > > What about this: > > * ^From:.*famous-smoke\.com$ > > Note that I also escaped the period before 'com'. I think I'd have to have the trailing bracket when specifying the "$" at the end. However maybe the bracket is some special regex character and needs to be escaped? I'm just going to remove the bracket and the $ and see what happens. However I *would* like to understand. Thanks for your help! Drew -- Like card tricks? Visit The Alchemist's Warehouse to learn card magic secrets for free! http://alchemistswarehouse.com