It is not enough to increase MAXUSERNAMELEN in imapproxy.h from 64 to 256, but the following structure in the same header file should be updated to use MAXUSERNAMELEN instead of the hard-coded value of 64:
struct IMAPConnectionContext
{
struct IMAPConnectionDescriptor *server_conn;
char username[64]; /* username connected on this sd */
char hashedpw[16]; /* md5 hash copy of password */
time_t logouttime; /* time the user logged out last */
struct IMAPConnectionContext *next; /* linked list next pointer */
};
char username[64] should be replaced with char username[MAXUSERNAMELEN]
Thanks very much for the catch. This issue has been resolved and will appear in the next snapshot release on our downloads page within 24 hours.
Thanks again!