imapext-2007
diff src/imapd/imapd.c @ 1:28a55bc1110c
[mq]: imapext
author | yuuji@gentei.org |
---|---|
date | Mon, 14 Sep 2009 19:23:11 +0900 |
parents | ada5e610ab86 |
children | 2366b362676d 20c025a380ab |
line diff
1.1 --- a/src/imapd/imapd.c Mon Sep 14 15:17:45 2009 +0900 1.2 +++ b/src/imapd/imapd.c Mon Sep 14 19:23:11 2009 +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 */