Mercurial > hgrepos > hgweb.cgi > imapext
diff src/imapd/imapd.c @ 4:d741b3ecc917 draft
imapext-2007f
author | HIROSE Yuuji <yuuji@gentei.org> |
---|---|
date | Thu, 30 Oct 2014 00:03:05 +0900 |
parents | 2366b362676d |
children |
line wrap: on
line diff
--- a/src/imapd/imapd.c Thu Oct 30 00:00:57 2014 +0900 +++ b/src/imapd/imapd.c Thu Oct 30 00:03:05 2014 +0900 @@ -553,6 +553,9 @@ /* plaintext login with password */ else if (!strcmp (cmd,"LOGIN")) { + #ifdef QMAIL + extern char* conv_virtualdomain(char*); + #endif if (user) fs_give ((void **) &user); if (pass) fs_give ((void **) &pass); /* two arguments */ @@ -573,7 +576,11 @@ else { /* delimit user from possible admin */ if (s = strchr (user,'*')) *s++ ='\0'; /* see if username and password are OK */ +#ifdef QMAIL + if (server_login (conv_virtualdomain(user),pass,s,argc,argv)) { +#else if (server_login (user,pass,s,argc,argv)) { +#endif state = SELECT; /* make select */ alerttime = 0; /* force alert */ response = logwin;/* return logged-in capabilities */