[Dovecot] ID command bug & patch

Mike Abbott michael.abbott at apple.com
Tue Mar 8 21:40:13 EET 2011


When I set imap_id_log=* in dovecot-2.0.11 and a client sends, say,
	tag id ("a" "b" "c" "d")
then dovecot logs:
	ID sent: a=b, b=c, c=d
The following patch makes it log instead:
	ID sent: a=b, c=d

--- a/dovecot/src/lib-imap/imap-id.c	(revision 113366)
+++ b/dovecot/src/lib-imap/imap-id.c	(working copy)
@@ -164,6 +164,7 @@
 			str_append_c(reply, '=');
 			str_append(reply, str_sanitize(value, 80));
 		}
+		args++;
 	}
 	return str_len(reply) == 0 ? NULL : str_c(reply);
 }



More information about the dovecot mailing list