commit 2cb483fb2e4424b47ab1ddfb58a492a9aaff0469
Author: Oswald Buddenhagen <[email protected]>
Date:   Sun Dec 8 15:11:00 2013 +0100

    make use of IMAP MOVE extension
    
    the Maildir driver is always exposing behavior equivalent to this - it's
    more efficient.

 src/drv_imap.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/src/drv_imap.c b/src/drv_imap.c
index e61ee6c..2a51ea6 100644
--- a/src/drv_imap.c
+++ b/src/drv_imap.c
@@ -170,6 +170,7 @@ enum CAPABILITY {
 #endif
        UIDPLUS,
        LITERALPLUS,
+       MOVE,
        NAMESPACE
 };
 
@@ -181,6 +182,7 @@ static const char *cap_list[] = {
 #endif
        "UIDPLUS",
        "LITERAL+",
+       "MOVE",
        "NAMESPACE"
 };
 
@@ -2052,7 +2054,7 @@ imap_trash_msg( store_t *gctx, message_t *msg,
                return;
        }
        imap_exec( ctx, &cmd->gen, imap_done_simple_msg,
-                  "UID COPY %d \"%\\s\"", msg->uid, buf );
+                  CAP(MOVE) ? "UID MOVE %d \"%\\s\"" : "UID COPY %d \"%\\s\"", 
msg->uid, buf );
        free( buf );
 }
 

------------------------------------------------------------------------------
Sponsored by Intel(R) XDK 
Develop, test and display web and hybrid apps with a single code base.
Download it for free now!
http://pubads.g.doubleclick.net/gampad/clk?id=111408631&iu=/4140/ostg.clktrk
_______________________________________________
isync-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/isync-devel

Reply via email to