]> granicus.if.org Git - php/commitdiff
column size for date in imap_headers increased (see bug id #5699)
authorHartmut Holzgraefe <hholzgra@php.net>
Fri, 21 Jul 2000 15:50:37 +0000 (15:50 +0000)
committerHartmut Holzgraefe <hholzgra@php.net>
Fri, 21 Jul 2000 15:50:37 +0000 (15:50 +0000)
ext/imap/php_imap.c

index 0fd7b8669e60fd76d6f94a79a29d60b3ab4a8007..e1936a293859324ae6a4a94a6738bb0ef7e36292 100644 (file)
@@ -136,6 +136,8 @@ function_entry imap_functions[] = {
        PHP_FE(imap_errors,                     NULL)
        PHP_FE(imap_last_error,         NULL)
 #ifndef PHP_WIN32
+       PHP_FALIAS(pdf_open_memory_image, warn_not_available, NULL)
+#else
        PHP_FE(imap_mail,           NULL)
 #endif
        PHP_FE(imap_search,                     NULL)
@@ -1075,9 +1077,9 @@ PHP_FUNCTION(imap_headers)
                tmp[5] = cache->draft ? 'X' : ' ';
                sprintf(tmp + 6, "%4ld) ", cache->msgno);
                mail_date(tmp+11, cache);
-               tmp[18] = ' ';
-               tmp[19] = '\0';
-               mail_fetchfrom(tmp+19, imap_le_struct->imap_stream, msgno, (long)20);
+               tmp[22] = ' ';
+               tmp[23] = '\0';
+               mail_fetchfrom(tmp+23, imap_le_struct->imap_stream, msgno, (long)20);
                strcat(tmp, " ");
                if ((i = cache->user_flags)) {
                        strcat(tmp, "{");
@@ -3213,7 +3215,11 @@ int _php_imap_mail(char *to, char *subject, char *message, char *headers, char *
 #endif
        return 1;
 }
+#endif
+
 
+
+#ifndef PHP_WIN32
 /* {{{ proto int imap_mail(string to, string subject, string message [, string additional_headers [, string cc [, string bcc [, string rpath]]]])
    Send an email message */
 PHP_FUNCTION(imap_mail)