Here's what I'm trying to achieve -
When an email gets sent to [EMAIL PROTECTED], the message gets processed
by it's .qmail file, and gets forwarded to a short list of addresses within
that file. That works fine, and it was really easy to do. What I would
like is to rewrite the subject line of the message before delivery to
prepend a [maillist] tag before the message.. . so that a message coming in
like
---
From: [EMAIL PROTECTED]
Subject: test message
---
gets delivered like
---
From: [EMAIL PROTECTED]
Subject: [maillist] test message
---
I'm sure you all know what I mean. I have experimented with "preline". ..
but I think I'm on the wrong track. My current .qmail file looks like this:
|preline /usr/bin/mailfilter [maillist]
[EMAIL PROTECTED]
"Mailfilter" is a simple perl program I wrote to take standard-in and add
argument 1 to the subject line. But preline only passes the email OUT, it
doesn't take it back IN for further processing. So, short of letting my
lame mailfilter program do the rest of the delivery, I'm SOL.
Am I going about this all wrong? Someone please help, I know I sound new,
but I couldn't find any good docs on this anywhere. . .
Derek