Closed (fixed)
Project:
Mailhandler
Version:
5.x-1.0
Component:
Code
Priority:
Critical
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
15 Mar 2007 at 04:35 UTC
Updated:
4 Aug 2010 at 01:42 UTC
Possible bug?
The README file supplied with Mailhandler tells me about 'Requirements:'
"The IMAP dynamic extension must be enabled. On Windows PHP installations, this is as easy as uncommenting the line containing "extension=php_imap.dll" in php.ini."
From the PHP manual at http://au3.php.net/imap it appears 'php_imap.dll' may be the windows equivalent of 'mod_imap'.
phpinfo on my server tells me that mod_imap is loaded.
Mailhandler complains with: Fatal error: Call to undefined function: imap_open() in /usr/www/users/ipsink/lovelife/modules/mailhandler/mailhandler.module on line 16
What am I missing? Any help would be appreciated.
Comments
Comment #1
ChrisKennedy commentedmod_imap is for apache, not php - try googling it and see. Your phpinfo() will have an actual IMAP section if you truly have imap support compiled in.
But more importantly, you won't get the "Call to undefined function" error for imap_open() if php's imap extension is loaded.
Comment #2
Clemens commentedFollowing up your suggestion to Google for mod_imap I note many references to a current vulnerability in the module updated on 5 Mar:
Apache Mod_IMAP Referer Cross-Site Scripting Vulnerability.
Refer http://www.securityfocus.com/bid/15834
No wonder it is currently not available for my *nix flavor... :-(
Should this information be forwarded to the Drupal security team? How do we do that?
Comment #3
ChrisKennedy commentedDrupal has no official involvement with *mod_imap*, nor anything else with apache. Mailhandler merely requires the *imap* extension to php in order to function, which is completely different.
Comment #4
moshe weitzman commented@Chris - If you are up to it, please add a hook_requirements() check for IMAP extension.
Comment #5
Clemens commentedThank you for your replies, but...
We are back to looking for a PHP extension. Elsewhere you said in a reply to a question from me (although the post appears to have been unpublished/deleted) that I 'would have a separate Imap section in phpinfo'...
And indeed, this is what I see:
IMAP
IMAP c-Client Version 2001
SSL Support enabled
Kerberos enabled
Is this the PHP extension you refer to/we are looking for? If so, mailhandler should work?
Comment #6
jarea commentedMailhandler was/is working fine on my 4.7 installation and I got the imap error on my 5.1 installation - both on the same server. I put in /notls in the extra commands field on the 5.1 install and things started working.
Comment #7
VizionQuest commentedI have the same problem:
"Fatal error: Call to undefined function: imap_open() in /home/content/m/y/c/xxxxxxx/html/modules/mailhandler/mailhandler.module on line 16"
I have tried numerous variations of input and have tried two different email account (gmail, other).
I keep getting the same error everytime. There are several threads throughout this the Drupal forum that identify many others having the same problem.
Could someone provide a troubleshooting checklist help diagnose the problem please? Thank you!
Comment #8
steinmb commentedInstalled on Drupal 5.5 and got the same error. I'm running Apache and PHP 5.1.x on a Centos server and all I had to do was to install php-imap "yum install php-imap" problem solved.
--
Stein Magne
Comment #9
moshe weitzman commentedwell, d5 doesn't actually check hook_requirements before installing. this is fixed in D6.
Comment #10
lszyrmer commentedmoshe that's great...are there any plans to fix this on D5, as not everyone is willing upgrade due to dependecies with other modules? kind of makes the R5 module download less useful if it doesn't work. Is there any workaround to for it that you know of?
Comment #11
moshe weitzman commentedhook requirements won't make the module work differently, it just informs the admin that he can't install the module because he does not have mod_imap in his PHP. and whether it gets fixed or not is up to the D5 core maintainers - not mailhandler.
you need to find a web host who will let you have the mod_imap php extension.
Comment #12
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.
Comment #13
remoran commentedPlease get the imap situation fixed!!! This is a real PITA to deal with as Mail Handler requires it and Drupal has not solved the problem by providing a concise way of resolving the problem. Please get this done.
Comment #14
jalder commentedSolution: http://www.php.net/manual/en/imap.setup.php