]> dgit.raspbian.org Git - dovecot.git/commit
[PATCH 2/7] lib-sieve: Drop binary-header resource usage tracking
authorTimo Sirainen <timo.sirainen@open-xchange.com>
Tue, 5 May 2026 16:19:20 +0000 (16:19 +0000)
committerNoah Meyerhans <noahm@debian.org>
Wed, 16 Sep 2026 19:06:35 +0000 (15:06 -0400)
commit8633edbbc4e8121a466728d79314a9d24a02df7c
tree695dcb9e43122645b76d5cab00ce0532f744453f
parent38b546cae160ba22111eff3fe4745fb839edacf0
[PATCH 2/7] lib-sieve: Drop binary-header resource usage tracking

With the per-user sieve-rusage file now authoritative for personal
storages, the .svbin header no longer needs to carry CPU usage. Admin
storages (sieve_before/after, default location) cannot be re-uploaded
by the user, so cross-run tracking is unnecessary there; the runtime
sieve_max_cpu_time check still enforces the per-execution limit.

Move the in-memory cumulative carry-over from sbin->header.resource_usage
to a dedicated sbin->persisted_rusage substruct. The on-disk header
struct now solely represents the wire format and is zeroed on every
save; the in-memory carry-over no longer overloads it. Drop the now-dead
"resource usage" section from sieve_binary_dumper_run() (the on-disk
fields are always zero, so the section never produced output).

Gbp-Pq: Name 0002-lib-sieve-Drop-binary-header-resource-usage-tracking.patch
pigeonhole/src/lib-sieve/sieve-binary-dumper.c
pigeonhole/src/lib-sieve/sieve-binary-file.c
pigeonhole/src/lib-sieve/sieve-binary-private.h
pigeonhole/src/lib-sieve/sieve-binary.c