Hello
Drupal seems to be great but i have added the mailhandler module and now do not know how to get it to work.
I have looked inthe 'readme' and do not how to 'recompile' php -

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. For other OS, you may need to recompile PHP
if you don't have this extension already.

?
Please help

Fruit Bandit

Comments

tjharman’s picture

Being a Newbie isn't a problem, but your TOTAL lack of details is.
No one goes to the Dr and goes "I Hurt!" and expects a full analysis of what's wrong, but they seem to for anything technical!

Anyway! :)

Why do you think you need to recompile PHP? If you have no clue about how to compile stuff then I can safely assume you are using something like RedHat linux? If that's the case then it should be a matter of just telling your system to install the PHP IMAP Module with a command like "yum install php-imap" (that command is a guess, it might not be it at all)

But again, you've posted no details at all, so it's hard to help.

What system are you using, linux, freeBSD, Windows? What errors does mailhandler give you to make you think it's a IMAP problem (you're right, it probably is)

A little more detail and hopefully I can point you in the right direction.

Fruit Bandit’s picture

Sorry

I have added the module to my site in the proper folder and when i go to administer/mailhandler I get the following message at the top of the page:

user error: Table 'fruit2_drpl1.mailhandler' doesn't exist
query: SELECT * FROM mailhandler ORDER BY mail in /home/fruit2/public_html/includes/database.mysql.inc on line 66.

Operating system Linux
Service Status Click to View
Kernel version 2.6.14.3-grsec
Machine Type i686
Apache version 1.3.34 (Unix)
PERL version 5.8.7
Path to PERL /usr/bin/perl
Path to sendmail /usr/sbin/sendmail
Installed Perl Modules Click to View
PHP version 4.4.1
MySQL version 4.1.13-standard
cPanel Build 10.8.1-STABLE 31
Theme cPanel X v2.5.0
Documentation Click to View

Thanks for your patience

styro’s picture

If so, you'll probably need to ask your host to enable that PHP module.

If not, the best way to get that module would be to follow your distros standard software install procedure.

Anyway to address the error in the parent post, have you added the mailhandler.mysql file to your database?

See the handbook for installing new modules: http://drupal.org/node/17473

--
Anton
New to Drupal? Please read this
Also: Forum posting tips

tjharman’s picture

Now we're getting somewhere.

That error has nothing to do with the IMAP module being enabled/disabled.

The problem is that there's a database table that needs to exist and currently doesn't. I've just had a read of the mailhandler install and it doesn't mention needing to manually install any DB tables but there *is* a mailhandler.mysql (file of database commands) in the zip archive so I suspect the doco forgets to mention you need to add the information in this file to your database.

This is where my ability to help runs out, because I have no understanding of cpanel, I only know the command line.

How do you administer your database tables? There should be some way to run mysql commands, if you can find it you just need to copy and paste all the information (in whole) and then execute it.

I would ask your host for some help if possible though, they should be able to point you in the right direction.

gabriella’s picture

If you have cPanel you most probably have PhpMyadmin in there, as an option to handel your databases.

There is a section in the handbook on installing new modules, and on this page # 6, it says how to create your table ( or run the mysql command) with PhpMyadmin > http://drupal.org/node/17473

devans911’s picture

If you have cpanel, you most likely have phpMyAdmin.

1. Open the txt file that contans the table you need to upload.

2. Copy the contents of the file - everything just the way it is.

3. Open phpMyAdmin

4. Click on the SQL tab

5. Paste the contents

6. Click Run Query

The contents of the file contain all the SQL to create the
table(s) you need for the module.

That should do it.
Dave

Fruit Bandit’s picture

It all seems to work - Thank you everyone for your help.

Fruit Bandit