From: Timo Sirainen Date: Mon, 14 Dec 2009 17:56:51 +0000 (-0500) Subject: imap COPY: Don't give "fetch stream header+body" hint to lib-storage. X-Git-Tag: 2.0.beta2~137 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=0705f6ffc21d46617e0f8d59ed3e45928d61534f;p=thirdparty%2Fdovecot%2Fcore.git imap COPY: Don't give "fetch stream header+body" hint to lib-storage. Usually copying is done by hard linking, not reading the whole message body. --HG-- branch : HEAD --- diff --git a/src/imap/cmd-copy.c b/src/imap/cmd-copy.c index 0756a397d2..e78ab99f18 100644 --- a/src/imap/cmd-copy.c +++ b/src/imap/cmd-copy.c @@ -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) {