summaryrefslogtreecommitdiff
path: root/bin/interpret-mail
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2018-04-20 10:35:05 +0200
committerErich Eckner <git@eckner.net>2018-04-20 10:35:05 +0200
commit77e06435788e7bcb6e5c7cc60ea07dfc7bdb5852 (patch)
treee0fd857a8650a16f79d59ed03c6b88c9710c557d /bin/interpret-mail
parentd3920662d2aac315c421188346bf7822c275a856 (diff)
downloadbuilder-77e06435788e7bcb6e5c7cc60ea07dfc7bdb5852.tar.xz
bin/interpret-mail: fix mysql queries
Diffstat (limited to 'bin/interpret-mail')
-rwxr-xr-xbin/interpret-mail6
1 files changed, 3 insertions, 3 deletions
diff --git a/bin/interpret-mail b/bin/interpret-mail
index 85e81b7..65528b4 100755
--- a/bin/interpret-mail
+++ b/bin/interpret-mail
@@ -123,7 +123,7 @@ if ! hashcash -qXc -b 20 \
# shellcheck disable=SC2016
{
printf 'INSERT INTO `email_log` (`success`,`comment`)'
- printf ' VALUES 0,"Invalid stamp - ignoring this message.";\n'
+ printf ' VALUES (0,"Invalid stamp - ignoring this message.");\n'
} | \
mysql_run_query
exit
@@ -143,7 +143,7 @@ if ! sed -n '
# shellcheck disable=SC2016
{
printf 'INSERT INTO `email_log` (`success`,`comment`)'
- printf ' VALUES 0,from_base64("%s");\n' \
+ printf ' VALUES (0,from_base64("%s"));\n' \
"$(
{
printf 'Invalid encryption/signature - ignoring this message.\n'
@@ -183,7 +183,7 @@ if [ -z "${gpg_keys_filter}" ]; then
# shellcheck disable=SC2016
{
printf 'INSERT INTO `email_log` (`success`,`comment`)'
- printf ' VALUES 0,from_base64("%s");\n' \
+ printf ' VALUES (0,from_base64("%s"));\n' \
"$(
{
printf 'No known signature found - I found:\n'