-----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-----
|