Thread View: linux.debian.bugs.dist
2 messages
2 total messages
Started by Jordi Mallach
Sat, 17 Oct 2026 16:50
Bug#1151164: dovecot-sieve: sievec fails to resolve :global/:before/:after includes
Author: Jordi Mallach
Date: Sat, 17 Oct 2026 16:50
Date: Sat, 17 Oct 2026 16:50
105 lines
5715 bytes
5715 bytes
--2n7ZkNHZTRREZ6+6
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Package: dovecot-sieve
Version: 1:2.4.1+dfsg1-6+deb13u7
Severity: normal
Tags: patch upstream fixed-upstream
Dear Maintainer,
sievec (and the other lib-sieve-tool-based CLI utilities: sieve-test,
sieve-filter, sieve-dump) fails to resolve any Sieve "include" of a
non-personal script type (:global, :before, :after), always reporting
the included script as nonexistent even when correctly configured.
Real mail delivery via dovecot-lda/dovecot-lmtp is NOT affected, only
the CLI tools.
Reproduction:
# /etc/dovecot/local.conf
sieve_script personal {
type = personal
driver = file
path = ~/sieve
active_path = ~/.dovecot.sieve
}
sieve_script global {
type = global
driver = file
path = /etc/sieve
}
# /home/testuser/.dovecot.sieve
require ["include"];
include :global "spam";
# /etc/sieve/spam.sieve
require ["fileinto"];
fileinto "Spam";
$ sievec -c /etc/dovecot/dovecot.conf /home/testuser/.dovecot.sieve
.dovecot: line 2: error: included global script 'spam' does not exist.
sievec: Fatal: failed to compile sieve script
Root cause: sievec registers the script file given on the command line
as a synthetic "sieve_script" entry via settings_override(), using the
filter key "sieve_script" without a "+" suffix. In Dovecot's
settings-override mechanism, a filter-array key without "+" *replaces*
the whole array instead of adding to it, so every other configured
sieve_script block (global/default/personal) gets wiped out the moment
any CLI tool is pointed at a script file.
Already fixed upstream with a one-line commit:
https://github.com/dovecot/pigeonhole/commit/c80a52d59a92c139cca481c9af718a2fbfa0ae78
--- a/src/lib-sieve-tool/sieve-tool.c
+++ b/src/lib-sieve-tool/sieve-tool.c
@@ -587,7 +587,7 @@ sieve_tool_script_parse_location(...)
- settings_override(set_instance, "sieve_script", storage_name,
+ settings_override(set_instance, "sieve_script+", storage_name,
SETTINGS_OVERRIDE_TYPE_2ND_CLI_PARAM);
Present in Pigeonhole 2.4.2+; I confirmed it's already fixed in
unstable's dovecot-sieve 1:2.4.5+dfsg1-4, and also cherry-picked this
single line onto trixie's 1:2.4.1+dfsg1-6+deb13u7 source with no other
changes and confirmed it resolves the issue there too. Scoped entirely
to the CLI tools' own settings registration, not touching the delivery
path, so should be safe to backport via point release.
This makes sievec/sieve-test actively misleading for any site using
global/before/after scripts via "include", as it confidently reports a
working setup as broken, which sent us on an unnecessary multi-hour
troubleshooting detour before we found the real cause.
It would be great if this could hit a stable update for trixie at some
point.
Thanks for maintaining dovecot-sieve in Debian.
-- System Information:
(fill in with reportbug's auto-collected output from the affected host)
--2n7ZkNHZTRREZ6+6
Content-Type: application/pgp-signature; name=signature.asc
-----BEGIN PGP SIGNATURE-----
iQIzBAABCgAdFiEE6BdUhsApKYN8KGoWJVAvb8vjywQFAmrTpckACgkQJVAvb8vj
ywQ1qQ//UBrm2YtCTws93URZO7ReOUIBGDM8G5sgROwGtZl92xLwsRXkB5mWerfA
Y7jk2X66aalnL/WU8qiwQQW3Iygo4HRSMo5pgiwSlsdWnaCSKEHotMYQWaD8Mgdl
41zZgc7j4r1W/uBEJG1h4Q4DU8lzUVAUkxHOkOgJanN+tgZVXYr+cPY48vQhpVxG
uyh9dH8C84V9xQ/KETXBra08LK0i9mlvB42TGmdHRBPn/lq7TT3rFYf9UZf2fdgR
MZR5M7QrJuEl5vx17R0XlVKDkkm3shJvSx5Wv1tTquVYic+aAVCRt6QIJbWrxqQW
+JChETuutdN2nIrxAWw7n3C9Mo74H/I4XYGTXk2rI85V8HTraHwMV7TALAGOGubr
eRdMGamHnR/L0lhOqAu1dF3ST2v6nnpYtzO5jseKNVmhGJmV1dlD2gmx3+0biBqt
odYa7MlmhhOmcuJqWfIcaENB9sbIvwh/e2aVfTiKQGq6yPtjIhVHUwj48lje8yaX
RHmMjjfjdrtNYIa5AxD2zgBov7JZGZPfpBiXbaiyPrFJ7b6QhA0U0KaV3YlgQmFG
rvUTIM8CxDV9SpjWTkGYRWldLQarWkd5zuj17NVSGwEyBiEn8fuUqpCGTYYIRUud
ikXcDj/85giiZdPuKlDo9FMOlL7AKMufw7qiPS8qR8yJ0A4O4oo=
=RPYI
-----END PGP SIGNATURE-----
--2n7ZkNHZTRREZ6+6--
Bug#1151164: dovecot-sieve: sievec fails to resolve :global/:before/:after includes
Author: Noah Meyerhans
Date: Sat, 17 Oct 2026 20:00
Date: Sat, 17 Oct 2026 20:00
11 lines
2100 bytes
2100 bytes
Control: tags -1 + pending On Sat, Oct 17, 2026 at 06:43:54PM +0200, Jordi Mallach wrote: > Already fixed upstream with a one-line commit: > > https://github.com/dovecot/pigeonhole/commit/c80a52d59a92c139cca481c9af718a2fbfa0ae78 Thanks. I've added this patch to the trixie branch and will include it in the next stable update. noah
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads