From fd126270fe91febc8d4b97fda963e39e2181281e Mon Sep 17 00:00:00 2001 From: tonio Date: Wed, 25 Jan 2006 17:35:49 +0000 Subject: Fix -C for imap mailboxes : do not quote argument of CREATE (this fix comes from isync cvs) Bump PKGREVISION --- mail/isync/patches/patch-af | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) (limited to 'mail/isync/patches') 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 #include #include @@ -10,3 +10,12 @@ $NetBSD: patch-af,v 1.1 2005/04/24 09:31:54 adrianp Exp $ #if HAVE_LIBSSL # include # include +@@ -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; + } -- cgit v1.2.3