ID: 31142
User updated by: sean-freebsd at farley dot org
Reported By: sean-freebsd at farley dot org
-Status: Closed
+Status: Open
Bug Type: IMAP related
Operating System: *
PHP Version: 4CVS, 5CVS (2004-12-17)
New Comment:
I think I need to give a better example. While the fix in CVS does fix
the example from the man page, I am having trouble when the envelope
includes custom_headers.
If you add the following line to the example script in the man page,
you should notice that the other headers are missing. I tested this
with a 20050104 CVS snapshot.
$envelope["custom_headers"] = array("X-Mailer: TestMailer");
Thank you for the earlier fix. It did help.
Previous Comments:
------------------------------------------------------------------------
[2004-12-22 18:29:20] iliaa@php.net
This bug has been fixed in CVS.
Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
Thank you for the report, and for helping us make PHP better.
------------------------------------------------------------------------
[2004-12-20 20:01:17] rgeorge at umn dot edu
Can also confirm this bug -- my webmail stopped being
able to send messages on php upgrade. On investigation,
imap_mail_compose() was returning nothing but a mime-
part separator. Implementing the sample from the manual
yields the same behavior.
some info from phpinfo:
Configure Command
'./configure' '--with-apache=/usr/src/redhat/BUILD/
apache-ssl-php-1.3.33/apache_1.3.33' '--prefix=/usr/
local/apache' '--enable-calendar' '--enable-trans-sid'
'--enable-session' '--enable-sockets' '--enable-wddx'
'--enable-inline-optimization' '--enable-bcmath' '--
with-curl' '--enable-ftp' '--with-ldap' '--with-
kerberos' '--with-zlib' '--with-imap' '--with-imap-ssl'
PHP API
20020918
PHP Extension
20020429
Zend Extension
20021010
------------------------------------------------------------------------
[2004-12-20 13:32:51] sniper@php.net
The example from manual does not work for me either.
c-client version 2001a
------------------------------------------------------------------------
[2004-12-20 13:01:50] mcsoftware at alikuvkoutek dot cz
Configure Command: './configure' '--prefix=/www/php'
'--with-apache=/usr/src/apache_1.3.33' '--enable-safe-mode'
'--enable-exif' '--enable-track-vars' '--with-calendar=shared'
'--enable-magic-quotes' '--enable-trans-sid' '--enable-wddx'
'--enable-ftp' '--enable-inline-optimization' '--enable-memory-limit'
'--with-expat-dir' '--enable-xslt' '--with-xslt-sablot'
'--with-xml'
'--with-imap-ssl' '--with-mysql' '--enable-dbase'
'--enable-mbstring'
'--with-gd' '--with-zlib' '--enable-gd-native-tt'
'--with-t1lib'
'--with-jpeg-dir' '--with-png-dir' '--with-zlib-dir'
'--with-ttf'
'--with-freetype-dir' '--with-imap' '--with-mhash'
'--with-mcrypt'
'--with-pdflib' '--with-tiff-dir' '--with-openssl'
'--with-curl'
'--enable-sysvmsg' '--enable-sysvsem' '--enable-sysvshm'
'--enable-bcmath' '--enable-mbregex' '--without-pear'
'--with-iconv'
'--with-dom' '--with-libxml-dir' '--enable-gd-native-ttf'
'--enable-zend-multibyte' '--enable-soap' '--with-bz2'
'--without-sqlite' '--with-unixODBC' '--with-tidy'
PHP API: 20031224
PHP Extension: 20041030
Zend Extension: 220040412
Zend Optimizer
------------------------------------------------------------------------
[2004-12-20 01:36:53] sean-freebsd at farley dot org
My sample script is the one from the man page:
http://us2.php.net/manual/en/function.imap-mail-compose.php
Apache modules:
core prefork http_core mod_so mod_access mod_auth mod_auth_anon
mod_auth_dbm mod_charset_lite mod_include mod_deflate mod_log_config
mod_logio mod_env mod_mime_magic mod_cern_meta mod_expires mod_headers
mod_usertrack mod_unique_id mod_setenvif mod_ssl mod_mime mod_status
mod_autoindex mod_asis mod_info mod_cgi mod_vhost_alias mod_negotiation
mod_dir mod_imap mod_actions mod_speling mod_userdir mod_alias
mod_rewrite sapi_apache2
PHP extensions:
imap, pcre, pgsql, session, standard, xml
PHP Configuration:
'./configure' '--enable-versioning' '--enable-memory-limit'
'--with-layout=GNU' '--with-config-file-scan-dir=/usr/local/etc/php'
'--disable-all' '--with-regex=php' '--with-apxs2=/usr/local/sbin/apxs'
'--prefix=/usr/local' 'i386-portbld-freebsd4.9'
No Zend extensions/modules added.
The only unusual thing I noticed is according to phpinfo() I have an
older IMAP library than what is installed (2004a):
IMAP c-Client Version 2000
SSL Support enabled
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/31142--
Edit this bug report at http://bugs.php.net/?id=31142&edit=1