-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi All,
I want to use maildrop to trigger vacation messages using the Inter7
Autoresponder (http://inter7.com/devel/).
My setup is as follows:
* I run qmail/vpopmail with mysql support
* I setup an alias for the adress containing
| preline maildrop ~vpopmail/etc/mailfilter.vacation
The mailfilter.vactaion looks like:
VHOME=`/var/vpopmail/bin/vuserinfo -d $EXT@$HOST`
if (!/^X-Spam-Status: *YES/)
{
exception {
cc "|/usr/local/bin/autorespond 60 10 $VHOME/vacation/message
$VHOME/vacation 0"
}
}
to $VHOME/.maildir
As soon as the autoresponder works "normally", everything is ok, but in
case the autoresponder either writes to stderr or exits with a non-zero
exitcode:
* I get an eror in the qmail logs, saying "deferral:
maildrop:_error_writing_to_mailbox./"
* The "to" is executed and the mail shows up in the mailbox
* BUT: the mail remains in the queue
* Result: the mail is delivered to the mailbox more than once
I tried to turn on debuggin with "VERBOSE=9" and get:
/var/vpopmail/etc/mailfilter.vacation(8) <-- Line with "exception"
Trapping_exceptions./maildrop:_Delivering_to_|/usr/local/bin/autorespond_60_10_/var/vpopmail/domains/domain.com/user/vacation/message_/var/vpopmail/domains/domain.com/user/vacation_0/maildrop:_error_writing_to_mailbox.//var/vpopmail/etc/mailfilter.vacation(8):_Trapped_exception./maildrop:_Delivery_complete./
What I expcet is, that the exception is caught and the mail is deleted
from the queue. Any way to accomplish this eg by setting the exitcode
manuallyor the like?
TIA
Oliver
- --
Protect your environment - close windows and adopt a penguin!
PGP-Key: 3B2C 8095 A7DF 8BB5 2CFF 8168 CAB7 B0DD 3985 1721
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.7 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFI3KDNyrew3TmFFyERAnBsAJ46AIzEpzUEb0pKMAwRzfSScoIIlQCffcJu
enJ9rvW/Mg99puPJG3a/VxQ=
=qTxT
-----END PGP SIGNATURE-----