Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 23 Oct 2005 15:09:51 -0400
From:      stan <stanb@panix.com>
To:        Free BSD Questions list <freebsd-questions@freebsd.org>
Subject:   procmail/formail syntax question
Message-ID:  <20051023190951.GA25702@teddy.fas.com>

next in thread | raw e-mail | index | archive | help
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



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