Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 23 Oct 2005 22:07:17 +0200
From:      Roland Smith <rsmith@xs4all.nl>
To:        Free BSD Questions list <freebsd-questions@freebsd.org>
Subject:   Re: procmail/formail syntax question
Message-ID:  <20051023200717.GB82057@slackbox.xs4all.nl>
In-Reply-To: <20051023190951.GA25702@teddy.fas.com>
References:  <20051023190951.GA25702@teddy.fas.com>

next in thread | previous in thread | raw e-mail | index | archive | help

--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"
 <snip>
> 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--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20051023200717.GB82057>