initial autoresponder fixes
This commit is contained in:
parent
8d2a67572b
commit
10789424dd
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user