debian/0000755000000000000000000000000012033002702007153 5ustar debian/changelog0000644000000000000000000000162412033002702011030 0ustar dovecot-metadata-plugin (8-0ubuntu2) quantal; urgency=low * Convert to source format 3.0 (quilt). * Backport upstream patch to add compatibility with dovecot 2.1. -- Colin Watson Wed, 03 Oct 2012 10:30:41 +0100 dovecot-metadata-plugin (8-0ubuntu1) oneiric; urgency=low * New upstream release, fixes FTBFS with dovecot >= 2.0.0 (LP: #831179). - d/control: Switched upstream source to http://hg.dovecot.org as original source appears to be inactive. - d/control: Bumped Standards-Version, no changes. - d/copyright: Updated and converted to DEP-5. - d/rules: Cleared dependency_libs in .la files. -- James Page Thu, 29 Sep 2011 20:35:51 +0100 dovecot-metadata-plugin (0.0.1~hg144-0ubuntu1) maverick; urgency=low * Initial release to support Kolab server -- Scott Kitterman Wed, 11 Aug 2010 17:11:01 -0400 debian/rules0000755000000000000000000000125112032777756010265 0ustar #!/usr/bin/make -f # -*- makefile -*- # Sample debian/rules that uses debhelper. # This file was originally written by Joey Hess and Craig Small. # As a special exception, when this file is copied by dh-make into a # dh-make output file, you may use that output file without restriction. # This special exception was added by Craig Small in version 0.37 of dh-make. # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 %: dh $@ override_dh_auto_configure: test -d m4 || mkdir m4 autoreconf -f -i -Wall,no-obsolete dh_auto_configure -- --with-dovecot=/usr/lib/dovecot/ override_dh_install: sed -i "/dependency_libs/ s/'.*'/''/" `find . -name '*.la'` dh_install debian/README.source0000644000000000000000000000004312032777756011362 0ustar autoreconf -f -i -Wall,no-obsolete debian/compat0000644000000000000000000000000212032777756010404 0ustar 7 debian/source/0000755000000000000000000000000012033001020010443 5ustar debian/source/format0000644000000000000000000000001412033001020011651 0ustar 3.0 (quilt) debian/control0000644000000000000000000000141512033002651010562 0ustar Source: dovecot-metadata-plugin Section: mail Priority: extra Maintainer: Ubuntu Developers XSBC-Original-Maintainer: Scott Kitterman Build-Depends: debhelper (>= 7.0.50), automake, libtool, dovecot-dev (>= 1:2.1), libldap2-dev Standards-Version: 3.9.2 Homepage: http://hg.dovecot.org/dovecot-metadata-plugin Package: dovecot-metadata-plugin Architecture: any Depends: ${shlibs:Depends}, ${misc:Depends} Description: Experimental IMAP METADATA Extension for Dovecot This is a set of plugins for the Dovecot IMAP server version 2.0 that implement the IMAP METADATA Extension. The goal of the development is to extend dovecot so that it can be used as the IMAP component instead of Cyrus IMAPd in the Kolab server. debian/patches/0000755000000000000000000000000012033001745010610 5ustar debian/patches/dovecot-2.1-compat.patch0000644000000000000000000000577712033001745015073 0ustar Description: Add compatibility with dovecot 2.1 Since DOVECOT_PREREQ does not exist in mainline dovecot, this backport will only work with 2.1 rather than trying to tolerate both old and new versions. Author: Dennis Schridde Author: Colin Watson Origin: backport, http://hg.dovecot.org/dovecot-metadata-plugin/rev/cdb8746f14f7 Forwarded: not-needed Last-Update: 2012-10-03 Index: b/src/imap-annotatemore-plugin.c =================================================================== --- a/src/imap-annotatemore-plugin.c +++ b/src/imap-annotatemore-plugin.c @@ -461,7 +461,7 @@ } } } else { - struct mail_namespace *ns = mail_namespace_find(cmd->client->user->namespaces, &mailbox_name); + struct mail_namespace *ns = mail_namespace_find(cmd->client->user->namespaces, mailbox_name); if (ns == NULL) { client_send_tagline(cmd, "NO Mailbox not found."); @@ -533,7 +533,7 @@ return FALSE; } - if (!imap_arg_get_astring(&pairs[1], value_r)) { + if (!imap_arg_get_nstring(&pairs[1], value_r)) { client_send_command_error(cmd, "Value must be of string type."); return FALSE; @@ -596,7 +596,7 @@ if (!pair_extract_value(cmd, &args[2], &value, &private)) return TRUE; - struct mail_namespace *ns = mail_namespace_find(cmd->client->user->namespaces, &mailbox_name); + struct mail_namespace *ns = mail_namespace_find(cmd->client->user->namespaces, mailbox_name); if (ns == NULL) { client_send_tagline(cmd, "NO Mailbox not found."); Index: b/src/imap-metadata-plugin.c =================================================================== --- a/src/imap-metadata-plugin.c +++ b/src/imap-metadata-plugin.c @@ -482,7 +482,7 @@ struct mailbox *box = NULL; /* empty mailbox_name -> box=NULL -> server scope */ if (*mailbox_name != '\0') { - struct mail_namespace *ns = mail_namespace_find(cmd->client->user->namespaces, &mailbox_name); + struct mail_namespace *ns = mail_namespace_find(cmd->client->user->namespaces, mailbox_name); if (ns == NULL) { client_send_tagline(cmd, "NO Mailbox not found."); return true; @@ -550,7 +550,7 @@ struct mailbox *box = NULL; /* empty name -> box=NULL -> server scope */ if (*mailbox_name != '\0') { - struct mail_namespace *ns = mail_namespace_find(cmd->client->user->namespaces, &mailbox_name); + struct mail_namespace *ns = mail_namespace_find(cmd->client->user->namespaces, mailbox_name); if (ns == NULL) { client_send_tagline(cmd, "NO Mailbox not found."); return true; Index: b/src/mailbox-ext.c =================================================================== --- a/src/mailbox-ext.c +++ b/src/mailbox-ext.c @@ -22,9 +22,9 @@ const char * mailbox_get_guid_string(struct mailbox *box) { - uint8_t guid[MAIL_GUID_128_SIZE]; - if (mailbox_get_guid(box, guid) < 0) + struct mailbox_metadata metadata; + if (mailbox_get_metadata(box, MAILBOX_METADATA_GUID, &metadata) < 0) return NULL; - return binary_to_hex(guid, sizeof(guid)); + return guid_128_to_string(metadata.guid); } debian/patches/series0000644000000000000000000000003112033001031012003 0ustar dovecot-2.1-compat.patch debian/copyright0000644000000000000000000000136612032777756011147 0ustar Format: http://dep.debian.net/deps/dep5/ Upstream-Name: Dovecot Metadata Plugin Source: http://hg.dovecot.org/dovecot-metadata-plugin Files: * Copyright: 2008, by Intevation GmbH 2010, Dennis Schridde 2008, Bernhard Herzog License: LGPL-3 Files: test/* Copyright: 2004-2008, by Intevation GmbH License: LGPL-2.1 Files: debian/* Copyright: 2010 Scott Kitterman License: LGPL-2.1 License: LGPL-3 On Debian systems, the complete text of the GNU Lesser General Public License 3 can be found in '/usr/share/common-licenses/GPL/LGPL-3 License: LGPL-2.1 On Debian systems, the complete text of the GNU Lesser General Public License 2.1 can be found in '/usr/share/common-licenses/GPL/LGPL-2.1 debian/docs0000644000000000000000000000001512032777756010055 0ustar NEWS README