RFC Errata
RFC 8579, "Sieve Email Filtering: Delivering to Special-Use Mailboxes", May 2019
Source of RFC: extra (art)See Also: RFC 8579 w/ inline errata
Errata ID: 5877
Status: Verified
Type: Technical
Publication Format(s) : TEXT
Reported By: Stephan Bosch
Date Reported: 2019-10-18
Verifier Name: Barry Leiba
Date Verified: 2019-10-19
Section 6 says:
require "imapsieve"; require "special-use"; require "environment"; require "variables"; if environment :contains "imap.mailbox" "*" { set "mailbox" "${1}"; } if allof( environment "imap.cause" "COPY", specialuse_exists "${mailbox}" "\\Junk") { redirect "spam-report@example.org"; }
It should say:
require "imapsieve"; require "special-use"; require "environment"; require "variables"; if environment :matches "imap.mailbox" "*" { set "mailbox" "${1}"; } if allof( environment "imap.cause" "COPY", specialuse_exists "${mailbox}" "\\Junk") { redirect "spam-report@example.org"; }
Notes:
The final example is using the ":contains" match type to extract a match variable, which will not work. It should use ":matches" instead.