From owner-freebsd-questions@FreeBSD.ORG Sun Oct 23 20:07:21 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 9409B16A420 for ; Sun, 23 Oct 2005 20:07:21 +0000 (GMT) (envelope-from rsmith@xs4all.nl) Received: from smtp-vbr4.xs4all.nl (smtp-vbr4.xs4all.nl [194.109.24.24]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9687243D6B for ; Sun, 23 Oct 2005 20:07:18 +0000 (GMT) (envelope-from rsmith@xs4all.nl) Received: from slackbox.xs4all.nl (slackbox.xs4all.nl [213.84.242.160]) by smtp-vbr4.xs4all.nl (8.13.3/8.13.3) with ESMTP id j9NK7HPG014656 for ; Sun, 23 Oct 2005 22:07:17 +0200 (CEST) (envelope-from rsmith@xs4all.nl) Received: by slackbox.xs4all.nl (Postfix, from userid 1001) id 66AA4B80A; Sun, 23 Oct 2005 22:07:17 +0200 (CEST) Date: Sun, 23 Oct 2005 22:07:17 +0200 From: Roland Smith To: Free BSD Questions list Message-ID: <20051023200717.GB82057@slackbox.xs4all.nl> Mail-Followup-To: Free BSD Questions list References: <20051023190951.GA25702@teddy.fas.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="b5gNqxB1S1yM7hjW" Content-Disposition: inline In-Reply-To: <20051023190951.GA25702@teddy.fas.com> User-Agent: Mutt/1.4.2.1i X-GPG-Fingerprint: 1A2B 477F 9970 BA3C 2914 B7CE 1277 EFB0 C321 A725 X-GPG-Key: http://www.xs4all.nl/~rsmith/pubkey.txt X-GPG-Notice: If this message is not signed, don't assume I sent it! X-Virus-Scanned: by XS4ALL Virus Scanner Subject: Re: 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 20:07:21 -0000 --b5gNqxB1S1yM7hjW Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Oct 23, 2005 at 03:09:51PM -0400, stan wrote: > I'm trying to get procmail to rewrite the TO: header. I've tried somethin= g like: >=20 > TO=3D`formail -xTo:` I think this command is expanded only once, and gives an empty string because you didn't give formail any input. > # is moved to "viruses". > :0: > * ^X-Virus-Status: Yes > | formail -I "To: is_virus, $TO" > But this does not seem to be working. >=20 > What am I doing wrong? Why don't you put it in an appropriate mailbox directly? E.g: :0: * ^X-Virus-Status: Yes /home/username/Mail/virus :0: * ^X-Spam-Status: Yes /home/username/Mail/probably_spam Roland --=20 R.F.Smith (http://www.xs4all.nl/~rsmith/) Please send e-mail as plain text. public key: http://www.xs4all.nl/~rsmith/pubkey.txt --b5gNqxB1S1yM7hjW Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (FreeBSD) iD8DBQFDW+11EnfvsMMhpyURAsMjAJ0YxjqCuKQAitnI//dL5TgbB6RCuwCgjI35 RKuS45FAetLeZ1m4nxxtCJk= =kEd2 -----END PGP SIGNATURE----- --b5gNqxB1S1yM7hjW--