Another issue for authlib -- maildrop and authpipe don't work together. I never saw a response to my first post. Is this the right forum for patches/issue tracking?
My original message: http://sourceforge.net/mailarchive/forum.php? thread_id=7577418&forum_id=6705 On Wed, 2005-06-29 at 10:31 -0400, Sam Varshavchik wrote: > Willi Mann writes: > > > Hi! > > > > The courier debian package got a bug report about wrong parsing of the full > > username field in courier 0.47: > > > > http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=315636 > > > > To reproduce: > > - Create a new account > > - chfn newusername and set some fields > > - login to sqwebmail and go to "Create Message" > > > > I've investigated that and found out the field was wrongly parsed: Only the > > commas on the end were removed. The right way is to parse for the first > > comma and let the string end there. The patch looks like this: > > > > --- success.c.old 2005-06-25 11:00:23.000000000 +0200 > > +++ success.c 2005-06-25 12:09:08.000000000 +0200 > > @@ -70,11 +70,12 @@ > > } > > strcat(strcpy(authfullname_buf, "AUTHFULLNAME="), authfullname); > > > > - /* Get rid of GECOS crud */ > > + /* Get rid of GECOS crud, we only need the first field */ > > > > - p=authfullname_buf+strlen(authfullname_buf); > > - while (*--p == ',') > > - *p=0; > > + p=authfullname_buf; > > + while (*p != ',' && *p != '\0') > > + p++; > > + *p=0; > > putenv(authaddr_buf); > > putenv(authfullname_buf); > > } > > > > However, in the latest versions of courier and courier-authlib 0.50, it > > looks like the code has gone completely, and I'm not sure where the code > > should go. > > > > Can anyone tell me please, where that code should go, please? > > That code now lives in the courier-authlib package. > > ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ courier-users mailing list [email protected] Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users
