2 messages in net.sourceforge.lists.courier-usersRe: [courier-users] about mailbot and...
FromSent OnAttachments
Cheng BruceFeb 21, 2007 6:27 pm 
Sam VarshavchikFeb 21, 2007 6:51 pm 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:Re: [courier-users] about mailbot and autoreplyActions...
From:Sam Varshavchik (mrs@courier-mta.com)
Date:Feb 21, 2007 6:51:52 pm
List:net.sourceforge.lists.courier-users

Cheng Bruce writes:

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.

Put a backslash character "\", before each occurence of $ in the command.