initial autoresponder fixes

This commit is contained in:
Matthew Saunders Brown 2022-05-24 15:26:09 -07:00
parent 8d2a67572b
commit 10789424dd
3 changed files with 3 additions and 3 deletions

View File

@ -23,7 +23,7 @@ help()
echo " -s <0|1> Status. 0 = disabled/off, 1 = enabled/on. Default is 1." echo " -s <0|1> Status. 0 = disabled/off, 1 = enabled/on. Default is 1."
echo "" echo ""
echo " The body must be single quoted and escaped. All single quotes in the body must" echo " The body must be single quoted and escaped. All single quotes in the body must"
echo " have double back slash like this \\' and all newlines should be encoded as \n." echo " have double back slash like this \\\' and all newlines should be encoded as \n."
echo " In Vacaion mode only the first email from a specific address is replied to," echo " In Vacaion mode only the first email from a specific address is replied to,"
echo " in Autoresponder mode every incoming email, including repeats, get a response." echo " in Autoresponder mode every incoming email, including repeats, get a response."
exit exit

View File

@ -45,7 +45,7 @@ if [[ -n $tab ]]; then
dbcmdopts="-s -N $dbcmdopts" dbcmdopts="-s -N $dbcmdopts"
fi fi
dbquery="SELECT vm_mboxes.mbox, vm_domains.domain, vm_autoresponders.subject, QUOTE(REPLACE(vm_autoresponders.body,'\r\n','\\n')) AS body, vm_autoresponders.mode, vm_autoresponders.status FROM vm_autoresponders, vm_mboxes, vm_domains WHERE vm_autoresponders.mbox_id = vm_mboxes.id AND vm_mboxes.domain_id = vm_domains.id AND vm_domains.domain='$domain'" dbquery="SELECT vm_mboxes.mbox, vm_domains.domain, QUOTE(vm_autoresponders.subject) AS subject, QUOTE(REPLACE(REPLACE(vm_autoresponders.body,'\r\n','\n'),'\n','\\n')) AS body, vm_autoresponders.mode, vm_autoresponders.status FROM vm_autoresponders, vm_mboxes, vm_domains WHERE vm_autoresponders.mbox_id = vm_mboxes.id AND vm_mboxes.domain_id = vm_domains.id AND vm_domains.domain='$domain'"
# build query # build query
if [[ -n $email ]]; then if [[ -n $email ]]; then

View File

@ -23,7 +23,7 @@ help()
echo " -s <0|1> Status. 0 = disabled/off, 1 = enabled/on. Default is 1." echo " -s <0|1> Status. 0 = disabled/off, 1 = enabled/on. Default is 1."
echo "" echo ""
echo " The body must be single quoted and escaped. All single quotes in the body must" echo " The body must be single quoted and escaped. All single quotes in the body must"
echo " have double back slash like this \\' and all newlines should be encoded as \n." echo " have double back slash like this \\\' and all newlines should be encoded as \n."
echo " In Vacaion mode only the first email from a specific address is replied to," echo " In Vacaion mode only the first email from a specific address is replied to,"
echo " in Autoresponder mode every incoming email, including repeats, get a response." echo " in Autoresponder mode every incoming email, including repeats, get a response."
exit exit