Discussion:
patch sqwebmail or courier authlib for work with % instead @ ?
-= Texilee =-
2005-05-05 09:19:46 UTC
Permalink
Hi all,

I've a problem when I try to use mail address

example%foo.bar instaed ***@foo.bar

in version 3.3.4 i've patched

sqwebmail-3.3.4/authlib/preauthvchkpw.c


auth.sysuserid=&uid;
auth.sysgroupid=gid;
auth.homedir=vpw->pw_dir;
// patch
i=0;
while(userid[i] != '\0')
{
if (userid[i] == '%')
{
userid[i] = '@';
break;
}
if (userid[i] == '@')
{
break;
}
i++;
}
// end patch
auth.address=userid;
auth.fullname=vpw->pw_gecos;
auth.passwd=vpw->pw_passwd;

and that's works fine with email exmaple%foo.bar

Now my system works fine with current version... so I try to patch
src courier authlib preauthvchkpw but it doesn't works...

you can see the result in your example...

user webmail%webmail.com
pass webmail


address it will webmail%***@inter7.com



this is a little patch but it's important for me.

finally.. where is the correct place to replace login field from "%" to "@" ?

sorry for my poor english :-)

thanks

bye bye

Texilee
Kurt Bigler
2005-05-05 18:49:48 UTC
Permalink
This list is dead: the new list is courier-***@lists.sourceforge.net
http://sourceforge.net/mail/?group_id=5404
Post by -= Texilee =-
Hi all,
I've a problem when I try to use mail address
in version 3.3.4 i've patched
sqwebmail-3.3.4/authlib/preauthvchkpw.c
auth.sysuserid=&uid;
auth.sysgroupid=gid;
auth.homedir=vpw->pw_dir;
// patch
i=0;
while(userid[i] != '\0')
{
if (userid[i] == '%')
{
break;
}
{
break;
}
i++;
}
// end patch
auth.address=userid;
auth.fullname=vpw->pw_gecos;
auth.passwd=vpw->pw_passwd;
and that's works fine with email exmaple%foo.bar
Now my system works fine with current version... so I try to patch
src courier authlib preauthvchkpw but it doesn't works...
you can see the result in your example...
user webmail%webmail.com
pass webmail
this is a little patch but it's important for me.
sorry for my poor english :-)
thanks
bye bye
Texilee
Loading...