<html><head></head><body><div style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:13px;"><div>Hello the list,<br></div><div><br></div><div>I am trying to achieve filter processing using sieve, but i am not sure I can do what I want.</div><div><br></div><div>I want to let the user decide to use my filtering script (sieve_after) or not.</div><div>According to the documentation, i am trying to stop processing in user sieve script, but processing continue.<br></div><div><br></div><div>I am using dovecot 2.2 (CentOS).</div><div><br></div><div>My sieve configuration is:</div><div>plugin {<br> sieve = /var/vmail/%d/%n/%n.sieve<br> sieve_before = /etc/dovecot/sieve/global-before<br> sieve_after = /etc/dovecot/sieve/global<br></div><div>[...]</div><div>}</div><div><br></div><div>'sieve' is the filter script created by users. </div><div>When trying to stop processing, it is generated by roundcube like:</div><div># rule:[deliver to mailbox]<br>if anyof (true)<br>{<br> stop;<br>}<br></div><div><br></div><div>'sieve_after' is the filter which handles the spam processing (fileinto Junk).</div><div><br></div><div>But the processing continue until all sieve filters are processed:</div><div><br></div><div> Mar 22 14:50:23 lda(user@example.com): Debug: none: root=, index=, indexpvt=, control=, inbox=, alt=</div>Mar 22 14:50:23 lda(user@example.com): Debug: Destination address: user@example.com (source: -a parameter)<br>Mar 22 14:50:23 lda(user@example.com): Debug: sieve: Pigeonhole version 0.4.2 initializing<br>Mar 22 14:50:23 lda(user@example.com): Debug: sieve: include: sieve_global_dir is not set; it is currently not possible to include `:global' scripts.<br>Mar 22 14:50:23 lda(user@example.com): Debug: sieve: executed before user's personal Sieve script(1): /etc/dovecot/sieve/global-before<br>Mar 22 14:50:23 lda(user@example.com): Debug: sieve: using the following location for user's Sieve script: /var/vmail/example.com/user/user.sieve;name=main script<br>Mar 22 14:50:23 lda(user@example.com): Debug: sieve: executed after user's Sieve script(3): /etc/dovecot/sieve/global<br>Mar 22 14:50:23 lda(user@example.com): Debug: sieve: opening script 1 of 3 from /etc/dovecot/sieve/global-before<br>Mar 22 14:50:23 lda(user@example.com): Debug: sieve: loading script /etc/dovecot/sieve/global-before<br>Mar 22 14:50:23 lda(user@example.com): Debug: sieve: script binary /etc/dovecot/sieve/global-before.svbin successfully loaded<br>Mar 22 14:50:23 lda(user@example.com): Debug: sieve: binary save: not saving binary /etc/dovecot/sieve/global-before.svbin, because it is already stored<br>Mar 22 14:50:23 lda(user@example.com): Debug: sieve: executing script from /etc/dovecot/sieve/global-before.svbin<br>Mar 22 14:50:23 lda(user@example.com): Debug: sieve: opening script 2 of 3 from /var/vmail/example.com/user/user.sieve;name=main script<br>Mar 22 14:50:23 lda(user@example.com): Debug: sieve: loading script /var/vmail/example.com/user/user.sieve;name=main script<br>Mar 22 14:50:23 lda(user@example.com): Debug: sieve: script binary /var/vmail/example.com/user/user.svbin successfully loaded<br>Mar 22 14:50:23 lda(user@example.com): Debug: sieve: binary save: not saving binary /var/vmail/example.com/user/user.svbin, because it is already stored<br>Mar 22 14:50:23 lda(user@example.com): Debug: sieve: executing script from /var/vmail/example.com/user/user.svbin<br>Mar 22 14:50:23 lda(user@example.com): Debug: sieve: opening script 3 of 3 from /etc/dovecot/sieve/global<br>Mar 22 14:50:23 lda(user@example.com): Debug: sieve: loading script /etc/dovecot/sieve/global<br>Mar 22 14:50:23 lda(user@example.com): Debug: sieve: script binary /etc/dovecot/sieve/global.svbin successfully loaded<br>Mar 22 14:50:23 lda(user@example.com): Debug: sieve: binary save: not saving binary /etc/dovecot/sieve/global.svbin, because it is already stored<br>Mar 22 14:50:23 lda(user@example.com): Debug: sieve: executing script from /etc/dovecot/sieve/global.svbin<br>Mar 22 14:50:23 lda(user@example.com): Debug: Namespace : Using permissions from /var/vmail/example.com/user/Maildir: mode=0700 gid=default<br>Mar 22 14:50:23 lda(user@example.com): Info: sieve: msgid=<cm.0045046409888.jyshukd.kidudykyhi.r@cmail19.com>: stored mail into mailbox 'Courrier indésirable'<br><div><br><div>I would like to stop processing after</div><div>Mar 22 14:50:23 lda(user@example.com): Debug: sieve: using the following
location for user's Sieve script:
/var/vmail/example.com/user/user.sieve;name=main script</div><div>At the end, I do not want mail to be delivered into Junk, but into INBOX..</div><div><br></div><div>Is it possible ? </div><div>Perhaps a sieve, sieve2 setting exists ? (like sieve_before, sieve_before2 ...) </div><div><br></div><div>Thank you for your help, ideas :)</div><div><br></div><div>Best regards,<br></div><div class="ydpa119b250signature">Nicolas</div><div class="ydpa119b250signature"><br></div></div></div></body></html>