Qmail
[Top] [All Lists]

Re: Conditional piping to autorespond in .qmail

To: qmail <qmail@list.cr.yp.to>
Subject: Re: Conditional piping to autorespond in .qmail
From: Thanos Massias <tm@navarino.gr>
Date: Mon, 12 Mar 2007 15:23:21 +0200
Delivered-to: sp-com-lists@consult.net
Delivered-to: gmail-qmail@securepoint.com
Delivered-to: sp.com.list@gmail.com
Delivered-to: mailing list qmail@list.cr.yp.to
Followup-to: qmail,<qmail@list.cr.yp.to>
In-reply-to: <33000.206.162.148.196.1173703699.squirrel@secure.omninux.com>
Mailing-list: contact qmail-help@list.cr.yp.to; run by ezmlm
Organization: NAVARINO telecom SA
References: <33000.206.162.148.196.1173703699.squirrel@secure.omninux.com>
User-agent: Thunderbird 1.5.0.10 (Windows/20070221)
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1



On 2007-03-12 14:48, Renaud wrote:
> Hello,
> 
> Would you happen to know a trick to make either
> 
> - Autorespond not answering mails that have a spam flag set (that could be
> an autorespond patch or an autorespond alternative) (this solution is
> quite off-topic)
> 
> - Qmail not forward the mail to autorespond when the spam flag is set
> 

The excellent qmail-branch patch ( http://code.dogmap.org/qmail/ ) from
    Mr. Paul Jarc can be used for such tricks in .qmail files of user
accounts.

An example .qmail file, also using 822headers from SuperScript
Technology ( http://www.superscript.com/qtools/intro.html ) that only
autoresponds to messages sent with Thunderbird is this (mind the wrapped
lines):

- -------------------------------------
# Autorespond to messages with a User-Agent string that contains the
word "Thunderbird"
?test [ `/usr/local/bin/822headers User-Agent|/usr/bin/grep -c
Thunderbird` = 1 ] || exit 99
|/usr/local/bin/vacation
# Skip all further processing.
?done
:test
./Maildir/
- -------------------------------------




- --
Best regards,
Thanos Massias
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFF9VRJw7yhF5/VoJsRAlgAAKDDQ6YRJiZf3TM9ZzetnzVlaGQu7QCgwwTk
TCv3Yh7DEfJURoqjJZizPdg=
=BKRz
-----END PGP SIGNATURE-----

<Prev in Thread] Current Thread [Next in Thread>