[Raw Msg Headers][Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Tag in zmsh (follow up)
- To: ZMailer list <firstname.lastname@example.org>
- Subject: Tag in zmsh (follow up)
- From: Carlos G Mendioroz <email@example.com>
- Date: Mon, 09 Feb 2004 19:55:11 -0300
- Original-Recipient: rfc822;firstname.lastname@example.org
- Sender: email@example.com
- User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.4) Gecko/20030624 Netscape/7.1 (ax)
For those that may be interested, I've managed to get a tag()
function into zmsh.
That allows me to:
1) in process.cf, run a spam tester (spambayes) against $file and
set an environment SPAMTAG as needed.
2) in rrouter.cf, copy the tag into the mail header for it to
be stored in transport data.
I'm not very happy with it, because header related functions use
the internal garbage collected string functions, and as tag() timing
seems not to fit standard sequencer(), I had to use a static buffer.
(i.e. only one tag per message for the time being).
Nevertheless, it seems to work, and seems to be easy on resources too.
BTW, does someone know of a cheap way of getting the file size in a unix
standard way ?
I want to SPAM test only for small (<200k ?) messages, because I've
already downed my small home server while checking a 5meg message.
But I suddenly realized that I know of no standard command to test
for file size (well, using find does not fit the problem, and
using ls | sed seems an overkill).
May be I'm tired...
Carlos G Mendioroz <firstname.lastname@example.org> LW7 EQI Argentina
To unsubscribe from this list: send the line "unsubscribe zmailer" in
the body of a message to email@example.com