Custom Query (4997 matches)

Filters
 
Or
 
  
 
Columns

Show under each result:


Results (3501 - 3600 of 4997)

Ticket Summary Owner Type Priority Milestone Component
#1488195 parsing of link https://twitter.com/#!/raoulbhatia Bugs 5 0.7-stable PHP backend
Description

the link https://twitter.com/#!/raoulbhatia inside a message body is not correctly parsed. (post probably because of the ! character)

thanks, raoul

#1488201 impossible to create an email in a half session lifetime(?) Bug Patches 5 0.7-stable PHP backend
Description

It is impossible to create an email in a short(half lifetime?) time after the session creation, because of the session with the compose_data_XXX is not stored in the db

#1488230 headers already sent in Unknown on line 0 Bugs 5 0.7-stable PHP backend
Description

Everytime somebody opens a page I get: "PHP Warning: Cannot modify header information - headers already sent in Unknown on line 0" in the errors log. However if I enable a debug level these messages stop.

Please provide more info on how to debug this.

#1488244 Error when opening mails with attached images Bugs 5 0.7-stable PHP backend
Description

As posted in the forum

Getting some ugly errors, when opening mails with attached images (>3MB).

Dec  9 15:05:19 luffy roundcube: IMAP Error: Login failed for #####@##### from 10.78.200.20. LOGIN: LOGIN failed in /srv/htdocs/#####/webmail/program/include/rcube_imap.php on line 205 (GET /?_task=mail&_action=get&_uid=3&_mbox=INBOX&_part=2)

#1488252 "Error 500" on Logout Bugs 5 0.8-beta PHP backend
Description

When clicking on Logout, the server returns a "error 500" , without however anything in the logs of the apache server

#1488258 Error in empty folder after moving message Bugs 5 0.8-beta PHP backend
Description

If I move a message from a folder, and then the folder is empty, RC throws an error. If there's still mail in the folder, everything works fine.

PHP Fatal error: Class 'rcube_imap_result' not found in /var/www/mail.sousek.com/program/include/rcube_imap_cache.php on line 267

#1488262 httpd crashes with segfault when attempting to view attachments Bugs 5 later PHP backend
Description

After updating to 0.7, attempts to access attachments result in a segfault. Downgrading back to 0.6 and attachments can be accessed without issue. Other parts of 0.7 appear to work fine.

php-5.3.8-3 httpd-2.2.17-1

Fedora 14.

#1488276 rcmail_get_edit_field() password type field Feature Patches 5 0.8-beta PHP backend
Description

I suggest to add the support for "password" type for rcmail_get_edit_field()

That's a diff for /program/include/main.inc :

Index: main.inc
--- main.inc Remotely Modified (Based On HEAD)
+++ main.inc Locally Modified (Based On LOCAL)
@@ -857,6 +857,11 @@
     $input->add('---', '');
     $input->add(array_values($attrib['options']), array_keys($attrib['options']));
   }
+  else if ($type == 'password') {
+    $attrib["value"] = "";
+    $value = "";
+    $input = new html_inputfield($attrib);
+  }
   else {
     if ($attrib['type'] != 'text' && $attrib['type'] != 'hidden')
         $attrib['type'] = 'text';
#1488290 Bug in handling of base href and inline content Bugs 5 0.7.1 PHP backend
Description

When a mail has a <base href=... it causes URLs to be rewritten (func.inc: function rcmail_resolve_base(...)) but this function should skip URLs referring to inline content (ie. cidart.xxx) or you'll end up with invalid URL's like this:

Code:

<base href="http://www.example.com">
...
<img src="cid:part10.9e755a1794d1cdca724a1e916b331718_MID5397_t1315386" />

The image URL will be rewritten to: Code:

http://www.example.com/cid:part10.9e755a1794d1cdca724a1e916b331718_MID5397_t1315386
#1488296 PHP Fatal error: Call to private method rcube_imap::id2uid() from context 'rcube_imap_cache' alec Bugs 5 0.8-beta PHP backend
Description

the rcube_imap_cache calls rcube_imap::id2uid on line 844 which was made private in r5716

#1488325 Contact photo resizing doesn't work Bugs 5 0.8-rc PHP backend
Description

When uploading contact photos in the address book this results in the following message in the developer console:

--

[16:56:38.929] POST http://webmail.domain.com/?_task=addressbook&_framed=1&_id=&_uploadid=1327420598896&_action=upload-photo [HTTP/1.0 500 Internal Server Error 2751ms]

--

Roundcube keeps displaying 'loading..' until the request eventually times out. No error message can be found in the roundcube logs or in the apache logfiles.

Only clue is an empty file in the roundcube temp directory:

-rw------- 1 webmail webmail 0 Jan 24 16:56 rcmImgConvertwXPEtF

  • uploading images smaller than 160 pixels works fine.
  • paths to convert and identify binaries are correct.
  • Imagemagick is properly installed and works when tested with a simple script.
#1488327 IMAP SORT = DISPLAY (RFC5957) is not working Bugs 5 0.7.2 PHP backend
Description

In 0.5 beta SORT=DISPLAY feature was added: http://trac.roundcube.net/browser/trunk/roundcubemail/program/include/rcube_imap_generic.php?rev=4152#L1003

However, in revision 4160: http://trac.roundcube.net/changeset/4160/trunk/roundcubemail/program/include/rcube_imap_generic.php these lines were removed. I guess it was not intentional.

#1488383 Image resize with GD extension Feature Requests 5 0.8-rc PHP backend
Description

When ImageMagick? package isn't installed we could try GD extension. Sample code: http://www.white-hat-web-design.co.uk/blog/resizing-images-with-php/

#1488387 rcmail_log_login uses $RCMAIL globally Bugs 5 0.9-beta PHP backend
Description

If I am not mistaken, the new rule is to use rcmail::get_instance().

I looked and I couldn't find an existing issue for this.

This is my first post here, so sorry if I did something wrong.

I will attach a SVN patch.

#1488497 Settings page blank - PHP Fatal error Bugs 5 0.8-stable PHP backend
Description

Clicking on 'Settings' on account page gives a blank white page.

Error log shows >

PHP Fatal error: Uncaught exception 'Exception' with message 'DateTimeZone::construct() [<a href='datetimezone.--construct'>datetimezone.--construct</a>]: Unknown or bad timezone (US/Pacific-New)' in /var/www/vhosts/kunrig.org/httpdocs/mail/program/steps/settings/func.inc:189

#1488506 PHP code issue Bugs 5 0.8-stable PHP backend
Description

I got the following error:

[31-May-2012 08:50:04 UTC] PHP Parse error:  syntax error, unexpected T_STRING in C:\inetpub\wwwroot\roundcube\program\include\rcube_template.php(812) : eval()'d code on line 1
[31-May-2012 08:50:04 UTC] PHP Parse error:  syntax error, unexpected T_ENCAPSED_AND_WHITESPACE in C:\inetpub\wwwroot\roundcube\program\include\rcube_template.php(812) : eval()'d code on line 1

My configuration

  • Windows Server 2008 R2 with IIS 7.5
  • PHP 5.3.13
  • "Microsoft SQL Driver v2.0 for PHP v5.2 in IIS" (installed via Microsoft Web Plattform installer)
  • My connection string is: $rcmail_configdb_dsnw? = 'sqlsrv://sa:password@server\\instance/database';
  • hMailServer

I also tried 0.7.2 with the same results.

Link to forum thread http://www.roundcubeforum.net/index.php?topic=9750

#1488546 date.timezone changed to a requirement? Bugs 10 - Lowest 0.8-stable PHP backend
Description

RoundCube seems to be showing a blank page if date.timezone isn't set. Along with this report: http://www.roundcubeforum.net/index.php/topic,9790.0/topicseen.html I also ran into the problem on a new server that didn't have date.timezone set. So maybe it should be changed to a RoundCube requirement instead of being optional.

#1488591 RC thows error on login if prefered skin isn't available Bugs 8 0.8.1 PHP backend
Description

PHP Error in /var/www/html/roundcube-testing/program/include/rcube_template.php (431): Error loading template for mail SERVICE CURRENTLY NOT AVAILABLE!

Error loading template for mail

All i had to do was go through every user that had an old skin listed in mysql preferences and change it to "classic".

#1488592 memcache session storage, workaround bug with memcache pecl extension Bugs 5 0.8.1 PHP backend
Description

Re ticket #1488384 and I think some others, various people have had problems with memcache being unable to delete keys. It's clearly visible when you sniff the traffic to the memcache server:

delete vgjkahooafjpmp08pl3mjd4sr1 1
CLIENT_ERROR bad command line format.  Usage: delete <key> [noreply]

I've tracked this down. Old memcached versions had a parameter to the "delete" command specifying a timeout which is now rejected. There was some backwards-compatibility fix in memcached which ignores a value 0 in this position but some versions of the memcache PECL extension default to using 1 here. This was supposedly fixed but the fix appears to be incomplete; on occasion this has still been seen with the latest version.

The attached diff sets the value explicitly when delete is used for session and imap cache storage, overriding the default, which fixes the issue for me.

#1488643 Undefined parameter $str in rep_specialchars_output() Bugs 5 0.9-beta PHP backend
Description

The new 0.8.1 version logs these warnings:

PHP Warning: strpos() expects parameter 1 to be string, array given in /var/www/webmail/program/include/main.inc on line 225

PHP Warning: strtr() expects parameter 1 to be string, array given in /var/www/webmail/program/include/main.inc on line 239

Both of these problems are in the rep_specialchars_output() function which is apparently called with undefined $str. I don't know what operation caused these warnings. My attempts to reproduce it failed.

#1488754 PHP Fatal error: Cannot redeclare quoted_printable_encode() in /usr/share/roundcubemail/program/include/rcube_imap.inc on line 2934 Bugs 5 later PHP backend
Description

hi,

im very new to this. after upgrading from 0.7 to 0.8.2 and upgrade php to 5.3.17 i receive this error in log

PHP Fatal error: Cannot redeclare quoted_printable_encode() in /usr/share/roundcubemail/program/include/rcube_imap.inc on line 2934

anyone had this before ? need help

thanks

#1488758 return sender but mail is sending successfully Bugs 5 later PHP backend
Description

Hello all,

When i send a mail, the mail is send successfully but i receive a "return sender".

This mail is composed : 

Final-Recipient: rfc822; name.surname#domain.xx@domain.xx

Action: failed
Status: 5.1.1
Diagnostic-Code: X-Postfix; unknown user:
    "name.surname#domain.xx@domain.xx"

Browser : Firefox , IE9

#1488759 Asterisks not being recognized as part of URLs Bugs 5 0.9-beta PHP backend
Description

Roundcube doesn't recognize asterisks (*) as part of a URL, so for instance the following address found on a message body:

http://host/path*second

Gets rendered as:

[link_to http://host/path]http://host/path[/link]*second

Generated link should include the *second part.

Although it may seem odd, * is a valid URL character as per RFC 3986.

#1488786 Roundcube dont work with suhosin on php 5.4 Bugs 5 0.9-beta PHP backend
Description

Error, roundcube invalid request no data was saved

#1488979 Connection failed to authenticate to the web Bugs 5 0.9-stable PHP backend
Description

Hello,

Currently I have rouncube on a Linux and everything work perfectly, but I need to have everything installed on a Solaris 10 (Sparc), for this I installed the following versions: Roundcubemail 0.8.5 Apache 2.4.3 mysql 5.5.27 php 5.4.7

When I have all the packages configured and installed, made ​​the roundcube installer and other settings, I access the webmail portal ok but when I authenticate with a username and password whether real or fictitious returns me a blank page, and show in the apache log error: [Wed Feb 27 09:01:00.466187 2013] [core: notice] [pid 16548] AH00052: child pid 16659 exit signal Segmentation fault (11)

I disabled most of the apache modules, to make sure the problem is not one of them: apachectl-M Loaded Modules:

core_module (static) so_module (static) http_module (static) mpm_prefork_module (static) authn_file_module (shared) authn_core_module (shared) authz_host_module (shared) authz_groupfile_module (shared) authz_user_module (shared) authz_core_module (shared) access_compat_module (shared) auth_basic_module (shared) filter_module (shared) mime_module (shared) log_config_module (shared) log_debug_module (shared) env_module (shared) headers_module (shared) setenvif_module (shared) version_module (shared) unixd_module (shared) status_module (shared) autoindex_module (shared) dir_module (shared) alias_module (shared) php5_module (shared)

I tried putting in debug the apache and look for Info roundcube log in: / var/www/roundcubemail-0.8.5/logs/error

But I do not see more information.

Please, that I can do? and do not know where to continue ...

Can you think of how I can get a trace with more details or where can be the error?

Thank you very much and best regards, Ivan

#1488986 Your session is invalid or expired Bugs 5 0.9-stable PHP backend
Description

Hello,

since I installed 0.9-rc I have a problem signing into RC. I always get the error message on the login page although according to the log files everything seems to work and there is even a session entry created in the MySQL database "session" table.

I have attached log files for imap, session, userlogins and sql and a screenshot of the session MySql? table.

We have rc 0.8.5. running.

This problem seems to be similar to #1488918 but in our case is MySQL and not MSSQL...

Alex

#1489043 Tasks - bin/updatedb.sh script - error to STDERR instead of STDOUT and more Tasks 5 0.9.1 PHP backend
Description

Hello ;

It is possible to use STDERR to send any error from the updatedb.sh script instead of STDOUT? Since this script is for users that do no want use common installation (eg. using the roundcube installer), I think this script should follow standard POSIX rule for error handling.

eg, change any error output to

fwrite(STDERR, 'error message...');

instead of:

echo 'error message...';

That will prevent some integration scripts to do some things like this (here Perl):

...
		require iMSCP::Execute;
		iMSCP::Execute->import();

		my ($stdout, $stderr);
		$rs = execute(
			"$main::imscpConfig{'CMD_PHP'} $roudcubeDir/bin/updatedb.sh " .
			"--version=$fromVersion --dir=$roundcubeDir/SQL --package=roundcube",
			\$stdout, \$stderr
		);
		debug($stdout) if $stdout && ! $rs; # This because the updatedb.sh script use only STDOUT
		error($stdout) if $stdout && $rs; # This because the updatedb.sh script only use STDOUT
		error($stderr) if $stderr && $rs;
		return $rs if $rs;
...

Also, does it not possible to use .php instead of .sh as extension? Syntax Highlighters from some IDE (such as PHPStorm) use file extension to know the driver to use so...

Thanks you. Note: This kind of recommendation, can be also valable for any cli scripts you are providing.

#1489044 Bug - bin/updatedb.sh script - wrong exit code on error Bugs 5 0.9.1 PHP backend
Description

On error, any cli script should never return 0

root@debian32:/usr/local/src/imscp# php /var/www/imscp/gui/public/tools/webmail/bin/updatedb.sh --dir=/var/www/imscp/gui/public/tools/webmail/SQL --package=roundcube
ERROR: Wrong 'suhosin.session.encrypt' option value and it wasn't possible to set it to required value (0).
Check your PHP configuration (including php_admin_flag).
root@debian32:/usr/local/src/imscp# echo $?
0

Elementary my dear watson :D

#1485076 Reuse HTTP authentication for login Feature Patches 5 0.3.1 Plugin API
Description

Hi,

the attached patch allows to reuse HTTP authentication credentials for the login. If the webmail installation is protected by HTTP authentication with matching credentials, the user only needs to enter them once.

The feature needs to be enabled by a configuration option.

It's working fine for me but the patch could be refactored a little bit by someone with some more knowledge about roundcube's internals. It applies to the 0.1.1 version.

Regards David

#1485224 API plugin for client certificate authentication Feature Patches 5 0.3-stable Plugin API
Description

As i've got too many passwords I've created the following patch that allows the use of client side certificates to authenticate to roundcube.

The verification of the certificates is performed by the webserver (only apache, lighttpd doesn't support it). The attached patch uses the SSL variables in the environment and maps those to a IMAP username.

As certificates don't pass a password there is a configuration for a global password that needs to be included in the imap authentication.

The attached patches include a fix for 1485207 as I've refactored the code that the patches there apply to. As the email address in the certificate is authoritative as an identity, poor regex matching will allow access to unintended persons.

If accepted I'm happy to write about the Apache configuration and IMAP server setup on the wiki.

#1485721 add a cookie to the session which can be used to perform per user sticky session using nginx Feature Patches 5 0.3-stable Plugin API
Description

When using multiple roundcube installation, it is currently possible to use ipvs with source hashing to load balance connection between multiple installation of roundcube using the same backend database.

However, if like in our case, lots of connection are coming from a single proxy, one single machine will end up taking most of the load.

Adding a cookie to roundcube, with the name/IP of the machine taking the connection, it is then possible to use NGINX (and surely other web proxies) to redirect the following request to the initial machine.

The svn diff provided is for 'proof of concept only' as I am not sure of the best way/place to add the cookie creating, so it is created in index.php.

A new configuration entry should as well be created for the host name where nginx should proxy the connection.

this set a cookie unique to this server
which can be used by proxies to do per session load balancing
$rcmail_config[ 'cluster_id' ] = 'backend2.domain.com';

I included a sample nginx configuration, should you want to test the feature and/or add it to the site once the feature is added.

Light tested, seems to work as expected.

#1485826 insertrow plugin API issue thomasb Bugs 5 0.3-stable Plugin API
Description

The insertrow plugin api event is not being triggered on initial load of a mailbox, like just after login or when switching tasks.

#1485871 cannot add sieve filter for forwarding messages Bugs 4 0.3-stable Plugin API
Description

Hi, Im using the latest svn version of RC (rev 2535) and filters works pretty fine, but today ive found a problem with creating that kind of filter:

filter name: test Sender is equal to/contains: foo@… Redirect message to: my@…

And then i click "Save". After that nothing happens. In RC logs:

[26-May-2009 08:11:03] PHP Fatal error: Call to undefined function check_email() in /home/www/poczta/plugins/managesieve/managesieve.php on line 370

#1485888 password and sasl_password register_handler at wrong time Bugs 5 0.3-stable Plugin API
Description

Both the password and sasl_password plugins call register_handler('plugin.body', array($this, 'password_form')); during initilization. The means no other plugin can use plugin.body. I think register_handler should only be called for the actions specific to the plugin, like in the userinfo plugin.

#1485916 allow creation of settings part through plugin hooks Feature Requests 5 0.3-stable Plugin API
Description

To accomodate more future plugins and give people a choice between adding settings to a tab or to the existing Preferences tab, allow for plugins to create a settings box/part of its own. This may reduce the pressure on the tabs, which occupy a finite space, especially for plugins with only a few settings.

#1485938 Plugin autologon (proof-of-concept) ... Bugs 5 0.3-stable Plugin API
Description

... stopped working.

I think it is related to changes #1485919.

Could you please look into that? Remember_me plugin from the Repository fails for same reason. It does not perform the login on the authenticate hook anymore.

#1485954 Get SMTP settings per user throug a plugin Feature Requests 5 0.3-stable Plugin API
Description

We use per-user settings for sending the mail so the outgoing email is authenticated through the users "own" mailserver to solve problems with mail signing (SPF/DKIM)..

There seems no way off changing the settings from a plugin, they are all reset when connecting to the SMTP server.

We made the following changes to /program/include/rcube_smtp.inc

function smtp_mail($from, $recipients, &$headers, &$body, &$response)
  {
  global $SMTP_CONN, $CONFIG, $RCMAIL;
  $smtp_timeout = null;

++  $CONFIG = $RCMAIL->plugins->exec_hook('smtp_settings', array('smtp_server' => $CONFIG['smtp_server'], 'smtp_port' => $CONFIG['smtp_port'],'smtp_server' => $CONFIG['smtp_user'], 'smtp_port' => $CONFIG['smtp_pass'], 'smtp_auth_type' => $CONFIG['smtp_auth_type']));

  $smtp_host = $CONFIG['smtp_server'];

Which solves our problem authenticating per user with data from our plugin..

This is the only patch I have to do manual when upgrading, I used to rewrite a few functions a while a go to get it to work..

So keep up the good work..

#1485956 IMAP reconnection prevent plugins from handling password thomasb Feature Requests 5 0.3-stable Plugin API
Description

In method rcube_imap::set_flag() a reconnection to the IMAP server is done :

      // close and re-open connection
      // this prevents connection problems with Courier 
      $this->reconnect();

This reconnection is done with password stored in session but this prevents plugins from handling one time password usage.

Long explanation:
I'm in the process of writing a plugin for CAS SSO authentication. The plugin is working great except when the method set_flag is called. With CAS authentication, a CAS ticket is used as IMAP password. It can only be used once so the plugin request one and store it in $_SESSION[ 'password' ] at every page call. The problem is that the rcube_imap::reconnect() method doesn't allow the plugin to request a new CAS ticket so the IMAP authentication failed.

What solution to this would be best ?

  • Add a plugin hook 'before_imap_connect' that would allow plugin to manipulate connection data just before the connection ?
  • Drop the reconnect() method (probably not the right option...)
#1485958 Please add a hook in steps ::: settings ::: func.inc ::: rcmail_identities_list Feature Requests 5 0.3-stable Plugin API
Description

... I would need it urgently:

function rcmail_identities_list($attrib)
  {
  global $OUTPUT, $USER, $RCMAIL;

  // add id to message list table if not specified
  if (!strlen($attrib['id']))
    $attrib['id'] = 'rcmIdentitiesList';

  // define list of cols to be displayed
  $a_show_cols = array('name', 'email');
  
  $a_identities = $USER->list_identities();
  
  $RCMAIL->plugins->exec_hook('list_identities', $a_identities);
  
  // create XHTML table  
  $out = rcube_table_output($attrib, $a_identities, $a_show_cols, 'identity_id');
  
  // set client env
  $OUTPUT->add_gui_object('identitieslist', $attrib['id']);

  return $out;
  }

THANKS!

#1485971 Hook Request: Please add hook to write_log function Feature Requests 5 0.3-stable Plugin API
Description

I would like to see a hook in the write_log function to manipulate/react when something is written to logs.

#1485977 SVN r2743: hook render_page Bugs 5 0.3-stable Plugin API
Description

The check to avoid endless loops by the callback function of 'render_page' is too restictive. We can't use output->send('[pluginname.]template') anymore. The check breaks my plugins and the hook can't be used to redirect to another template. Please change rcube_template.php as follows ...

rcube_template.php line 291:

if ($exit != 'recurse' && $this->app->plugins->is_processing('render_page')) {

I also suggest to modify the WIKI for the render_page hook accordingly:

If you want to use output->send() in the callback function of this hook, then call it by output->send('[pluginname.]template','recurse') and take care not to cause endless loops. Otherwise the output->send() will be skipped.

#1485979 r2729 - Please modify 'write_log' hook Feature Requests 5 0.3-stable Plugin API
Description

Please modify the write_log hook to allow manipulation of the prepended date in the log line.

Suggestion attached.

#1485993 wrong name for localization file in help plugin Bugs 10 - Lowest 0.3-stable Plugin API
Description

http://trac.roundcube.net/browser/trunk/roundcubemail/plugins/help/localization/en_UK.inc should be called en_GB.inc

I dont think there are any aliases in the system for en_UK = en_GB

#1485998 Please add "write_log" hook to bugs.inc Feature Requests 5 0.3-stable Plugin API
Description

We have complaints in the forum (German part http://www.roundcubeforum.net/deutsch/5065-roundcube-auf-bplaced-net.html) that RoundCube is using "fopen" which is disabled by some hosters.

I think adding this hook and using my dblogs plugin along with the database_attachments plugin may solve the issue!

#1486000 Patch to help plugin to localize config Feature Patches 7 0.3-stable Plugin API
Description

Small patch to move help plugin configuration to the local directory where the plugin is installed.

#1486005 Hook when new message received Feature Requests 5 0.3-stable Plugin API
Description

Please add a hook in ./program/steps/mail/check_recent.inc which is triggered when a new message arrives.

I would need this hook to code a sound notifier plugin.

#1486014 LDAP password plugin creates multiple userPassword attrs Bugs 5 0.3-stable Plugin API
Description

Password plugin with LDAP driver sends an Add: userPassword instead of Replace: userPassword. This is down to the Net_LDAP2 Pear module behavior. See: http://pear.php.net/package/Net_LDAP2/docs/latest/Net_LDAP2/Net_LDAP2_Entry.html#methodreplace fourth paragraph.

This probably doesn't affect you if you bind as an admin rather than as the user, or if the user has an ACL that allows him to read his userPassword attribute.

Setting $force = true in the call to replace() forces it to use replace rather than add.

Tiny patch to add the 'force' parameter attached.

#1486042 Add logout_after plugin hook Feature Requests 5 0.3-stable Plugin API
Description

I'd like to suggest adding a logout_after plugin hook that allows plugins to perform custom actions during logout, similar to how the login_after hook allows plugins to change the redirection url following login. Applications of this hook include single sign-on plugin such as the one that I'm writing, where the user should be logged out of the SSO server while the user is logging out of RoundCube.

#1486068 Please add hmtl_editor hook Feature Requests 5 0.3.1 Plugin API
Description

Code is attached.

If you accept the hook request it would be great to have a patch for rcube_html_page.php ::: include_script to make it possible to change the script_path (default ./program/js) to something else. The reason is, that I have to include an alternative editor.js file by my TinyMCE plugin (coding in progress). But if I use $rcmail->api->output->include_script the file is included to late and I get javascript errors.

#1486079 Required plugins check breaks non mail task pages Bugs 5 0.3-stable Plugin API
Description

There is a problem with the logic that makes sure that either all items in the rcube_plugin_api::required_plugins array are loaded or that an instance of a child is loaded. Currently this only affects filesystem_attachments and the alternative plugin database_attachments.

If you enable database_attachments, everything breaks except when task=mail.

Database_attachments is only supposed to be initialized when task=mail. However, the "required plugins" logic doesn't recognize a plugin that was loaded but didn't initialize because it is limiting itself to a specific task.

So it tries to include filesystem_attachments also. This causes a fatal error because database_attachments already included filesystem_attachments for purposes of inheritance.

I can commit this if requested, but I wanted another set of eyes on my work so close to the 0.3 release.

Thanks.

#1486151 rcube_addressbook: delete/update hooking problem and edit button is disabled Bugs 4 0.4-beta Plugin API
Description

I'm currently writing a plugin extends rcube_addressbook with RoundCube 0.3-stable

But there is something wrong on update/delete/update hooking feature.

search, display, insert plugin features are successfully linked/extended

When i try to delete contacts the plugin class delete() function did not receive any requests.

The update button for a contact is disabled whereas the plugin class store correctly the update() function.

i have builded the class has :

class artica_addressbook_backend extends rcube_addressbook {

public $primary_key = 'ID'; public $readonly = false;

private $filter; private $result;

public function construct(){

$this->ready = true;

}

../..

public function update($id, $save_cols){

print_r($save_cols);

}

function delete($ids){

$this->debug("Delete $ids requested ",FUNCTION); return false;

}

function delete_all(){

$this->debug("delete_all request $ids",FUNCTION);

}

../.. It seems that events are not sended to the plugin for update & delete ?

#1486188 Wrong "Browser does not accept cookies" message if no cookie present yet. thomasb Bugs 5 0.4-beta Plugin API
Description

Hi, I was browsing through the tickets as there are a lot of them concerning cookies, but I didn't found the same problem I have. I freshly installed 0.3 stable with the http-authentication plugin. However, after authentication I get to the login-screen with the error-message "Browser does not accept cookies" (translated from German). Reloading the page (i.e. pressing F5) will take me to the folder and message lists, so I am correctly logged in. Also I will always be logged in correctly when repeating all the steps, except I delete the cookies in my browser or use a new one. So, this is actually a minor annoyance, but bad for the first impression and bad when travelling and using Roundcube from Internet Cafes, as I do for the next three month...

#1486247 add button container in compose template Feature Requests 5 0.3.1 Plugin API
Description

The compose template does not have a container to add buttons. Right now im just doing $('#compose-toolbar').append(button), but it would be nice if one could use the normal button functions.

#1486266 extra hook for message attributes Feature Patches 5 0.4-stable Plugin API
Description

It would be nice if one could attach attributes to a message row that are visible in javascript. This would help a message_highlight plugin for instance. The current message_highlight plugin is more of a source patch specific for that plugin. It would be better to generalize the plugin hook so possible other plugins could use it as well.

If a hook like this gets added, im planning on updating the message_highlight plugin to take advantage of existing RC functionality instead of writing everything from scratch.

ive attached a patch of what this hook could look like.

#1486306 LDAP password plugin doesn't allow to bind anonymously Bugs 5 0.4-beta Plugin API
Description

Sometimes, you don't know the exact DN of an user but you want to bind anonymously so you can look for the user's DN using other fields (like the mail field).

This is done in many LDAP applications like squirrelmail change_ldappass, ejabberd, postfix, …

This should also be possible with the password plugin.

#1486312 message_compose plugin hook doesn't set proper params Bugs 5 0.4-beta Plugin API
Description

Once message_compose plugin hook is executed, it doesn't set proper params using returned value.

It's caused by overwriting

$_SESSION['compose']['param'] = $plugin['param'];

by returned value.

Patch included

#1486353 Changeset 3165 Bug Bugs 5 0.4-beta Plugin API
Description

The changeset 3165 at http://trac.roundcube.net/changeset/3165 contains an error. The new code is positioned wrong. It should be positioned after the "else if ($compose_mode)" not inside of it. As it is now new messages will not trigger the message_compose_body hook which i consider a bug.

#1486364 revision 3178 failes to start Bugs 5 0.4-beta Plugin API
Description

Roundcube fails to start due to an bug in revision 3178.

Index: roundcubemail/program/include/rcube_plugin_api.php =================================================================== --- roundcubemail/program/include/rcube_plugin_api.php (revision 3178) +++ roundcubemail/program/include/rcube_plugin_api.php (working copy) @@ -181,7 +181,7 @@

*/

public function exec_hook($hook, $args = array()) {

  • $args += array('abort' => false);

+ $args[] = array('abort' => false);

$this->active_hook = $hook;

foreach ((array)$this->handlers[$hook] as $callback) {

#1486368 r3102 breaks plugin configuration defaulting thomasb Bugs 3 0.4-beta Plugin API
Description

A number of plugins rely on being able to load a default set of configuration variables, and then overwriting those with a second set. This looks like:

$this->load_config('config/config.inc.php.dist');
if(file_exists("./plugins/forward_as_attachment/config/config.inc.php"))
  $this->load_config('config/config.inc.php');

The 'forward as attachment' plugin is one public plugin that does this, and we have several other in-house plugins that rely on this behavior as well. r3102 broke this behavior by not allowing load_config to overwrite existing properties when called by a plugin.

This is, to us, a major regression.

#1486466 override sender when composing a message Feature Patches 5 0.4-beta Plugin API
Description

please consider making it possible to select the sender identity of a message from a plugin. At the moment message_compose can set all the headers accept 'from'.

#1486469 Make a hook to decide which jquery file should be binded Feature Requests 5 0.4-beta Plugin API
Description

Your recent update to jquery 1.4 broke the calendar plugin. The jquery calendar does not play nice with 1.4 (yet).

So we need urgently a hook to decide if the Roundcube default jquery 1.4 or another jquery file (located in the plugin folder or anywhere else) should be binded.

I don't see a way to make it with any existing hook. I thought about render_page hook but noticed that Roundcube's default js (jquery-xxx.js, app.js, common.js, etc) is inserted into the page after this hook.

#1486493 r3258 breaks imap_init plugin hook Bugs 5 0.4-beta Plugin API
Description

after r3258 it seems the imap_init plugin hook is never executed

#1486548 Hook to change Sent folder on compose message Feature Requests 5 0.4-beta Plugin API
Description

Hello, I'm looking for a way to make Roundcube save sent mails automatically into a time based folder name. It needs to concatenate the Sent special folder name with a time based string, separating each with the folders separator (normally . ). A good place to do that is in compose window: function rcmail_store_target_selection, file program/steps/mail/compose.inc, line 1016 of current roundcube version ( http://trac.roundcube.net/browser/trunk/roundcubemail/program/steps/mail/compose.inc ).

It may be a good idea to put there a hook to let plugins change the normal behavior. The code should be something like that:

function rcmail_store_target_selection($attrib)
{
  $attrib['name'] = '_store_target';
  $select = rcmail_mailbox_select(array_merge($attrib, array('noselection' => '- '.rcube_label('dontsave').' -')));
   /// Change
  $folder =
    rcmail::get_instance()->plugins->exec_hook(
      'message_compose_save_folder',
      rcmail::get_instance()->config->get('sent_mbox'));
   return $select->show($folder, $attrib);
}

Only with this change on trunk there will be a possibility to easily modify normal behavior, instead of hacking main.inc.php, what is nasty enough to try to avoid it:

$rcmail_config['sent_mbox'] = 'Sent.' . date('Y.m');

Plugins will be able to choose (and create if necessary) the final folder where the message will be saved, taking care of user and server preferences. For example, you'll be able to make a plugin that lets you choose where to save sent messages depending on the person it's addressed to and/or organizing the folder into subfolders to organize mails with a time based logic (separating by year and month, for example).

#1486566 Acheter Strattera sur internet Feature Requests 5 0.4-beta Plugin API
Description

http://img339.imageshack.us/img339/3756/sansordonnance.jpg Strattera Générique est utilisé pour traiter le TDAH (trouble de déficit de l'attention / hyperactivité).

prix strattera la atomoxetine strattera tdah atomoxetine online strattera online medicament atomoxetine strattera générique bon marché atomoxetine en ligne du strattera du atomoxetine strattera withdraw atomoxetine vidal medicament strattera chlorhydrate atomoxetine strattera brasil strattera atomoxetine strattera alcool atomoxetine alcool strattera depression atomoxetine canada acheter bon marché strattera en ligne acheter atomoxetine bon marché strattera posologie achat de atomoxetine strattera tablets atomoxetine solubility générique strattera atomoxetine spray strattera retard atomoxetine unidose strattera mood swings achat de atomoxetine en ligne et strattera vente de atomoxetine sur internet generique strattera atomoxétine en france quand strattera tics atomoxetine comprimés achat de strattera atomoxetine tablets strattera lilly atomoxetine biam strattera dosages médicament atomoxetine strattera versus concerta atomoxetin lilly strattera prescription acheter atomoxetine strattera adderall atomoxetine enfant strattera drug order atomoxetine strattera asperger acheter bon marché atomoxetine en ligne strattera effet secondaire au atomoxetine strattera effet secondaire atomoxetine effet secondaire strattera side effects acheter atomoxetine generique medicaments

#1486578 Filtering html tags from message body Feature Patches 5 0.5-beta Plugin API
Description

Hello,

In my company we have to allow forms in some emails. I prepared a patch with allows to create plugins which modify list of allowed tags and attributes. It also passes sender address to plugin. I'm attaching patch and sample plugin.

#1486659 Thunderbird3 style archives Feature Requests 5 0.9-stable Plugin API
Description

Thunderbird3 archives mail by year

Archives 2009 2008 ...

#1486668 plugin hooks for folder settings page Bugs 5 0.4-stable Plugin API
Description

I am trying to implement a plugin to alter the folder list on folders settings page. The problem lies in plugin hooks for altering folder list. I have tried following plugin hooks:

  • list_mailboxes is not used on folder settings page
  • render_mailboxlist is not used on folders settings page either
  • manage_folders is used on folders settings page, but it have only add and remove_column functions in html_table object and makes it quite unusable since it does not allow even listing the html_table object rows or removing rows


There are several solutions:

  • use list_mailboxes hook in folders settings page since it is declared as global hook, but not used on folder settings page
  • alter html_table object to allow altering the html_table by showing/removing rows in the table, so manage_folder plugin hook can remove rows
#1486708 Trigger event listupdate for email search result listing Feature Patches 5 0.4-stable Plugin API
Description

I had to patch app.js (see below) to be able to trigger the event "listupdate" after a search (quicksearch). Beforehand "listupdate" was only called within non filtered "list" actions.

This may be necessary in task address book too.

*** app.js.orig 2010-05-01 15:31:50.000000000 +0200
--- app.js.src  2010-05-01 15:32:55.000000000 +0200
***************
*** 4243,4248 ****
--- 4243,4249 ----

        case 'check-recent':
        case 'getunread':
+       case 'search':
        case 'list':
          if (this.task == 'mail') {
            if (this.message_list && response.action == 'list')
***************
*** 4250,4256 ****
            this.enable_command('show', 'expunge', 'select-all', 'select-none', 'sort', (this.env.messagecount > 0));
            this.enable_command('purge', this.purge_mailbox_test());

!           if (response.action == 'list')
              this.triggerEvent('listupdate', { folder:this.env.mailbox, rowcount:this.message_list.rowcount });
          }
          else if (this.task == 'addressbook') {
--- 4251,4257 ----
            this.enable_command('show', 'expunge', 'select-all', 'select-none', 'sort', (this.env.messagecount > 0));
            this.enable_command('purge', this.purge_mailbox_test());

!           if (response.action == 'list' || response.action == 'search')
              this.triggerEvent('listupdate', { folder:this.env.mailbox, rowcount:this.message_list.rowcount });
          }
          else if (this.task == 'addressbook') {

#1486734 Trigger event listupdate after message removal from list Feature Patches 5 0.4-stable Plugin API
Description

I had to patch app.js (see below) to be able to trigger the event "listupdate" after removing a message from a folder.

*** app.js.orig 2010-05-01 15:31:50.000000000 +0200
--- app.js.src  2010-05-13 21:51:26.000000000 +0200
***************
*** 4226,4231 ****
--- 4226,4234 ----
          this.enable_command('reply', 'reply-all', 'forward', 'delete', 'mark', 'print', 'open', 'edit', 'viewsource', 'download', true);
          } else if (this.message_list)
            this.message_list.init();
+
+       this.triggerEvent("listupdate",{folder:this.env.mailbox,rowcount:this.message_list.rowcount});
+
          break;

        case 'purge':

#1486818 extra hook for dovecot impersonation Feature Requests 5 later Plugin API
Description

Dovecot has a handy feature allowing admins to impersonate users. That can be very useful to see specific problems a user is experiencing without having to ask for their password. It works as follows:

"a001 login username*admin adminpassword"

example: 'a001 login david*cor corspassword'

This will log me into dovecot as user david with the password of user cor.

Id like to make a plugin supporting this feature, but for that i need an extra hook to modify the username prior to login. I guess login() inside rcube_imap_generic.php would work, but it could also be earlier in the function chain. As long as it doesnt interfere with the roundcube settings data (which should still be for user david).

#1486824 message_sent returning null Bugs 5 0.4-stable Plugin API
Description

Hello,

I've found a fault using the message_sent hook - it is returning null, seemingly when $message->getParam('delay_file_io') is true.

I propose replacing $msg_body = fopen($body_file, 'r'); with $msg_body = file_get_contents ($body_file); at line 1365 in program/steps/mail/func.inc

Thanks, Ross

#1486850 new container request Feature Requests 9 0.4-stable Plugin API
Description

Id like to request another container in the mail.html template. Specifically, an empty container at the end of the listcontrols div. There is a listcontrols container, but it's in the middle. Id like to be able to append to it, so my icons get added after the preview pane toggle. This because I think listcontrols and thread controls should be close together, and my unrelated icons should not split them up.

It's not a huge deal, so i understand if you dont want to add too many empty containers.

#1486872 The Plugin Path is wrong Bugs 4 0.5-beta Plugin API
Description

The path to the plugins as set in rcube_plugin_api.php is wrong and resolute in an error:

PHP Error: Failed to load plugin file /var/www/roundcube/pluginsandre_test1/andre_test1.php in /data/roundcubemail-0.4-beta/program/include/rcube_plugin_api.php on line 106 (GET /roundcube/)

Line 32:

public $url = 'plugins/';

and Line 85:

$fn = $plugins_dir->path . DIRECTORY_SEPARATOR . $plugin_name . DIRECTORY_SEPARATOR . $plugin_name . '.php';

give a double slash in the path to the file as you see in the error message.

#1486896 Extend function of user_create hook to edit language field Feature Requests 5 0.4-stable Plugin API
Description

Hello,

Is it possible to extend the return values of the user_create hook to the be able to edit the language? Something like this:

myserver ~ # diff rcube_user_new.php rcube_user.php
409c409
<             $data['user_lang'] ? $data['user_lang'] : $_SESSION['language']);
---
>             $_SESSION['language']);

Best Regards Chris

#1486899 Error message from plugin hooks (eg.identity_delete) alec Bugs 5 0.5-beta Plugin API
Description

If we abort the plugin not to delete identity message 'nodeleteidentiy' pops up. We should be able to pass another message associated to the reason why deletion was aborted.

#1486914 Inconsistent 'abort' argument handling alec Bugs 5 0.5-beta Plugin API
Description

Hook's 'abort' argument handling looks a little bit confusing. Let's check 'group_create' hook:

  $plugin = $RCMAIL->plugins->exec_hook('group_create', array('name' => $name, 'source' => $source));
  if (!$plugin['abort'])
    $created = $CONTACTS->create_group($plugin['name']);
}
  if ($created && $OUTPUT->ajax_call) {
    $created['source'] = $source;
    $OUTPUT->command('insert_contact_group', $created);
  }                                         
  else if (!$created) {
    $OUTPUT->show_message($plugin['message'] ? $plugin['message'] : 'errorsaving', 'error');
  }

What if I want to skip create_group(), but I want to execute code which is executed when $created=true? E.g. I have an own addressbook plugin with groups handling, so I don't want to use $CONTACTS->create_group(), but I want to insert group record in the UI. Do I need to call output commands from the plugin or we could change this behaviour. This is an example, the problem is generic.

#1487718 Add part MIME ID to message_part_* hooks Feature Requests 4 0.5.1 Plugin API
Description

It would be useful if the MIME ID of the message part was passed in to the message_part_before and message_part_after hooks.

This would allow plugins to do things like examine the message structure, parse previously unsupported multipart/alternative subparts, and later replace part text with the output of that parsing.

#1487799 Plugin garbage collecting Feature Requests 5 0.6-beta Plugin API
Description

It would be very useful to have a hook in rcube_session:gc to trigger housekeeping routines for plugins.

I'm not sure if this is possible at all. Looking at rcmail class the session handling is initialized before the plugin api. I doubt if this could be changed easily to make the plugin api accessible in rcube_session::gc for adding a hook there.

If it's too complicate, please close this request - Thanks!

#1487826 password plugin - change system user password via the "pw usermod" command Feature Patches 5 0.8-rc Plugin API
Description

This driver is based on chpasswd.php. It uses "pw usermod" to change system user password on BSD systems.

#1488063 session error still sets task to "mail" Bugs 4 0.7-beta Plugin API
Description

When there is a session error, the task still gets set to "mail" or whatever the task was when the session expired. This causes plugins to be executed as though the user were still logged in.

To reproduce: log in. Delete all Roundcube cookies. Refresh the page and look at the $_SESSION.

#1488138 Can't redirect on invalid session Bugs 5 0.8-stable Plugin API
Description

I'm writting a plugin to use our SSO.

I can't handle invalid RC session error from may plugin. I get default RC login page instead of beeing redirect to my SSO login page.

It seems that bug #1488063 is pretty the same, and the 'ready' hook may help me, but on RC session error, I never reach 'ready' hook call, because of line 188 from index.php.

I join a patch that works for my need.

#1488182 new_messages hook is called incorrectly when 'Check for new mail' button is pressed immediately after user login (m/b problem in mailbox status routines) Bugs 5 0.7-beta Plugin API
Description

I tried newmail_notifier plugin and found a problem. If I click on 'Check for new mail' button first time after login into roundcube, newmail notification is always pops out (I have no new mail in mailboxes at this moment).

--- Here is additional info: my current folderlist is attached in png. 'check mail in all folders' is not set (no difference anyway).

1.Log how new_messages hook is called after first time when 'check for new mail button is pressed'(no new mail exist in this folders):

[11-Nov-2011 20:22:32 +0600]: notify hook: Sent,
[11-Nov-2011 20:22:32 +0600]: notify hook: Spam,
[11-Nov-2011 20:22:32 +0600]: notify hook: Bacula,
[11-Nov-2011 20:22:32 +0600]: notify hook: #konturinfo,
[11-Nov-2011 20:22:32 +0600]: notify hook: Nagios,
[11-Nov-2011 20:22:32 +0600]: notify hook: Public/&BB0EPgQyBD4EQQRCBDg-,
[11-Nov-2011 20:22:32 +0600]: notify hook: Public/&BB8EPgQ0BDQENQRABDYEOgQw-,
[11-Nov-2011 20:22:32 +0600]: notify hook: Uralsib,
[11-Nov-2011 20:22:32 +0600]: notify hook: &BBEEOwQwBDEEOwQw-,

2.Log how new_messages hook is called on standard check recent procedure (each 5 min, no problem here, new mail is in inbox):

[11-Nov-2011 20:41:39 +0600]: notify hook: INBOX,

#1488184 Hook un-register for plugin Feature Patches 5 0.8-rc Plugin API
Description

I'm writing a plugin and I found useful un-register hooks previously registered.

I've attached a possible patch to achieve this.

#1488401 Plugin Localization improvement Feature Patches 5 0.8-rc Plugin API
Description

Most of the plugin localizations are incomplete. I have noticed that the plugin api always defaults to en_US if a language set is missing. This is basically ok because en_US is the "always complete" set.

Nethertheless it should not default to en_US if, f.e., de_DE is present but de_CH is missing. In this case it should load de_DE instead of en_US. Same for pt_BR, if pt_PT is present.

Here is a small patch for class rcube_plugin, method add_texts to archive this behavior:

     foreach (array('en_US', $lang) as $lng) {
       $fpath = $locdir . $lng . '.inc';
       if (is_file($fpath) && is_readable($fpath)) {
         include($fpath);
         $texts = (array)$labels + (array)$messages + (array)$texts;
       }
       // begin mod
       else {
         $atemp = explode('_', $lang);
         if ($handle = opendir($locdir)) {
           while (false !== ($file = readdir($handle))) {
             if ($file != "." && $file != "..") {
               if(strpos($file, '.inc') && substr($file, 0, 2) == 
$atemp[0]){
                 if (is_file($locdir . $file) && is_readable($locdir . 
$file)) {
                   include($locdir . $file);
                   $texts = (array)$labels + (array)$messages + 
(array)$texts;
                   // maybe it would be better not to break and merge 
all the 'sub' langs
                   break;
                 }
               }
             }
           }
           closedir($handle);
         }
       }
       // end mod
     }
#1488655 Quota-hook broken Bugs 5 0.8.2 Plugin API
Description

The Quota-hook seems to be broken when the IMAP-server don't support quota natively. If the server supports quota reporting, modifying the quota with the hook works, but if the server don't support quota modification don't work (the quota function is hidden in the GUI).

#1488761 Add hook_source parameter to the hooks Feature Requests 5 later Plugin API
Description

Hello!

I just want to made a contact_create hook, but I need a reference to the original script. This hook called from

  • program/steps/addressbook/copy.inc
  • program/steps/addressbook/import.inc
  • program/steps/addressbook/save.inc
  • program/steps/mail/addcontact.inc

files, but I only want to use the hook when it's called from mail/addcontact.inc. Currently I changed the original addcontact.inc with this:

$plugin = $RCMAIL->plugins->exec_hook('contact_create', array(
'record' => $contact,
'source' => null,
'hook_source' => 'program/steps/mail/addcontact.inc')
);

Now I can check $args['hook_source'] in my hook. Please add this new feature/parameter to the exec_hook calls.

Thanks.

#1488825 PHP Error: Deprecated hook name. imap_init -> storage_init Bugs 5 later Plugin API
Description

I get a lot of errors like this in logs/errors file:

[20-Nov-2012 12:24:11 +0100]: PHP Error: Deprecated hook name. imap_init -> storage_init in /var/www/mail.domain.tld/web/program/include/rcube_plugin_api.php on line 221 (GET /?_task=mail&_mbox=INBOX)

I noticed these errors in 0.8.2 and now also in 0.8.4.

#1489000 Forward as attachment does not work if additional attachment is added by hook Bugs 5 0.9-stable Plugin API
Description

I'm using 0.9-rc.

I'm adding a vcard by message_compose hook:

  function message_compose($args) 
  {  
    if($file = $this->create_vcard_dummy()){
      $args['attachments'][] =array('path' => $file, 'name' => "vcard.vcf", 'mimetype' => "text/vcard");
    }
    return $args; 
  }

The returned arguments look are:

[19-Mar-2013 06:30:51 +0100]: array (
  'id' => '19241310875147f80b97c32',
  'param' => 
  array (
    'forward_uid' => '53670,53666,53665,53634,53615',
    'mbox' => 'INBOX',
    'attachment' => '1',
    'extwin' => '1',
    'sent_mbox' => 'Sent',
  ),
  'mailbox' => 'INBOX',
  'abort' => false,
  'attachments' => 
  array (
    0 => 
    array (
      'path' => 'C:/__masked__/temp/8d1870bdf0503b9fdc86a14fcbc13c1e.vcf',
      'name' => 'vcard.vcf',
      'mimetype' => 'text/vcard',
    ),
  ),
)

Result: Attachment is added and forwarded messages are missing.

#1483821 Support for seting autoresponder from RC Feature Requests 5 later Plugins
Description

It would be really useful if you were able to set an away message for an auto responder similar to how squirrel mail works. I realize this is fuctionality that is provided by the mail server. However, an interface for each use to configure and enable an auto responder would be really useful.

#1484157 Forward as attachment Feature Requests 5 0.4.1 Plugins
Description

Now a mail forwarded is always included in the new mail, but I would like forward mails as attachments in order to train a spam filter with the attachment.

#1485882 Allow selectively disabling rules within a single sieve script Feature Requests 5 0.4-beta Plugins
Description

At times it can be very useful to allow a user to disable processing of a single rule within a sieve script, but still keep the rule for future use.

The actual implementation of this differs between clients, however I did find an IETF thread on this discussing commenting out the rule, versus using an "if false { }" construct, but it doesn't seem to have progressed beyond the thread.

http://www.imc.org/ietf-mta-filters/mail-archive/msg03893.html

#1485963 CPanel Change Password Plugin Feature Patches 5 0.3-stable Plugins
Description

I took one of the cpanel password change patches for v0.2 and streamlined/simplified it into a 0.3 plugin driver.

Location: plugins/password/drivers/cpanel.php

There is one line that may need to be configured. It could be moved from the cpanel driver file to the config.inc.php file in the password directory.

#1486048 DirectAdmin control panel driver for Password plugin Tasks 5 0.3-stable Plugins
Description

I've finished and exhaustively tested the DirectAdmin? control panel driver for Password plugin. It works fine in latest RC trunk (2861).

This driver uses a third part GPL socket communication class recommended by DirectAdmin? and exhaustively tested by me and another DirectAdmin? users (http://www.directadmin.com/api.html, item "Php Communication class for DA's API").

Please add this driver to RC Password Plugin.

Attached files: plugins/password/config.inc.php.dist.DIFF plugins/password/README.DIFF plugins/password/drivers/directadmin.php

Thanks

#1486054 Hook in http_request/http_post Feature Requests 5 0.4-stable Plugins
Description

Hello,

I've found the following event trigger extremely useful, it's basically a copy of the plugin event triggered near the top of the command function in app.js.

    // trigger plugin hook
    var event_ret = this.triggerEvent('httpreq_'+action, querystring);
    if (typeof event_ret != 'undefined') {
      // abort if one the handlers returned false
      if (event_ret === false)
        return false;
      else
        querystring = event_ret;
    }

It allows plugins to either run some code when a request is sent, modify the querystring before the request is sent, or stop if from sending at all and let it's own code take over.

It would be great if this type of hook could be added to http_request and http_post but changing the prefix of the event name so plugins can tell the difference if the action is the same.

Thanks! Ryan

#1486055 Ldap Password Plugin extra user dn options Feature Patches 5 0.3-stable Plugins
Description

This is a patch that adds a %name and a %domain option to the userdn when using the ldap driver.

#1486062 Password Strength options alec Feature Patches 5 0.3.1 Plugins
Description

I made a patch that allows a few password strength checks. Minimum password length, and a check to make sure that there is at least one number and punctuation character present.

#1486067 Password Plugin SQL driver Bugs 5 0.3-stable Plugins
Description

The password plugin does not work properly if the database connection is not persistent ($rcmail_configdb_persistent? = FALSE;).

Reason: RoundCube session management tries to access "mailserver" database.

MDB2 Error: no such table (-18): _doQuery: [Error message: Could not execute statement]n[Last executed query: PREPARE mdb2_statement_mysql_3b18ec83f9ffe2b61cece10f4255b9aea2f7f71ee FROM 'SELECT vars FROM session
n WHERE sess_id=?']n[Native code: 1146]n[Native message: Table 'mailserver.session' doesnt exist]n, referer: http://domain.net/?_task=settings&_action=plugin.password

See (German): http://www.roundcubeforum.net/deutsch/5186-passwort-aendern-ohne-logout.html

#1486070 Translation error in nl_NL Bugs 5 0.3-stable Plugins
Description

The current translation for nl_NL doesn't match the behaviour and the English counterpart.

#1486075 Archive Plugin: Localization fails if Archive folder is a subfolder Bugs 5 0.3-stable Plugins
Description

... nothing more to say.

#1486078 managesieve does not allow more than one match Bugs 5 0.4-beta Plugins
Description

Currently, all sieve rules are created as

if ... action
elsif ... vacation
elsif ... action

Now, if one wants to enable a "vacation" rule like in the example above, this would prevent any other rules from ever being tested. The result is: vacation message is send, but all mails end up in the INBOX, no matter if a matching rule exist.

IMO, it would be better (and more flexible for advanced users) if the rules would be written as

if ... ; action; "stop"
if ...; vacation
if ... ; action; "stop"

where the "stop" should be optional, but the default for every new rule. IIRC, something like this is done in the "avelsieve" plugin for squirrelmail, presented as a checkbox.

Note: See TracQuery for help on using queries.