imapext-2007
diff src/imapd/imapd.c @ 4:d741b3ecc917
imapext-2007f
author | HIROSE Yuuji <yuuji@gentei.org> |
---|---|
date | Thu, 30 Oct 2014 00:03:05 +0900 |
parents | 2366b362676d |
children |
line diff
1.1 --- a/src/imapd/imapd.c Thu Oct 30 00:00:57 2014 +0900 1.2 +++ b/src/imapd/imapd.c Thu Oct 30 00:03:05 2014 +0900 1.3 @@ -553,6 +553,9 @@ 1.4 1.5 /* plaintext login with password */ 1.6 else if (!strcmp (cmd,"LOGIN")) { 1.7 + #ifdef QMAIL 1.8 + extern char* conv_virtualdomain(char*); 1.9 + #endif 1.10 if (user) fs_give ((void **) &user); 1.11 if (pass) fs_give ((void **) &pass); 1.12 /* two arguments */ 1.13 @@ -573,7 +576,11 @@ 1.14 else { /* delimit user from possible admin */ 1.15 if (s = strchr (user,'*')) *s++ ='\0'; 1.16 /* see if username and password are OK */ 1.17 +#ifdef QMAIL 1.18 + if (server_login (conv_virtualdomain(user),pass,s,argc,argv)) { 1.19 +#else 1.20 if (server_login (user,pass,s,argc,argv)) { 1.21 +#endif 1.22 state = SELECT; /* make select */ 1.23 alerttime = 0; /* force alert */ 1.24 response = logwin;/* return logged-in capabilities */