28 May
2018
28 May
'18
7:07 a.m.
Dear all,
I stumbled upon the following behaviour of Pigeonhole, which I consider to be problematic. A user deployed a Sieve script similar to the following snippet
if not anyof (address :is ["from","cc"] ["...", ..., "...@... GARBAGE", ...] { fileinto "inbox.Trash"; stop; }
Note the extra line break before GARBAGE. This script is obviously broken, but gets accepted by sievec and only fails later, at runtime with
line X: error: found stray carriage-return (CR) character in quoted string started at line X.
So, the question is whether line breaks in strings are allowed in general and the runtime error is unavoidable, or should sievec return an error?
Best regards, Thorsten