[Pkg-Cyrus-imapd-Debian-devel] Patch to perl/imap/IMAP/Admin.pm to support creation of Kolab groupware folders

Christopher Sacca pkg-cyrus-imapd-debian-devel@lists.alioth.debian.org
Wed, 29 Jun 2005 12:06:26 -0400


This is an OpenPGP/MIME signed message (RFC 2440 and 3156)
--------------enigEF4DB6CC0E8C517C9FF4A23E
Content-Type: multipart/mixed;
 boundary="------------020904080601070501020704"

This is a multi-part message in MIME format.
--------------020904080601070501020704
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit

I was really pleasantly surprised by how quickly the first patch I submitted was
absorbed into SVN, so I figured I'd submit another to help with Kolab support.

It's another short patch.  It changes the perl to allow some one using cyradm or
the cyrus perl library to mark a folder as a specific groupware type (such as a
calendar or task list).  I'm planning on using this to automatically give users
a calendar and task list when their account is created.

In addition a added the metadata tag for horde (h-share-uid).  I put this in for
good measure because, although it's not often, an admin might need to manipulate
this information to fix and Cyrus+Horde groupware installation.

The metadata values I included are enough to work with the Konsec Konnektor and
Kolab, but Toltec, I believe, has a few additional attributes which might be
good to add later.

Thanks,

Chris

--------------020904080601070501020704
Content-Type: text/x-patch;
 name="admin_kolab.patch"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
 filename="admin_kolab.patch"

--- perl/imap/IMAP/Admin.pm        2005-06-29 11:42:41.610458872 -0400
+++ perl/imap/IMAP/Admin.pm    2005-06-29 11:53:53.356337976 -0400
@@ -782,7 +782,9 @@
   my %values = ( "comment" => "/comment",
                 "news2mail" => "/vendor/cmu/cyrus-imapd/news2mail",
                 "expire" => "/vendor/cmu/cyrus-imapd/expire",
-                "squat" => "/vendor/cmu/cyrus-imapd/squat" );
+                "squat" => "/vendor/cmu/cyrus-imapd/squat",
+                "folder-type" => "/vendor/kolab/folder-type",
+                "h-share-uid" => "/vendor/kolab/h-share-uid" );

   if(!$self->{support_annotatemore}) {
     $self->{error} = "Remote does not support ANNOTATEMORE.";

--------------020904080601070501020704--

--------------enigEF4DB6CC0E8C517C9FF4A23E
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFCwscIy0aWpK/4cBMRAttCAJ0Xk2RO1ma2LYpBUKNNn7tfOLVZiACfRQfp
0cvK0ykl8D6KcbxSuP7wZbc=
=Uhzb
-----END PGP SIGNATURE-----

--------------enigEF4DB6CC0E8C517C9FF4A23E--