Add VACATION :seconds support

Greg Banks gnb at fastmail.fm
Wed May 9 04:26:26 EDT 2012



On Wed, May 9, 2012, at 10:07 AM, Philipp Hahn wrote:
> Hello,
> 
> Am Dienstag 08 Mai 2012 13:47:46 schrieb Дилян Палаузов:
> > Extending sieve_listextensions() probably requires adding
> > "vacation-seconds" in "sieve_extensions" in lib/imapoptions.
> 
> There is one small problem: "vacation-seconds" contains a dash, which 
> config2header converts verbatim into the enum-name 
> IMAP_ENUM_SIEVE_EXTENSIONS_VACATION-SECONDS.
> I can either use an underscore in the list of extensions or patch 
> config2header to replace '[^_0-9A-Za-z]' with '_'. Opinions?

I'd go with your second option.  Both '-' and '_' work in keys, I see no
reason for  '-' not to work in values.

-- 
Greg.


More information about the Cyrus-devel mailing list