Sieve Extensions

Created

  • 2000-11

Last Updated

  • 2024-10-15

Available Formats


Sieve Extensions

Reference

  • RFC 5228: Sieve: An Email Filtering Language

Available Formats

RangeRegistration Procedures
vendor-controlled (name begins with "vnd.")First Come First Served
IETF-controlled (no "vnd." prefix)Standards track or IESG-approved experimental RFC
Capability nameDescriptionRFC numberContact addressRegistration date
bodyProvides a test for matching against the the body of the message being processedRFC 5173Sieve discussion list
comparator-* (anything starting with "comparator-")adds the indicated comparator for use with the :comparator argumentRFC 4790; RFC 5228 (Sieve base spec)Sieve discussion list
convertadds a new Sieve test and action that enable Sieve scripts to perform data conversions on the message being delivered.RFC 6558Sieve discussion list
copyRFC 3894Jutta Degener
dateThe "date" extension gives Sieve the ability to test date and time values.RFC 5260Sieve discussion list
duplicateAdds test 'duplicate' that can be used to test whether a particular message is a duplicate, i.e., whether a copy of it was seen before by the delivery agent that is executing the Sieve script.RFC 7352Sieve discussion list2014-06-30
editheaderAdds actions 'addheader' and 'deleteheader' that modify the header of the message being processedRFC 5293Sieve discussion list
encloseadds the "enclose" action for enclosing a message with a wrapper.RFC 5703Sieve discussion list
encoded-characterchanges the interpretation of strings to allow arbitrary octets and Unicode characters to be represented using US-ASCIIRFC 5228 (Sieve base spec)Sieve discussion list
enotifyadds the 'notify' action for notifying user about the received message. It also provides two new tests: valid_notify_method checks notification URIs for validity; notify_method_capability can check recipients capabilities.RFC 5435Sieve discussion list
envelopeadds the 'envelope' test for testing the message transport sender and recipient addressRFC 5228 (Sieve base spec)Sieve discussion list
envelope-deliverbyThe "envelope-deliverby" extension extends the envelope test to allow checking of information associated with the Deliver-By ESMTP extension defined in RFC 2852.RFC 6009Sieve discussion list
envelope-dsnThe "envelope-dsn" extension extends the envelope test to allow checking of information associated with the DSN ESMTP extension defined in RFC 3461.RFC 6009Sieve discussion list
environmentThe "environment" extension provides a new environment test that can be used to implement scripts that behave differently when moved from one system to another or otherwise operated in different contexts.RFC 5183Sieve discussion list
erejectadds the 'ereject' action for refusing delivery of a message. The refusal should happen as early as possible (e.g. at the protocol level) and might not preserve the exact reason for refusal if it contains non-US-ASCII text.RFC 5429Sieve discussion list
extlistsAdds the ":list" match type to certain Sieve tests, and the ":list" argument to the "redirect" action. The ":list" match type changes tests to match values against values stored in one or more externally stored lists. The ":list" argument to the redirect action changes the redirect action to forward the message to email addresses stored in the externally stored list.RFC 6134Sieve discussion list
extracttextadds the "extracttext" action for extracting text from a MIME body part.RFC 5703Sieve discussion list
fccAdds the ":fcc" parameter to Sieve action commands that generate additional messages.RFC 8580Sieve discussion list2019-01-29
fileintoadds the 'fileinto' action for delivering to a mailbox other than the defaultRFC 5228 (Sieve base spec), RFC 5490 (:create), RFC 3894 (:copy), RFC 5232 (:flags)Sieve discussion list
foreverypartadds the "foreverypart" and "break" actions for iterating through MIME parts of a message.RFC 5703Sieve discussion list
ihaveThe "ihave" extension provides a means to write scripts that make use of other extensions only when they are actually available.RFC 5463Sieve discussion list
imapsieveAdd Sieve processing for IMAP events.RFC 6785Sieve discussion list
imap4flagsAdds actions and tests for manipulating IMAP flagsRFC 5232Sieve discussion list
includeadds the "include" command to execute other Sieve scripts, the "return" action from an included script, and the "global" command and "global" variables namespace to access variables shared among included scripts.RFC 6609Sieve discussion list
indexThe "index" extension provides a means to limit header and address tests to specific instances when more than one field of a given type is present.RFC 5260Sieve discussion list
mailboxadds test for checking for mailbox existence and a new optional argument to fileinto for creating a mailbox before attempting mail delivery.RFC 5490Sieve discussion list
mailboxidadds a test for checking mailbox existence by OBJECTID, and new optional arguments to fileinto and :fcc that allow selecting the destination mailbox by OBJECTID.RFC 9042EXTRA discussion list2021-03-30
mboxmetadataadds tests for checking for mailbox metadata item existence and for retrieving of a mailbox metadata value.RFC 5490Sieve discussion list
mimeadds the ":mime" and ":anychild" tagged arguments to the "header", "address", and "exists" tests. Adds the ":type", ":subtype", ":contenttype", and ":param" options when ":mime" is used with the "header" test.RFC 5703Sieve discussion list
processcalendarAdds the "processcalendar" action command to add and update items on a user's calendars.RFC 9671Sieve discussion list2024-08-16
redirect-deliverbyThe "redirect-deliverby" extension extends the redirect action to allow specification of the BY ESMTP parameter associated with the Deliver-By SMTP extension defined in RFC 2852.RFC 6009Sieve discussion list
redirect-dsnThe "redirect-dsn" extension extends the redirect action to allow specification of the NOTIFY and RET ESMTP parameters associated with the DSN SMTP extension defined in RFC 3461.RFC 6009Sieve discussion list
regexdraft-murchison-sieve-regex-07Kenneth Murchison
rejectadds the "reject" action for refusing delivery of a message. The exact reason for refusal is conveyed back to the client.RFC 5429Sieve discussion list
relationalExtends existing conditional tests in Sieve language to allow relational operatorsRFC 5231Sieve discussion list
replaceadds the "replace" action for replacing a MIME body part of a message.RFC 5703Sieve discussion list
servermetadataadds tests for checking for server metadata item existence and for retrieving of a server metadata value.RFC 5490Sieve discussion list
spamtestProvides a test to check for varying likelihood of an email message being spam.RFC 5235Sieve discussion list
spamtestplusProvides a test to check for varying likelihood of an email message being spam, possibly using a percentage range.RFC 5235Sieve discussion list
special-useadds a test for checking whether an IMAP special-use attribute is assigned for a particular mailbox or any mailbox, and it adds the ability to file messages into a mailbox identified solely by a special-use attribute.RFC 8579Sieve discussion list2019-01-29
subaddressadds the ':user' and ':detail' address parts for use with the address and envelope testsRFC 5233Sieve discussion list
vacationadds an action for generating an auto-reply saying that the original message will not be read or answered immediatelyRFC 5230Sieve discussion list
vacation-secondsadds the ":seconds" parameter to the Sieve Vacation extension. Implementations that support this MUST also support "vacation".RFC 6131Sieve discussion list
variablesAdds support for variables to the Sieve filtering language.RFC 5229Sieve discussion list
virustestProvides a test to check for varying likelihood of there being malicious content in an email message.RFC 5235Sieve discussion list
vnd.cyrus.* (anything starting with "vnd.cyrus.")Extends the Sieve language with vendor-defined functionality specific to the Cyrus IMAP server (http://www.cyrusimap.org).Not applicableKenneth Murchison2020-05-05
vnd.dovecot.* (anything starting with "vnd.dovecot.")Extends the Sieve language with vendor-defined functionality specific to the Dovecot Secure IMAP server (http://www.dovecot.org).Not applicableStephan Bosch; Timo Sirainen2008-07-28
vnd.stalwart.* (anything starting with "vnd.stalwart.")Extends the Sieve language with vendor-defined functionality specific to the Stalwart JMAP server http://www.stalw.art.Not applicableMauro De Gennaro2022-11-02

Sieve URN Parameters

Registration Procedure(s)

  • Specification Required

Expert(s)

  • Unassigned

Reference

  • RFC 6134: Sieve Extension: Externally Stored Lists

Available Formats

URN Parameter NameReference
addrbookRFC 6134, Section 2.6

Sieve Actions

Registration Procedure(s)

  • Expert Review

Expert(s)

  • Alexey Melnikov, Ken Murchison

Reference

  • RFC 9122: IANA Registry for Sieve Actions

Available Formats

NameDescriptionReferencesCapabilitiesAction InteractionsCancels Implicit Keep?Can Use With IMAP Events?Comments
addheaderAdd a header field to the existing message headerRFC 5293"editheader"All subsequent tests and actions apply to the altered messageNoYes
addflagAdd IMAP flags to a list of IMAP flags that would be set on the message if it gets delivered to a mailboxRFC 5232; RFC 5229"imap4flags", "variables"NoYes
convertConvert body parts from one MIME type to anotherRFC 6558"convert"All subsequent tests and actions apply to the altered messageNoYes
deleteheaderRemove a header field from the existing message headerRFC 5293"editheader"All subsequent tests and actions apply to the altered messageNoYes
discardSilently throw away the messageRFC 5228YesYes
encloseEnclose a message as an attachment to a new messageRFC 5703"enclose"All subsequent tests and actions except "redirect" apply to the altered messageNoYes
erejectRefuse delivery of the messageRFC 5429"ereject"This action is incompatible with the "vacation" action. Typically is not permitted with actions that cause mail delivery, such as "keep", "fileinto", and "redirect"YesNo
extracttextStore text of a MIME part into a variableRFC 5703; RFC 5229"extracttext", "variables"NoYes
fileintoDeliver the message into the specified mailboxRFC 5228; RFC 3894; RFC 5232; RFC 5490; RFC 9042; RFC 8579"fileinto", "copy", "imap4flags", "mailbox", "mailboxid", "special-use"Use of :copy suppresses cancellation of implicit keepYesYes
keepFile the message into the user's main mailboxRFC 5228; RFC 5232"imap4flags"YesYes
notifySend a notification to a userRFC 5435; RFC 8580"enotify", "fcc"NoYes
processcalendarAdd and update items on a user's calendarsRFC 9671; RFC 5229; RFC 6134"processcalendar", "variables", "extlists"This action is incompatible with the "reject" and "ereject" actions.NoNo
redirectSend (forward) the message to another userRFC 5228; RFC 3894; RFC 6009; RFC 6134"copy", "redirect-dsn", "redirect-deliverby", "extlists"Use of :copy suppresses cancellation of implicit keepYesYes
rejectRefuse delivery of the messageRFC 5429"reject"This action is incompatible with the "vacation" action. Typically is not permitted with actions that cause mail delivery, such as "keep", "fileinto", and "redirect"YesNo
removeflagRemove IMAP flags from a list of IMAP flags that would be set on the message if it gets delivered to a mailboxRFC 5232; RFC 5229"imap4flags", "variables"NoYes
replaceReplace a MIME partRFC 5703"replace"All subsequent tests and actions except "redirect" apply to the altered messageNoYes
setStore a value in a variableRFC 5229"variables"NoYes
setflagSet IMAP system flags or keywords that would be set on the message if it gets delivered to a mailboxRFC 5232; RFC 5229"imap4flags", "variables"NoYes
vacationImplement a vacation autoresponderRFC 5230; RFC 6131; RFC 8580"vacation", "vacation-seconds", "fcc"This action is incompatible with the "reject" and "ereject" actions.NoNo

Contact Information

NameOrganizationContact URILast Updated
EXTRA discussion listextra&ietf.org
Jutta DegenerSendmail, Inc. 6425 Christie Ave, 4th Floor Emeryville, CA 94608jutta&sendmail.com
Kenneth Murchisonsieve&cyrusimap.org2020-05-05
Mauro De Gennaromauro&stalw.art2022-11-02
Sieve discussion listsieve&ietf.org
Stephan Boschstephan&rename-it.nl
Timo Sirainentss&iki.fi