Skip to content

sieve.y: tweak validation of template variables - #6248

Open
rjbs wants to merge 3 commits into
cyrusimap:masterfrom
rjbs:cyr-3195-sieve-notify-template
Open

sieve.y: tweak validation of template variables#6248
rjbs wants to merge 3 commits into
cyrusimap:masterfrom
rjbs:cyr-3195-sieve-notify-template

Conversation

@rjbs

@rjbs rjbs commented Aug 14, 2026

Copy link
Copy Markdown
Contributor

No description provided.

ksmurchison and others added 3 commits August 14, 2026 16:42
make sure syntax is correct and 'body' extension is required
Parse the index with strtoul and require a non-zero value closed with "]$".
A reference that does not parse is now emitted literally instead of being
expanded.
Cover the compile-time validation: a $text$ reference without the "body"
extension, an unterminated "$text[", a zero index, and a non-numeric index
are all rejected, while a well-formed reference still compiles.

Co-Authored-By: Claude <claude@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants