From owner-freebsd-questions@FreeBSD.ORG Sun Oct 23 19:09:53 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 00DD916A41F for ; Sun, 23 Oct 2005 19:09:53 +0000 (GMT) (envelope-from stanb@panix.com) Received: from mail2.panix.com (mail2.panix.com [166.84.1.73]) by mx1.FreeBSD.org (Postfix) with ESMTP id 710E743D45 for ; Sun, 23 Oct 2005 19:09:52 +0000 (GMT) (envelope-from stanb@panix.com) Received: from mailspool2.panix.com (mailspool2.panix.com [166.84.1.79]) by mail2.panix.com (Postfix) with ESMTP id D3CFA9DADA for ; Sun, 23 Oct 2005 15:09:51 -0400 (EDT) Received: from teddy.fas.com (pcp08632294pcs.mplsnt01.sc.comcast.net [68.58.232.106]) by mailspool2.panix.com (Postfix) with ESMTP id B98A211F76A for ; Sun, 23 Oct 2005 15:09:51 -0400 (EDT) Received: from stan by teddy.fas.com with local (Exim 3.36 #1 (Debian)) id 1ETlE7-0006ii-00 for ; Sun, 23 Oct 2005 15:09:51 -0400 Date: Sun, 23 Oct 2005 15:09:51 -0400 From: stan To: Free BSD Questions list Message-ID: <20051023190951.GA25702@teddy.fas.com> Mail-Followup-To: Free BSD Questions list Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Editor: gVim X-Operating-System: Debian GNU/Linux X-Kernel-Version: 2.4.23 X-Uptime: 15:05:11 up 71 days, 18:38, 3 users, load average: 0.00, 0.03, 0.00 User-Agent: Mutt/1.5.4i Sender: Stan Brown Subject: procmail/formail syntax question 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, 23 Oct 2005 19:09:53 -0000 I'm trying to get procmail to rewrite the TO: header. I've tried something like: TO=`formail -xTo:` # is moved to "viruses". :0: * ^X-Virus-Status: Yes | formail -I "To: is_virus, $TO" # Mails with a score of 15 or higher are almost certainly spam (with 0.05% # false positives according to rules/STATISTICS.txt). Let's put them in a # different mbox. (This one is optional.) :0: * ^X-Spam-Level: \*\*\*\*\*\*\*\*\*\*\*\*\*\*\* | formail -I "To: certainly_spam, $TO" # All mail tagged as spam (eg. with a score higher than the set threshold) # is moved to "probably-spam". :0: * ^X-Spam-Status: Yes | formail -I "To: probably_spam, $TO" But this does not seem to be working. What am I doing wrong? -- U.S. Encouraged by Vietnam Vote - Officials Cite 83% Turnout Despite Vietcong Terror - New York Times 9/3/1967