diff --git a/bin/vmail-autoresponders-add.sh b/bin/vmail-autoresponders-add.sh index e2c3f24..b7b5424 100755 --- a/bin/vmail-autoresponders-add.sh +++ b/bin/vmail-autoresponders-add.sh @@ -23,7 +23,7 @@ help() echo " -s <0|1> Status. 0 = disabled/off, 1 = enabled/on. Default is 1." echo "" 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 Autoresponder mode every incoming email, including repeats, get a response." exit diff --git a/bin/vmail-autoresponders-get.sh b/bin/vmail-autoresponders-get.sh index 9e84a20..ea7479b 100755 --- a/bin/vmail-autoresponders-get.sh +++ b/bin/vmail-autoresponders-get.sh @@ -45,7 +45,7 @@ if [[ -n $tab ]]; then dbcmdopts="-s -N $dbcmdopts" 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 if [[ -n $email ]]; then diff --git a/bin/vmail-autoresponders-mod.sh b/bin/vmail-autoresponders-mod.sh index d188c9f..b17f230 100755 --- a/bin/vmail-autoresponders-mod.sh +++ b/bin/vmail-autoresponders-mod.sh @@ -23,7 +23,7 @@ help() echo " -s <0|1> Status. 0 = disabled/off, 1 = enabled/on. Default is 1." echo "" 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 Autoresponder mode every incoming email, including repeats, get a response." exit