On Friday, April 23, 2010 at 09:44 CEST,
Mihamina Rakotomandimby <[email protected]> wrote:
> We have an autoreply configuration very close to these:
> http://screamingelectron.org/forum/showthread.php?t=2523
> http://arunnsblog.com/2009/10/28/auto-responder-with-postfixvirtualautoreply-pl/
> which is about this line into master.cf:
>
> autoreply unix - n n - - pipe \
> flags=F \
> user=someone \
> argv=/usr/local/bin/autoreply $sender $recipient
>
> My proble with this one is it only takes From and To headers.
That's incorrect. It uses the sender from the message *envelope*.
> I would like to get all headers, and espacially detect the presence of
> - List-Id
> - List-Post
> - X-Mailing-List
> - Message-Id (to setup a In-Reply-To)
The full message, including the headers, is provided to pipe(8)-based
programs via stdin.
Please do not hack your own autoresponder. Plenty of good people have
already done that job. It's pretty difficult to get right.
--
Magnus Bäck
[email protected]