]> granicus.if.org Git - php/commitdiff
removing references to IMSP module, which will probably never be ported to
authorChuck Hagenbuch <chagenbu@php.net>
Thu, 3 May 2001 19:32:49 +0000 (19:32 +0000)
committerChuck Hagenbuch <chagenbu@php.net>
Thu, 3 May 2001 19:32:49 +0000 (19:32 +0000)
php4 (lack of a publically available library implementing it).

ext/imap/php_imap.c

index d81de05344f27bfe9e773329aaec5c7ed9587388..015d136f350663d9da80e7b452d9ec5964b9641a 100644 (file)
@@ -177,12 +177,6 @@ static int le_pimap;
 static int le_pimapchain;
 #endif
 
-#if HAVE_IMSP
-/* This makes IMSP non thread safe */
-extern char imsp_user[80];
-extern char imsp_password[80];
-#endif
-
 
 void mail_close_it(zend_rsrc_list_entry *rsrc)
 {
@@ -4292,25 +4286,12 @@ void mm_login(NETMBX *mb, char *user, char *pwd, long trial)
 {
        IMAPLS_FETCH();
 
-#if HAVE_IMSP
-       if (*mb->service && strcmp(mb->service, "imsp") == 0) {
-               if (*mb->user) {
-                       strlcpy(user, mb->user, MAILTMPLEN);
-               } else {
-                       strlcpy(user, imsp_user, MAILTMPLEN);
-               }
-               strlcpy (pwd, imsp_password, MAILTMPLEN);
+       if (*mb->user) {
+               strlcpy (user,mb->user, MAILTMPLEN);
        } else {
-#endif
-               if (*mb->user) {
-                       strlcpy (user,mb->user, MAILTMPLEN);
-               } else {
-                       strlcpy (user, IMAPG(imap_user), MAILTMPLEN);
-               }
-               strlcpy (pwd, IMAPG(imap_password), MAILTMPLEN);
-#if HAVE_IMSP
+               strlcpy (user, IMAPG(imap_user), MAILTMPLEN);
        }
-#endif
+       strlcpy (pwd, IMAPG(imap_password), MAILTMPLEN);
 }
 
 void mm_critical(MAILSTREAM *stream)