dovecot-2.0: FETCH: If FETCH returned [EXPUNGEISSUED], it got st...
dovecot at dovecot.org
dovecot at dovecot.org
Sat May 23 01:26:31 EEST 2009
details: http://hg.dovecot.org/dovecot-2.0/rev/8524ed76b929
changeset: 9351:8524ed76b929
user: Timo Sirainen <tss at iki.fi>
date: Fri May 22 18:26:07 2009 -0400
description:
FETCH: If FETCH returned [EXPUNGEISSUED], it got stuck to all subsequent replies too.
diffstat:
1 file changed, 4 insertions(+), 3 deletions(-)
src/imap/cmd-fetch.c | 7 ++++---
diffs (27 lines):
diff -r 7df8fddbc7a5 -r 8524ed76b929 src/imap/cmd-fetch.c
--- a/src/imap/cmd-fetch.c Fri May 22 17:40:49 2009 -0400
+++ b/src/imap/cmd-fetch.c Fri May 22 18:26:07 2009 -0400
@@ -132,11 +132,12 @@ fetch_parse_modifiers(struct imap_fetch_
static bool cmd_fetch_finish(struct imap_fetch_context *ctx)
{
+ static const char *ok_message = "OK Fetch completed.";
struct client_command_context *cmd = ctx->cmd;
- static const char *ok_message = "OK Fetch completed.";
+ const char *tagged_reply = ok_message;
if (ctx->partial_fetch) {
- ok_message = "OK ["IMAP_RESP_CODE_EXPUNGEISSUED"] "
+ tagged_reply = "OK ["IMAP_RESP_CODE_EXPUNGEISSUED"] "
"Some messages were already expunged.";
}
@@ -165,7 +166,7 @@ static bool cmd_fetch_finish(struct imap
return cmd_sync(cmd,
(ctx->seen_flags_changed ? 0 : MAILBOX_SYNC_FLAG_FAST) |
(cmd->uid ? 0 : MAILBOX_SYNC_FLAG_NO_EXPUNGES), 0,
- ok_message);
+ tagged_reply);
}
static bool cmd_fetch_continue(struct client_command_context *cmd)
More information about the dovecot-cvs
mailing list