<html><head></head><body><div style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:13px;"><div><div>Hi,</div><div><br></div><div>ok, so I have to 'fileinto' AND stop processing.</div><div>I thought that just 'stop' does the trick.</div><div><br></div><div>I am trying that, thank you</div><div><br></div><div>Nicolas.<br></div><br></div><div><br></div>
<div id="yahoo_quoted_2307790735" class="yahoo_quoted">
<div style="font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;font-size:13px;color:#26282a;">
<div>
Le jeudi 22 mars 2018 à 19:29:15 UTC+1, Stephan Bosch <stephan@rename-it.nl> a écrit :
</div>
<div><br></div>
<div><br></div>
<div><div dir="ltr">Op 3/22/2018 om 3:30 PM schreef Mr Nicolas Belan:<div class="yqt2540870548" id="yqtfd38228"><br clear="none">> Hello the list,<br clear="none">><br clear="none">> I am trying to achieve filter processing using sieve, but i am not<br clear="none">> sure I can do what I want.<br clear="none">><br clear="none">> I want to let the user decide to use my filtering script (sieve_after)<br clear="none">> or not.<br clear="none">> According to the documentation, i am trying to stop processing in user<br clear="none">> sieve script, but processing continue.<br clear="none">><br clear="none">> I am using dovecot 2.2 (CentOS).<br clear="none">><br clear="none">> My sieve configuration is:<br clear="none">> plugin {<br clear="none">> sieve = /var/vmail/%d/%n/%n.sieve<br clear="none">> sieve_before = /etc/dovecot/sieve/global-before<br clear="none">> sieve_after = /etc/dovecot/sieve/global<br clear="none">> [...]<br clear="none">> }<br clear="none">><br clear="none">> 'sieve' is the filter script created by users.<br clear="none">> When trying to stop processing, it is generated by roundcube like:<br clear="none">> # rule:[deliver to mailbox]<br clear="none">> if anyof (true)<br clear="none">> {<br clear="none">> stop;<br clear="none">> }<br clear="none">><br clear="none">> 'sieve_after' is the filter which handles the spam processing<br clear="none">> (fileinto Junk).<br clear="none">><br clear="none">> But the processing continue until all sieve filters are processed:<br clear="none">><br clear="none">> Mar 22 14:50:23 lda(<a shape="rect" ymailto="mailto:user@example.com" href="mailto:user@example.com">user@example.com</a>): Debug: none: root=, index=,<br clear="none">> indexpvt=, control=, inbox=, alt=<br clear="none">> Mar 22 14:50:23 lda(<a shape="rect" ymailto="mailto:user@example.com" href="mailto:user@example.com">user@example.com</a>): Debug: Destination address:<br clear="none">> <a shape="rect" ymailto="mailto:user@example.com" href="mailto:user@example.com">user@example.com</a> (source: -a parameter)<br clear="none">> Mar 22 14:50:23 lda(<a shape="rect" ymailto="mailto:user@example.com" href="mailto:user@example.com">user@example.com</a>): Debug: sieve: Pigeonhole<br clear="none">> version 0.4.2 initializing<br clear="none">> Mar 22 14:50:23 lda(<a shape="rect" ymailto="mailto:user@example.com" href="mailto:user@example.com">user@example.com</a>): Debug: sieve: include:<br clear="none">> sieve_global_dir is not set; it is currently not possible to include<br clear="none">> `:global' scripts.<br clear="none">> Mar 22 14:50:23 lda(<a shape="rect" ymailto="mailto:user@example.com" href="mailto:user@example.com">user@example.com</a>): Debug: sieve: executed before<br clear="none">> user's personal Sieve script(1): /etc/dovecot/sieve/global-before<br clear="none">> Mar 22 14:50:23 lda(<a shape="rect" ymailto="mailto:user@example.com" href="mailto:user@example.com">user@example.com</a>): Debug: sieve: using the<br clear="none">> following location for user's Sieve script:<br clear="none">> /var/vmail/example.com/user/user.sieve;name=main script<br clear="none">> Mar 22 14:50:23 lda(<a shape="rect" ymailto="mailto:user@example.com" href="mailto:user@example.com">user@example.com</a>): Debug: sieve: executed after<br clear="none">> user's Sieve script(3): /etc/dovecot/sieve/global<br clear="none">> Mar 22 14:50:23 lda(<a shape="rect" ymailto="mailto:user@example.com" href="mailto:user@example.com">user@example.com</a>): Debug: sieve: opening script 1<br clear="none">> of 3 from /etc/dovecot/sieve/global-before<br clear="none">> Mar 22 14:50:23 lda(<a shape="rect" ymailto="mailto:user@example.com" href="mailto:user@example.com">user@example.com</a>): Debug: sieve: loading script<br clear="none">> /etc/dovecot/sieve/global-before<br clear="none">> Mar 22 14:50:23 lda(<a shape="rect" ymailto="mailto:user@example.com" href="mailto:user@example.com">user@example.com</a>): Debug: sieve: script binary<br clear="none">> /etc/dovecot/sieve/global-before.svbin successfully loaded<br clear="none">> Mar 22 14:50:23 lda(<a shape="rect" ymailto="mailto:user@example.com" href="mailto:user@example.com">user@example.com</a>): Debug: sieve: binary save: not<br clear="none">> saving binary /etc/dovecot/sieve/global-before.svbin, because it is<br clear="none">> already stored<br clear="none">> Mar 22 14:50:23 lda(<a shape="rect" ymailto="mailto:user@example.com" href="mailto:user@example.com">user@example.com</a>): Debug: sieve: executing script<br clear="none">> from /etc/dovecot/sieve/global-before.svbin<br clear="none">> Mar 22 14:50:23 lda(<a shape="rect" ymailto="mailto:user@example.com" href="mailto:user@example.com">user@example.com</a>): Debug: sieve: opening script 2<br clear="none">> of 3 from /var/vmail/example.com/user/user.sieve;name=main script<br clear="none">> Mar 22 14:50:23 lda(<a shape="rect" ymailto="mailto:user@example.com" href="mailto:user@example.com">user@example.com</a>): Debug: sieve: loading script<br clear="none">> /var/vmail/example.com/user/user.sieve;name=main script<br clear="none">> Mar 22 14:50:23 lda(<a shape="rect" ymailto="mailto:user@example.com" href="mailto:user@example.com">user@example.com</a>): Debug: sieve: script binary<br clear="none">> /var/vmail/example.com/user/user.svbin successfully loaded<br clear="none">> Mar 22 14:50:23 lda(<a shape="rect" ymailto="mailto:user@example.com" href="mailto:user@example.com">user@example.com</a>): Debug: sieve: binary save: not<br clear="none">> saving binary /var/vmail/example.com/user/user.svbin, because it is<br clear="none">> already stored<br clear="none">> Mar 22 14:50:23 lda(<a shape="rect" ymailto="mailto:user@example.com" href="mailto:user@example.com">user@example.com</a>): Debug: sieve: executing script<br clear="none">> from /var/vmail/example.com/user/user.svbin<br clear="none">> Mar 22 14:50:23 lda(<a shape="rect" ymailto="mailto:user@example.com" href="mailto:user@example.com">user@example.com</a>): Debug: sieve: opening script 3<br clear="none">> of 3 from /etc/dovecot/sieve/global<br clear="none">> Mar 22 14:50:23 lda(<a shape="rect" ymailto="mailto:user@example.com" href="mailto:user@example.com">user@example.com</a>): Debug: sieve: loading script<br clear="none">> /etc/dovecot/sieve/global<br clear="none">> Mar 22 14:50:23 lda(<a shape="rect" ymailto="mailto:user@example.com" href="mailto:user@example.com">user@example.com</a>): Debug: sieve: script binary<br clear="none">> /etc/dovecot/sieve/global.svbin successfully loaded<br clear="none">> Mar 22 14:50:23 lda(<a shape="rect" ymailto="mailto:user@example.com" href="mailto:user@example.com">user@example.com</a>): Debug: sieve: binary save: not<br clear="none">> saving binary /etc/dovecot/sieve/global.svbin, because it is already<br clear="none">> stored<br clear="none">> Mar 22 14:50:23 lda(<a shape="rect" ymailto="mailto:user@example.com" href="mailto:user@example.com">user@example.com</a>): Debug: sieve: executing script<br clear="none">> from /etc/dovecot/sieve/global.svbin<br clear="none">> Mar 22 14:50:23 lda(<a shape="rect" ymailto="mailto:user@example.com" href="mailto:user@example.com">user@example.com</a>): Debug: Namespace : Using<br clear="none">> permissions from /var/vmail/example.com/user/Maildir: mode=0700<br clear="none">> gid=default<br clear="none">> Mar 22 14:50:23 lda(<a shape="rect" ymailto="mailto:user@example.com" href="mailto:user@example.com">user@example.com</a>): Info: sieve:<br clear="none">> msgid=<<a shape="rect" ymailto="mailto:cm.0045046409888.jyshukd.kidudykyhi.r@cmail19.com" href="mailto:cm.0045046409888.jyshukd.kidudykyhi.r@cmail19.com">cm.0045046409888.jyshukd.kidudykyhi.r@cmail19.com</a>>: stored mail<br clear="none">> into mailbox 'Courrier indésirable'<br clear="none">><br clear="none">> I would like to stop processing after<br clear="none">> Mar 22 14:50:23 lda(<a shape="rect" ymailto="mailto:user@example.com" href="mailto:user@example.com">user@example.com</a>): Debug: sieve: using the<br clear="none">> following location for user's Sieve script:<br clear="none">> /var/vmail/example.com/user/user.sieve;name=main script<br clear="none">> At the end, I do not want mail to be delivered into Junk, but into INBOX..<br clear="none">><br clear="none">> Is it possible ?<br clear="none">> Perhaps a sieve, sieve2 setting exists ? (like sieve_before,<br clear="none">> sieve_before2 ...)</div><br clear="none"><br clear="none">Sieve processing continues into the next script in the sequence as long<br clear="none">as an (implicit) keep is active. So, when you want to halt the sequence,<br clear="none">but have the message filed into INBOX, you need to get the implicit keep<br clear="none">canceled and end the script: e.g. do { fileinto "INBOX"; stop; }<br clear="none"><br clear="none">Regards,<br clear="none"><br clear="none">Stephan<div class="yqt2540870548" id="yqtfd48997"><br clear="none"><br clear="none"></div></div></div>
</div>
</div></div></body></html>