dovecot-1.1: Make UID FETCH return the UID as the first field to...

dovecot at dovecot.org dovecot at dovecot.org
Tue Mar 11 15:02:36 EET 2008


details:   http://hg.dovecot.org/dovecot-1.1/rev/5b18c2ff2e2d
changeset: 7409:5b18c2ff2e2d
user:      Timo Sirainen <tss at iki.fi>
date:      Tue Mar 11 15:02:31 2008 +0200
description:
Make UID FETCH return the UID as the first field to fix problems with bad
IMAP clients.

diffstat:

1 file changed, 4 insertions(+), 6 deletions(-)
src/imap/cmd-fetch.c |   10 ++++------

diffs (27 lines):

diff -r 7e27d67d3abe -r 5b18c2ff2e2d src/imap/cmd-fetch.c
--- a/src/imap/cmd-fetch.c	Tue Mar 11 10:08:05 2008 +0200
+++ b/src/imap/cmd-fetch.c	Tue Mar 11 15:02:31 2008 +0200
@@ -22,6 +22,10 @@ fetch_parse_args(struct imap_fetch_conte
 {
 	const char *str, *const *macro;
 
+	if (ctx->cmd->uid) {
+		if (!imap_fetch_init_handler(ctx, "UID", &arg))
+			return FALSE;
+	}
 	if (arg->type == IMAP_ARG_ATOM) {
 		str = t_str_ucase(IMAP_ARG_STR(arg));
 		arg++;
@@ -59,12 +63,6 @@ fetch_parse_args(struct imap_fetch_conte
 			return FALSE;
 		}
 	}
-
-	if (ctx->cmd->uid) {
-		if (!imap_fetch_init_handler(ctx, "UID", &arg))
-			return FALSE;
-	}
-
 	return TRUE;
 }
 


More information about the dovecot-cvs mailing list