SASL AUTHENTICATE PLAIN failure for Mac OS X Lion Apple Mail

Neal Horman <[email protected]> Fri, 22 Jul 2011 16:17:36 -0500
Newsgroups gmane.mail.imap.uw.c-client
Message-ID <[email protected]>
Since I don't know where to send this, I thought this to be the most 
appropriate place, sorry if it is not.

Mac OS X Lion's Apple Mail client, fails to authenticate with imapd-2007e.
In the b64 encoded authentication parameter "authzid\0authcid\password", 
authzid is empty when sent by Apple Mail.
As a result, authentication fails.
Attached is a single line minor patch that corrects the failure.

Also, what is the story here about code base development, from what I 
can see, it hasn't really been active for a number of years...
Did the developers move on, or did the code reach feature completion or 
what ?

_______________________________________________
Imap-uw mailing list
[email protected]
http://mailman2.u.washington.edu/mailman/listinfo/imap-uw
patch.diff (text/plain, 495 B)
--- ./imapd/imapd.c	2008-11-18 12:46:59.000000000 -0600
+++ ../../../imap-2007e/src/imapd/imapd.c	2011-07-22 00:46:57.000000000 -0500
@@ -2141,7 +2141,7 @@
 				/* must be at least one BASE64 char */
   else if (!base64mask[*ret]) return NIL;
   else {			/* quick and dirty */
-    while (base64mask[*s++]);	/* scan until end of BASE64 */
+    while (base64mask[*s]) s++;	/* scan until end of BASE64 */
     if (*s == '=') ++s;		/* allow up to two padding chars */
     if (*s == '=') ++s;
   }