summaryrefslogtreecommitdiff
path: root/mail/isync/patches
diff options
context:
space:
mode:
authortonio <tonio@pkgsrc.org>2006-01-25 17:35:49 +0000
committertonio <tonio@pkgsrc.org>2006-01-25 17:35:49 +0000
commitfd126270fe91febc8d4b97fda963e39e2181281e (patch)
treedaab209a9ba3def7a931ff50b6ce7d01762b894d /mail/isync/patches
parent8607dd5ddf918343703291f49cf5e72a8aea554e (diff)
downloadpkgsrc-fd126270fe91febc8d4b97fda963e39e2181281e.tar.gz
Fix -C for imap mailboxes : do not quote argument of CREATE
(this fix comes from isync cvs) Bump PKGREVISION
Diffstat (limited to 'mail/isync/patches')
-rw-r--r--mail/isync/patches/patch-af17
1 files changed, 13 insertions, 4 deletions
diff --git a/mail/isync/patches/patch-af b/mail/isync/patches/patch-af
index 8f481a7d75f..9281f6da62f 100644
--- a/mail/isync/patches/patch-af
+++ b/mail/isync/patches/patch-af
@@ -1,8 +1,8 @@
-$NetBSD: patch-af,v 1.1 2005/04/24 09:31:54 adrianp Exp $
+$NetBSD: patch-af,v 1.2 2006/01/25 17:35:49 tonio Exp $
---- src/drv_imap.c.orig 2005-03-05 22:00:48.000000000 +0100
-+++ src/drv_imap.c 2005-03-05 22:01:01.000000000 +0100
-@@ -41,6 +41,7 @@
+--- src/drv_imap.c.orig 2005-03-28 12:41:04.000000000 +0200
++++ src/drv_imap.c 2006-01-25 18:25:48.000000000 +0100
+@@ -40,6 +40,7 @@
#include <netinet/tcp.h>
#include <arpa/inet.h>
#include <netdb.h>
@@ -10,3 +10,12 @@ $NetBSD: patch-af,v 1.1 2005/04/24 09:31:54 adrianp Exp $
#if HAVE_LIBSSL
# include <openssl/ssl.h>
# include <openssl/err.h>
+@@ -1001,7 +1002,7 @@ get_cmd_result( imap_store_t *ctx, struc
+ if (!strcmp( "NO", arg )) {
+ if (cmdp->cb.create && cmd && (cmdp->cb.trycreate || !memcmp( cmd, "[TRYCREATE]", 11 ))) { /* SELECT, APPEND or UID COPY */
+ p = strchr( cmdp->cmd, '"' );
+- if (!issue_imap_cmd( ctx, 0, "CREATE \"%.*s\"", strchr( p + 1, '"' ) - p + 1, p )) {
++ if (!issue_imap_cmd( ctx, 0, "CREATE %.*s", strchr( p + 1, '"' ) - p + 1, p )) {
+ resp = RESP_BAD;
+ goto normal;
+ }