Feature Spotlight: Sieve Date / Time Extension

A new kind of filters

Previously, all conditions had to do something with the incoming email message that is processed by the Sieve engine. The Date/Time? extension changes that, as it allows for different things to happen depending on the time the message arrives.

Therefore, a new select button has been added to distinguish between conditions having to do with the message itself:

and conditions that have to do with current date / time:

In the future, more options could be placed in this widget. For instance, a new kind of conditions would be a test against a variable (when Sieve Variables is implemented, see ticket #75), or any other factor outside of the current message.

Of course, regarding the date / time test, it can be checked against the date claimed by the message itself:

A user can choose to do tests against the Date: and Received: headers and act accordingly.

Editing Date / Time Conditions

A user can choose between a variety of options with regard to date / time tests.

When specific dates and times must be defined, a Javascript datepicker (datepicker.js script by Jeremy Jongsma) helps select one easily.

When certain occurences are needed, the user interface consists of select widgets that guide the user along the way.

Rules Table

As all Avelsieve rules, Date/Time? rules are displayed in a user-friendly way in the table of filtering rules of a Sieve script:

The Sieve code generated for these rules is according to RFC 5228:


Some more substantial examples of the Sieve Date/Time? feature follow.

An equivalent of the following rule could be used by service / helpdesk / support departments that use e-mail as a medium. When outside office hours, an autoresponder is sent to the original sender.

(In fact, the "vacation" feature has even been renamed to "Vacation / Autoresponder" during this release, in order to make this kind of usage more clear).

The following rule might be a part of a ruleset that files and organizes messages in different folders per year and month.

This also shows the "occurence" user interface.


No comments.