On 21 Oct 2020, at 14:10, @lbutlr <kremels at kreme.com> wrote:> I have trace logs enabled for user scripts, but I think only error get logged for upper level, and only along the lines of "could not compile <name of sieve>".Any ideas? Is there a way to force the default and sieve_before scripts to log to syslog? -- The real world was far too real to leave neat little hints. It was full of too many things. It wasn't by eliminating the impossible that you got at the truth, however improbable; it was by the much harder process of eliminating the possibilities. --Feet of Clay
On 22 Oct 2020, at 09:35, @lbutlr <kremels at kreme.com> wrote:> Is there a way to force the default and sieve_before scripts to log to syslog?OK, the "top level" sieves are also logged to the users trace files along with the user's sieve files, if any. So, I am getting this: 3: address test 3: starting `:matches' match with `i;ascii-casemap' comparator: 3: extracting `To' headers from message 3: parsing address header value `@lbutlr <kremels at kreme.com>' 3: address value `kremels at kreme.com' 3: extracting `all' part from address <kremels at kreme.com> 3: matching value `kremels at kreme.com' 3: with key `*@*.' => 0 3: extracting `Cc' headers from message 3: finishing match with result: not matched 3: jump if result is false 3: jumping to line 4 ## Finished executing script 'bcc' bcc.sieve: require ["variables", "copy"]; if address :matches ["To", "Cc"] ["*@*."] { redirect :copy "backup+295.${1}.${2}@*example.com*"; } I've obviously done something wrong there, but what? I don't think 'redirect' has any required plugins (or at least I could find no mention of one, maybe it's implied to be part of fileinto? -- Cause love's such an old fashioned word And love dares you to care for the people on the Edge of the night, and love dares you to change Our way of caring about ourselves, This is our last dance This is ourselves. Under Pressure.
On 22 Oct 2020, at 10:05, @lbutlr <kremels at kreme.com> wrote:> require ["variables", "copy"]; > > if address :matches ["To", "Cc"] ["*@*."] { > redirect :copy "backup+295.${1}.${2}@*example.com*"; > }I have tried this with similar results: require ["copy", "variables", "envelope", "fileinto", "subaddress"]; if envelope :matches :detail "to" "*" { set :lower "name" "${1}"; redirect :copy "backup+295.${name}@@*example.com*"; } ## Started executing script 'bcc' 5: envelope test 5: starting `:matches' match with `i;ascii-casemap' comparator: 5: getting `to' part from message envelope 5: extracting `detail' part from address <kremels at kreme.com> 5: finishing match with result: not matched 5: jump if result is false 5: jumping to line 7 ## Finished executing script 'bcc' So why are these not matching? I can see the 'detail' right there, and this matches examples that I see online. (I've read, I think, every page google or DDG can find that contains "redirect :copy" to no avail). -- I'm no psychologist (although I play one when I'm picking up chicks over by the asylum)