sieve vacation with start and end date

Adam Tauno Williams awilliam at whitemice.org
Tue Dec 30 08:47:20 EST 2014


On Tue, 2014-12-30 at 08:39 -0500, Adam Tauno Williams wrote: 
> On Sun, 2014-12-28 at 10:20 +0100, Marcus Schopen wrote: 
> > does sieve vacation understand a start and end date? Something like this
> > does not work:
> > -------
> > require ["date", "relational", "vacation"];
> > if allof(currentdate :value "ge" "date" "2007-06-30",
> >          currentdate :value "le" "date" "2007-07-07")
> > { vacation :days 7  "I'm away during the first week in July."; }
> > -------
> > System: cyrus 2.4.12 on Ubuntu 12.04 LTS
> It may or may not;  depends on what extensions/plugins are activated in
> your SIEVE.  Is the above documented syntax from somewhere?

It looks like there is an open bug.

Implement date extension (rfc5260) 
<https://bugzilla.cyrusimap.org/show_bug.cgi?id=3724>

> Horde's Ingo application uses regular expressions to match dates in
> order to implement vacation start/end.  I believe date matching in SIEVE
> is a relatively recent thing, and I am not sure to what level it is
> implemented [anywhere].

-- 
Adam Tauno Williams <mailto:awilliam at whitemice.org> GPG D95ED383
Systems Administrator, Python Developer, LPI / NCLA



More information about the Info-cyrus mailing list