]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
imap COPY: Don't give "fetch stream header+body" hint to lib-storage.
authorTimo Sirainen <tss@iki.fi>
Mon, 14 Dec 2009 17:56:51 +0000 (12:56 -0500)
committerTimo Sirainen <tss@iki.fi>
Mon, 14 Dec 2009 17:56:51 +0000 (12:56 -0500)
Usually copying is done by hard linking, not reading the whole message body.

--HG--
branch : HEAD

src/imap/cmd-copy.c

index 0756a397d2d4443ceb3f80c2e0f3253282c29252..e78ab99f18709cf246ae782ad229a986abc1f1b1 100644 (file)
@@ -49,8 +49,7 @@ static int fetch_and_copy(struct client *client,
        src_trans = mailbox_transaction_begin(client->mailbox, 0);
        search_ctx = mailbox_search_init(src_trans, search_args, NULL);
 
-       mail = mail_alloc(src_trans, MAIL_FETCH_STREAM_HEADER |
-                         MAIL_FETCH_STREAM_BODY, NULL);
+       mail = mail_alloc(src_trans, 0, NULL);
        ret = 1;
        while (mailbox_search_next(search_ctx, mail) && ret > 0) {
                if (mail->expunged) {