Dear all,
I have the problem in autoreply via using mailbot, please do me a favor.
I set .mailfilter as following
# --------------
/^Subject:.*/
SUBJECT=escape($MATCH)
if (! (/^From:.*@a.com/ || /^From:.*gg...@c.com/ || /^From:.*bb-l...@l.com/ ) )
{
cc "| mailbot -A 'X-Sender: $FROM' -A 'From: $FROM' -d autoresponsedb
-s 'Out of Office AutoReply: $SUBJECT' -m '$HOME/Mail
dir/autoreply.cf' $SENDMAIL -t -f ''"
}
to "$HOME/Maildir/."
#--------------
If the subject is included ' or " then I will get the error like as following
# mailq
-Queue ID- --Size-- ----Arrival Time---- -Sender/Recipient-------
1D17F269CD4 6041 Wed Feb 21 16:54:39 esu...@p.com
(temporary failure. Command output: sh: -c: line 0: unexpected EOF
while looking for matching `'' sh: -c: line 1: syntax error:
unexpected end of file maildrop: error writing to mailbox.
/usr/bin/maildrop: Unable to deliver to mailbox.)
us...@mydomain.com
I am not familiar with the programming, please help me to correct this problem.
Thank you in advance.
Best Regards,
Bruce