Daniel Piddock
2012-Aug-03 11:30 UTC
[Dovecot] Pigeonhole sieve include namespace regression
Hi, We've recently upgraded from Dovecot 1.2.15 with Sieve 0.1.18 (Debian Squeeze) to Dovecot 2.1.8 and Pigeonhole 0.3.1. We provide a selection of global sieve scripts to make users' lives easier and one noticed that some of these have stopped working. I tracked it down to them having personal scripts with the same name. Using a really simple sieve script: require "include"; include :personal "svn"; include :global "svn"; sievec debug output for sieve 0.1.18 (trimmed a bit): * Required extensions: 0: include (16) 1: fileinto (5) * Included personal script 'svn' (block: 3): [script code here] * Included global script 'svn' (block: 4): [script code here] * Main program (block: 1): 00000000: EXTENSIONS [1]: 00000001: include 00000002: INCLUDE: 00000004: script: svn.sieve [ID: 1, BLOCK: 3] 00000006: INCLUDE: 00000008: script: svn.sieve [ID: 2, BLOCK: 4] 0000000a: [End of code] sievec debug output for Pigeonhole 0.3.1: * Required extensions (block: 1): 0: include (id: 16; block: 4) 1: fileinto (id: 5) * Included personal script 'svn' (block: 5): [script code here] * Main program (block: 2): Address Line Code 00000000: DEBUG BLOCK: 3 00000001: EXTENSIONS [1]: 00000002: include 00000003: 2: INCLUDE: 00000005: script: `svn' from /home/notroot/sieve/svn.sieve [ID: 1, BLOCK: 5] 00000007: 3: INCLUDE: 00000009: script: `svn' from /home/notroot/sieve/svn.sieve [ID: 1, BLOCK: 5] 0000000b: 3: [End of code] As can be seen the personal script is included twice. Obvious work around is to rename the personal script. However it'd be nice if namespacing came back. Cheers, Dan -- Daniel Piddock, Systems Administrator, CoreFiling Limited http://www.corefiling.com
Stephan Bosch
2012-Aug-03 18:02 UTC
[Dovecot] Pigeonhole sieve include namespace regression
On 8/3/2012 1:30 PM, Daniel Piddock wrote:> Hi, > > We've recently upgraded from Dovecot 1.2.15 with Sieve 0.1.18 (Debian > Squeeze) to Dovecot 2.1.8 and Pigeonhole 0.3.1. > > We provide a selection of global sieve scripts to make users' lives > easier and one noticed that some of these have stopped working. I > tracked it down to them having personal scripts with the same name. > > Using a really simple sieve script:Nice bug report.> As can be seen the personal script is included twice. Obvious work > around is to rename the personal script. However it'd be nice if > namespacing came back.This should fix it: http://hg.rename-it.nl/dovecot-2.1-pigeonhole/rev/6a34eda7924e I also extended the test suite to prevent this situation from occurring again, for file-based scripts anyway. Regards, Stephan.
Seemingly Similar Threads
- Dovecot LMTP - Delivered-To header weirdness
- lsbdistcodename and Debian Squeeze
- Running spamc during LMTP delivery
- Pigeonhole 0.3.4: Warning: sieve: encountered corrupt binary: re-compiling script
- Released Pigeonhole Sieve v0.1.18 and ManageSieve v0.11.12 for Dovecot v1.2.15