[PATCH 0/3] cyradm: patches to cyrus-imap 2.5.0

Norbert Warmuth now at arcor.de
Sun Mar 29 13:29:26 EDT 2015


Hi,

following this mail I will send three patches to the Cyrus::IMAP
perl module and cyradm of cyrus imap 2.5.0.

1/3 fixes the server metadata display of the cyradm "info" command.

2/3 and 3/3 extend the cyradm "info" and "mboxconfig" commands to 
display respectivly change value.priv in addition to value.shared
attributes/annotations. I admit that's only a workaround for missing 
RFC 5464 (The IMAP METADATA Extension) support in Cyrus:IMAP and 
cyradm.

The user interface can be considered questionable because it exposes
low level IMAP protocol details like value.priv and value.shared
instead of abstracting it (like "none" instead of NIL is used by
cyradm to remove an attribute). 

The primary use case is to make it a bit easier to set the specialuse 
flag on folders without directly speaking IMAP protocol:
   # admin sets flag on behave of user "user"
   cyradm --user cyrus-admin --authz user 127.0.0.1
       mboxconfig INBOX.Trash /specialuse \\Trash value.priv
       mboxconfig INBOX.Draft /specialuse \\Draft value.priv
       mboxconfig INBOX.Sent /specialuse \\Sent value.priv

   # "user" sets flags itself
   cyradm --user user 127.0.0.1
       mboxconfig INBOX.Trash /specialuse \\Trash value.priv
       mboxconfig INBOX.Draft /specialuse \\Draft value.priv
       mboxconfig INBOX.Sent /specialuse \\Sent value.priv

       # delete flag
       mboxconfig INBOX.Trash /specialuse none value.priv

The patches have only been slightly tested on a Debian/Unstable system
(currently with perl 5.20.2-2) against a cyrus imap 2.5.0, 2.4.17
and 2.2.13 server (with 2.2.13 only "info" has been tested).

Regards,
Norbert






More information about the Cyrus-devel mailing list