From 7704621f4cd1d6d8728c1d7a8c3fd2cef1bec1ab Mon Sep 17 00:00:00 2001 From: Steve Holme Date: Thu, 7 Feb 2013 00:18:23 +0000 Subject: imap: Changed response tag generation to be completely unique Updated the automatic response tag generation to follow the examples given in RC3501, which list a 4 character string such as A001, A002, etc. As a unique identifier should be generated for each command the string generation is based on the connection id and the incrementing command id. --- lib/imap.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/imap.h') diff --git a/lib/imap.h b/lib/imap.h index 4a276c151..5cbae751a 100644 --- a/lib/imap.h +++ b/lib/imap.h @@ -60,7 +60,7 @@ struct imap_conn { unsigned int authused; /* Auth mechanism used for the connection */ imapstate state; /* Always use imap.c:state() to change state! */ int cmdid; /* Last used command ID */ - const char *resptag; /* Response tag to wait for */ + char resptag[5]; /* Response tag to wait for */ bool ssldone; /* Is connect() over SSL done? */ bool login_disabled; /* LOGIN command explicitly disabled by server */ }; -- cgit v1.2.3