Op 22-7-2017 om 18:02 schreef Ingo Thierack:
Hello,
migrated von the mailserver from centos to alpine linux. Most parts are run well.
dovecot 2.2.31 sieve: 0.4.19
But i fight with on behavior.
I have an sieve script which pipes a few fields to an external script which send this data to an telegram-bot.
the part of the sieve-script.
if header :matches "Subject" "*" { set "subject" "${1}"; } if header :matches "from" "*" { set "from" "${1}"; } if header :matches "to" "*" { set "to" "${1}"; }
foreverypart { if header :mime :type :is "Content-Type" "text" { extracttext :first 30 "msgcontent"; break; } }
pipe :copy :try "notify.sh" [ "", "(${from})#${to}#${subject}", "\"${msgcontent}\"" ];
What i get now is an error about looks like encoding of the linefeeds.
default: line 107: error: specified :args item `"test 4??"' is invalid.
Here is sent a mail which contains in subject "test 4".
or default: line 107: error: specified :args item `"?? ?? ??? ??? Oracle Magazine "' is invalid.
Here is sent a mail which contains in subject "test 4".
On centos this was never an problem. With alpine-linux this process is complete broken.
Any hints, where to look and maybee fix thie behavior? Mybe its ab problem with the libmusl which used in alpine.
This is nothing new:
https://github.com/dovecot/pigeonhole/blob/master/doc/rfc/spec-bosch-sieve-e... https://github.com/dovecot/pigeonhole/blob/master/src/plugins/sieve-extprogr... (code is at least 4 years old)
I could add an option to allow newlines, but I am not sure that is a good idea per se.
Regards,
Stephan.