From 01fd545f6d245e482eab0fed9483d76276ec9a89 Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Wed, 5 Oct 2011 18:47:56 +0300 Subject: [PATCH] pop3: When pop3_fast_size_lookups=yes, don't assume we need to fetch virtual size. This fixes prefetch unnecessarily opening mail files. --- src/pop3/pop3-client.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/pop3/pop3-client.c b/src/pop3/pop3-client.c index 5ea989b0c8..96d7c58073 100644 --- a/src/pop3/pop3-client.c +++ b/src/pop3/pop3-client.c @@ -151,6 +151,7 @@ static int read_mailbox(struct client *client, uint32_t *failed_uid_r) search_args = mail_search_build_init(); mail_search_build_add_all(search_args); ctx = mailbox_search_init(t, search_args, pop3_sort_program, + client->set->pop3_fast_size_lookups ? 0 : MAIL_FETCH_VIRTUAL_SIZE, NULL); mail_search_args_unref(&search_args); -- 2.47.3