Roundcube Community Forum

Third Party Contributions => API Based Plugins => Topic started by: LucasinoCZ on September 14, 2009, 03:55:47 AM

Title: Hmail_plugins
Post by: LucasinoCZ on September 14, 2009, 03:55:47 AM
HI, i have a problem with plugins for functionality between hmailserver and roundcube. Exactly hmail_autoresponder, forwarding, password change.

I installed roundcube 0.3 stable
loaded plugins trunk  2953
configured mai.inc.php plugins to load : "settings","hmail_autoresponder"
cretaed config.inc.php in each plugin directory

So...in properties menu in roundcube, there i found new item account administration - but when i click on that, there is nothink.
But now I see another error, after loading settigs plugin, in properties menu >  special folder i get error 500....service unavailable......

can someone help me?
Title: Hmail_plugins
Post by: rosali on September 14, 2009, 04:28:13 AM
This is a known issue and will provide a fix next weekend.
Title: Hmail_plugins
Post by: rosali on September 14, 2009, 08:30:17 AM
Please try fix @ myroundcube.googlecode.com
Title: Hmail_plugins
Post by: LucasinoCZ on September 14, 2009, 02:22:50 PM
Hi, I tried your fix and it seems it´s OK. All hmail plugins are currently working......I´ll try to test them more......
Title: Hmail_plugins
Post by: Wini on September 25, 2009, 04:13:47 PM
hmail_forwarding plugin can set, but can not remove forwarding back. Below is the roundcubemail error message log:

[25-Sep-2009 23:11:02] PHP Warning:  include(hmail_login.php) [function.include]: failed to open stream: No such file or directory in C:\Webmail\roundcubemail\program\include\iniset.php on line 104

[25-Sep-2009 23:11:02] PHP Warning:  include() [function.include]: Failed opening 'hmail_login.php' for inclusion (include_path='C:\Webmail\roundcubemail/;C:\Webmail\roundcubemail/program;C:\Webmail\roundcubemail/program/lib;C:\Webmail\roundcubemail/program/include;.;C:\php5\pear') in C:\Webmail\roundcubemail\program\include\iniset.php on line 104

[25-Sep-2009 23:11:21] PHP Warning:  include(hmail_login.php) [function.include]: failed to open stream: No such file or directory in C:\Webmail\roundcubemail\program\include\iniset.php on line 104

[25-Sep-2009 23:11:21] PHP Warning:  include() [function.include]: Failed opening 'hmail_login.php' for inclusion (include_path='C:\Webmail\roundcubemail/;C:\Webmail\roundcubemail/program;C:\Webmail\roundcubemail/program/lib;C:\Webmail\roundcubemail/program/include;.;C:\php5\pear') in C:\Webmail\roundcubemail\program\include\iniset.php on line 104

[25-Sep-2009 23:11:21] MDB2 Error: unknown error (-1): _doQuery: [Error message: Could not execute statement]
[Last executed query: UPDATE `hm_accounts` SET `accountlastlogontime` = '2009-09-25 23:11:21', `accountforwardenabled` = '', `accountforwardaddress` = '[email protected]', `accountforwardkeeporiginal` = '1' WHERE `accountaddress` = '[email protected]' LIMIT 1;]
[Native code: 1366]
[Native message: Incorrect integer value: '' for column 'accountforwardenabled' at row 1]


[25-Sep-2009 23:11:21 +0300]: DB Error: MDB2 Error: unknown error Query: _doQuery: [Error message: Could not execute statement] [Last executed query: UPDATE `hm_accounts` SET `accountlastlogontime` = '2009-09-25 23:11:21', `accountforwardenabled` = '', `accountforwardaddress` = '[email protected]', `accountforwardkeeporiginal` = '1' WHERE `accountaddress` = '[email protected]' LIMIT 1;] [Native code: 1366] [Native message: Incorrect integer value: '' for column 'accountforwardenabled' at row 1]  in C:\Webmail\roundcubemail\program\include\rcube_mdb2.php on line 627 (POST /roundcubemail/index.php?_task=settings&_action=plugin.hmail_forwarding-save?_task=&_action=)
Title: Hmail_plugins
Post by: rosali on September 26, 2009, 01:07:35 AM
I can't reproduce the issue. It is working fine for me with current RoundCube SVN trunk, hMail 5.2/5.3. Could you give me access to your installation to track this back? I would need a imap test account, the http url and ftp access.
Title: Hmail_plugins
Post by: Wini on October 03, 2009, 12:00:35 PM
Thanks a lot rosali. I have emailed required information to you.
Title: Hmail_plugins
Post by: joksi on December 13, 2009, 07:40:56 AM
I installed this plugin the other day, and now im experiencing some similar problems.
I can set the forwarding, but when set its not possible to remove. When unticking "active" and submitting i get the checkbox ticked again, and nothing have changed (no error message).

So i went and googled my problem and found this post, but with no solution mentioned. I did however solve it by my own, and would like to share the solution.

In hmail_forwarding.php, below

  $enabled      = (NULL != get_input_value('_forwardingenabled', RCUBE_INPUT_POST));


add the following:

if(!$enabled)
      $enabled = 0;    


Result:

 $enabled      = (NULL != get_input_value('_forwardingenabled', RCUBE_INPUT_POST));
    if(!$enabled)
      $enabled = 0;    


Rosali, I guess you are managing this plugin repository?
well, please update the plugin.
Title: Hmail_plugins
Post by: rosali on December 13, 2009, 01:19:32 PM
Thanks! I have never noticed the problem. It is only an issue if you are not using "dnsbl" plugin.