How to handle special use folders in Sieve?

OBATA Akio obata at lins.jp
Tue Sep 13 04:57:26 EDT 2016


On Tue, 13 Sep 2016 17:38:41 +0900, Bron Gondwana via Info-cyrus <info-cyrus at lists.andrew.cmu.edu> wrote:

> On Tue, 13 Sep 2016, at 17:25, OBATA Akio via Info-cyrus wrote:
>> Hi,
>>
>> Since 3.0.0-beta2 release note's "Major changes since the 2.5.x series":
>>
>> * Sieve now supports special use folders. See Cyrus Sieve
>>
>>   http://cyrusimap.org/imap/admin/sieve.html#cyrus-sieve-specialuse
>>
>> But I cannot find how to do it in sieve script.
>>
>> For example, how to rewrite following script with such feature?
>>
>>    if header :is "X-Spam-Flag" "YES" {
>>      fileinto "INBOX.Junk"
>>    }
>
> if header :is "X-Spam-Flag" "YES" {
>    fileinto "\\Junk"
> }

It is the expected syntax :)

Then, is there a way to create such SPECLAL-USE folder automatically?

With "autocreate_{inbox,sieve}_folders", proposed folders will be created,
but I cannot find the way to set SPECIAL-USE flags to them automatically.

-- 
OBATA Akio / obata at lins.jp


More information about the Info-cyrus mailing list