search for: debug_log

Displaying 20 results from an estimated 67 matches for "debug_log".

Did you mean: debug_loc
2018 Jun 30
1
How to log a Sieve match in Dovecot debug_log
...; if anyof ( body :text :contains [ "crypto", "sex", "viagra" ]) { setflag "\\Seen"; addheader :last "X-Sieve-Filtered" "blocked words in message body"; fileinto "INBOX.Spam"; debug_log "Body contains blocked word: <the matching word>"; } -- the script ends -------------- This is simpler to maintain if you have a long list of word. And here comes my previous question: it would be great if there is a way to log the matching word in order to know what word in th...
2018 Jun 30
4
How to log a Sieve match in Dovecot debug_log
...s "crypto", ????????body :text :contains "sex", ?? ? ? ?body :text :contains "viagra" ?? ? ? ?) { ??setflag "\\Seen"; ??addheader :last "X-Sieve-Filtered" "blocked words in message body"; ??fileinto "INBOX.Spam"; ??debug_log "Body contains blocked word: <the matching word>"; } -- the script ends -------------- MY QUESTION: is there a way to have also the result of the match in that log message? I mean, is it possible to have that "<the matching word>" substituted with the exact wor...
2016 Dec 05
3
imapsieve environment variables missing?
...>> >> if environment :matches "imap.user" "*" { >> set "username" "${1}"; >> } >> >> Also tried prefixing with "env." or removing "imap." >> >> Result is always empty string (dumped with debug_log) >> >> Script is run during COPY operations, newest tarball releases >> installed for dovecot and pigeonhole. > > Could you show me your full script? I am mainly interested in the > require statements involved. I don't know how I managed to compile only using dire...
2015 Dec 30
2
sieve-filter to script fails with SHUT_WR
...ariables", "envelope", "vnd.dovecot.debug", "vnd.dovecot.filter" ]; if envelope :matches "to" "*" { set "to" "${1}"; } if envelope :matches "from" "*" { set "from" "${1}"; } debug_log "Received message TO=${to} FROM=${from}"; filter "CleanAttachments.py"; debug_log "Returned from CleanAttachments"; if envelope :matches "to" "*" { set "to" "${1}"; } if envelope :matches "from" "*&qu...
2018 Jun 30
0
How to log a Sieve match in Dovecot debug_log
...:text :contains "sex", > body :text :contains "viagra" > ) > { > setflag "\\Seen"; > addheader :last "X-Sieve-Filtered" "blocked words in message body"; > fileinto "INBOX.Spam"; > debug_log "Body contains blocked word: <the matching word>"; > } > > -- the script ends -------------- > > > MY QUESTION: is there a way to have also the result of the match in that log message? I mean, is it possible to have that "<the matching word>"...
2018 Jun 30
1
How to log a Sieve match in Dovecot debug_log
...l opinions that don't answer a question are... useless! Lukas ----- Messaggio originale ----- Da: "@lbutlr" <kremels at kreme.com> A: "dovecot" <dovecot at dovecot.org> Inviato: Sabato, 30 giugno 2018 23:13:39 Oggetto: Re: How to log a Sieve match in Dovecot debug_log On 30 Jun 2018, at 03:28, Lukas <lukas at email.it> wrote: > body :text :contains "crypto", > body :text :contains "sex", > body :text :contains "viagra" This is a very silly way to try to deal with spam. In fact, your own messa...
2016 Dec 05
2
imapsieve environment variables missing?
...les: >>>> >>>> require ["environment", "variables", "vnd.dovecot.debug"]; >>>> >>>> if environment :matches "imap.user" "*" { >>>> set "u" "${1}"; } >>>> debug_log "Found username: \${u}"; >>>> if environment :matches "name" "*" { >>>> set "n" "${1}"; } >>>> debug_log "Found product name: \${n}"; >>>> >>>> The output is: >>>>...
2018 Jun 30
0
How to log a Sieve match in Dovecot debug_log
On 30 Jun 2018, at 03:28, Lukas <lukas at email.it> wrote: > body :text :contains "crypto", > body :text :contains "sex", > body :text :contains "viagra" This is a very silly way to try to deal with spam. In fact, your own message to the list will be flagged by your rule. Actual spam message will illy not even hit this rule as
2018 Aug 16
2
imapsieve: Change message flags on COPY
...if header :matches "Subject" "*" { set "subject" "${1}"; } if header :matches "From" "*" { set "from" "${1}"; } if environment :matches "imap.mailbox" "*" { set "dst" "${1}"; } debug_log "IMAPSIEVE TEST ---------------------"; debug_log "subject:${subject}"; debug_log "from:${from}"; debug_log "dst:${dst}"; debug_log "END IMAPSIEVE TEST -----------------"; if string :is "${dst}" ["Archive", "Trash", &q...
2016 Dec 05
2
imapsieve environment variables missing?
...ng to do? Trying to access as a variable: \${imap.user} Also tried: if environment :matches "imap.user" "*" { set "username" "${1}"; } Also tried prefixing with "env." or removing "imap." Result is always empty string (dumped with debug_log) Script is run during COPY operations, newest tarball releases installed for dovecot and pigeonhole.
2018 Aug 16
0
imapsieve: Change message flags on COPY
...s "Subject" "*" { set "subject" "${1}"; } > if header :matches "From" "*" { set "from" "${1}"; } > if environment :matches "imap.mailbox" "*" { set "dst" "${1}"; } > > debug_log "IMAPSIEVE TEST ---------------------"; > debug_log "subject:${subject}"; > debug_log "from:${from}"; > debug_log "dst:${dst}"; > debug_log "END IMAPSIEVE TEST -----------------"; > > if string :is "${dst}" ["Archive...
2017 Sep 01
2
Re: The issue about code coverage for libguestfs
...ILD/libguestfs-1.36.5/ocaml/examples' ocamlfind ocamlopt -cclib -L../../lib/.libs -package unix -linkpkg \ -warn-error A -I .. mlguestfs.cmxa create_disk.ml -o create_disk ocamlfind ocamlopt -cclib -L../../lib/.libs -package unix -linkpkg \ -warn-error A -I .. mlguestfs.cmxa debug_logging.ml -o debug_logging /usr/bin/ld: cannot find -lgnu collect2: error: ld returned 1 exit status --------------------------------------------------------- Then I removed the '-lgnu' option. The error was still the same as before: ---------------------------------------------------------...
2016 Dec 05
2
imapsieve environment variables missing?
.... >> >> But doing it this way compiles: >> >> require ["environment", "variables", "vnd.dovecot.debug"]; >> >> if environment :matches "imap.user" "*" { >> set "u" "${1}"; } >> debug_log "Found username: \${u}"; >> if environment :matches "name" "*" { >> set "n" "${1}"; } >> debug_log "Found product name: \${n}"; >> >> The output is: >> >> DEBUG: Found username: >> DEBUG:...
2020 Jan 24
0
sieve size match with multiple of 4GB not matching (BUG?)
..., I have noticed a strange behaviour when using size matches with GB in sieve. If I use filter that matches mails smaller then 4, or 8GB it does not match in any case. same filter matches with 3,5,6,7 GB example filter: require "vnd.dovecot.debug"; if allof (size :under 4G) { debug_log "MATCH"; } else { debug_log "NO MATCH"; } # sieve-filter -u johnd filter.sieve INBOX >> Filtering message: ID: <5167DFC8.8040207 at XXXXXX> Date: Fri, 12 Apr 2013 12:19:52 +0200 Size: 1820898 bytes Subject: Fwd: Multi-media mail demonstr...
2014 Oct 20
1
Sieve: carry global variables from sieve_before to user sieve scripts
...ript or in user scripts? I've tried the following code but this doesn't work.. before.d/10-set-defaults.sieve: -------------------- 8< -------------------- require ["variables", "include"]; require "vnd.dovecot.debug"; set "global.S_TESTVAR leo"; debug_log "LEO SIEVE: in before.d/10-set-defaults, S_TESTVAR: ${global.S_TESTVAR}"; -------------------- 8< -------------------- default.sieve: -------------------- 8< -------------------- require ["variables", "include"]; require "vnd.dovecot.debug"; global &q...
2008 Jan 04
1
Updates and Fixes on Trunk
Hi, I am pushing some updates and fixes that addresses much of the issues that we talked about since last couple of days. 1. Use configuration option :debug_log: false to disable backgroundrb_debug.log. 2. As shown below, use lazy_load option to disable aggressive loading of models ( and somewhat stupid too). 3. MiddleMan.delete_worker(:worker => :foo_worker) will now ABORT the worker, it won''t wait for tasks to finish. I am still skeptic about...
2018 Nov 13
3
execute sieve command - fails to notice script has exited
Hi, Running dovecot 2.2.27 (c0f36b0) on Debian GNU/Linux stable (version 9.6), I'm trying to use the execute command in a sieve script, with direct execution (not service socket). The script is executed, and returns (the process exits), but the dovecot-lda process seems to not notice, and thinks the script did not terminate. After sieve_execute_exec_timeout has passed, it sends a TERM, a bit
2016 Dec 05
1
imapsieve environment variables missing?
...gt;> require ["environment", "variables", "vnd.dovecot.debug"]; >>>>>> >>>>>> if environment :matches "imap.user" "*" { >>>>>> set "u" "${1}"; } >>>>>> debug_log "Found username: \${u}"; >>>>>> if environment :matches "name" "*" { >>>>>> set "n" "${1}"; } >>>>>> debug_log "Found product name: \${n}"; >>>>>> >>>>&...
2017 Aug 31
2
The issue about code coverage for libguestfs
...ILD/libguestfs-1.36.5/ocaml/examples' ocamlfind ocamlopt -cclib -L../../lib/.libs -package unix -linkpkg \ -warn-error A -I .. mlguestfs.cmxa create_disk.ml -o create_disk ocamlfind ocamlopt -cclib -L../../lib/.libs -package unix -linkpkg \ -warn-error A -I .. mlguestfs.cmxa debug_logging.ml -o debug_logging ../libmlguestfs.a(libguestfsocaml_a-utils.o): In function `guestfs_int_string_is_valid': utils.c:(.text+0xb99): undefined reference to `c_isalpha' utils.c:(.text+0xbbf): undefined reference to `c_isdigit' collect2: error: ld returned 1 exit status File "caml...
2018 Nov 13
0
execute sieve command - fails to notice script has exited
And the Sieve script: ------- start sieve script --------- require ["vnd.dovecot.execute", "fileinto", "mailbox", "vnd.dovecot.debug"]; debug_log "about to execute"; if not execute :pipe "foofilter" { debug_log "if condition fulfilled"; fileinto :create "test-spam"; debug_log "about to stop"; stop; } debug_log "after execute"; ------- end sieve script --------- The user'...