dovecot-2.0: imap COPY: Don't give "fetch stream header+body" hi...
dovecot at dovecot.org
dovecot at dovecot.org
Mon Dec 14 19:56:58 EET 2009
details: http://hg.dovecot.org/dovecot-2.0/rev/64a01185564b
changeset: 10482:64a01185564b
user: Timo Sirainen <tss at iki.fi>
date: Mon Dec 14 12:56:51 2009 -0500
description:
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.
diffstat:
1 file changed, 1 insertion(+), 2 deletions(-)
src/imap/cmd-copy.c | 3 +--
diffs (13 lines):
diff -r 52672e49c428 -r 64a01185564b src/imap/cmd-copy.c
--- a/src/imap/cmd-copy.c Sun Dec 13 22:07:14 2009 -0500
+++ b/src/imap/cmd-copy.c Mon Dec 14 12:56:51 2009 -0500
@@ -49,8 +49,7 @@ static int fetch_and_copy(struct 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) {
More information about the dovecot-cvs
mailing list