Cor Bosman | 17 Dec 19:30 2014

[RCD] bug in 1.0 branch

Hey all, the 1.0 branch has quite an annoying bug. If you email someone the following text in the body, rc will interpret it as a uuencoded message and make it a broken attachment.

"foobar begin 2015 foobar2"

This is fixed in 1.1 because of a seemingly/somewhat unrelated commit

Is 1.1 around the corner, and if not, any idea if this could be fixed in 1.0? We have patched it locally because of customer complaints.


Roundcube Development discussion mailing list
dev <at>
Chris Simon | 3 Dec 16:05 2014

[RCD] Help needed


If this has already been posted, i'm sorry, but the mailinglist isn't posting my questions and i don't get any verification that it has been posted (although that option is enabled in the mailinglist manager page)

I need some help developing my own plugin.
The basic functionality of the plugin is already working, but it currently lacks advanced settings.
I already have some basic settings, but to go more advanced, i wopuld like to add a third column in the settings page between te normal settings column (the small left one) and the actual settings (the big white one on the right) just like the column when you choose identities (where the different identities are listed) or responses (where the different responses are listed)

Can someone provide me with some help as how to make this??


With kind regards,


Roundcube Development discussion mailing list
dev <at>
martijn.thie | 27 Nov 14:02 2014

[RCD] Response on ticket #1489838 “separate mobile interface is needed”

As a response on the ticket: #1489838 “separate mobile interface is needed” (


First of all, I agree... Mobile/tablet interface should be there in the standard product, as a lot of people are more and more using tablets and mobiles as their primary device.


About a solution...

I guess one would first need to make a choice whether to implement Responsive Design in Larry or to select another template/theme based on the device-type using the user-agent string.


Both solutions have advantages and drawbacks.

Selecting a different template based on the device type, gives you the possibility to create separate functionality per device. Some functions should work a little different for a tablet then they should for a mobile device. So, in some cases that might require different javascript calls or so. The major drawback is, that you're always behind on supporting all devices. To stay compatible, it needs effort around the clock.


On the other hand, Responsive Design is the choice for a future-ready template. It doesn't care about which device you are on, it just looks at the capabilities of the device and adapts the design along. It is a pure CSS solution. That is good, but that also means that you don't get to have separate functionality.

The major drawback to Responsive Design is that the CSS structure can be harder to maintain.


That all said... I have made a first attempt at enabling Responsive Design for the default Larry template. In about one day, I've succeeded to redesign the email screen for the most part.

The boundaries I used for my attempt was to only use one CSS file to do it all. This one CSS file is simply added to the default CSS includes.


The biggest problem that I faced, was that not all styling is done in a CSS file, but for some elements CSS is added directly to the element using the style attribute. In some cases I had to entirely corrupt the CSS of some elements to undo the CSS that was put into the style attribute.


I’m not sure if and how attachments are processed by this mailinglist (as this is my first post), but I’ve attached a zip file containing the css. Also added three screenshots of the result on my Android device. The screenshots show the Dutch version of Roundcube, but it should give you an impression.


In order to try it out and see how Responsive Design works, just add the css file (mystyle.css) to “root-of-roundcube/skins/larry” and add the following line to the “root-of-roundcube/skins/larry/includes/links.html”:

<link rel="stylesheet" type="text/css" href="/mystyle.css" />

Reload the page in your browser and adjust the size of your browser window to a smaller width. Currently (for testing purpose) the width at which the Responsive Design kicks in is at 1111px.


Please keep in mind that this is just a simple try-out from my part. It’s incomplete (at best) and the result of only one day of trying. A better result is possible by adding an additional javascript file for adjusting some html elements before the Responsive CSS kicks in. And an even better result can be get by removing the style attributes from the HTML and adjusting the HTML of Larry in small ways to better adopt smaller windows.





Attachment ( application/x-zip-compressed, 2695 bytes
Roundcube Development discussion mailing list
dev <at>
Scott Kidder | 26 Nov 21:17 2014


A user on the forums has pointed out to me that is now loading a medical group
site. I'm guessing this isn't correct and should be fixed.

-Scott Kidder

Roundcube Development discussion mailing list
dev <at>

Dino Blazeka | 18 Nov 10:28 2014

[RCD] Managesieve plugin vacation

Hello everyone.

I've posted my question to the forum but no one answered so I'll try with this mailing list. I want to know if there is any way to make vacation part of managesieve plugin write it's contents to an arbitrary sieve script.

In our system sieve rules are complex and are divided in many scripts. Main script which is always active just includes all other scripts. I do not want Managesieve plugin writing into it. I want it to write into the script named in the config, if possible.

Thank you for your advice
Roundcube Development discussion mailing list
dev <at>
Michael Heydekamp | 16 Nov 00:48 2014

[RCD] PDF attachment not shown as attachment

I received a message with a PDF attachment of 20 MB which isn't shown as
attachment in the message list (the paper clip icon is missing).

Looking at the source of the message, the structure looks like this:

> Content-Type: multipart/alternative; boundary="Apple-Mail=_E26C74AC-94C5-415E-BA83-E2830C22D7E4"

[... now the body: ...]

> --Apple-Mail=_E26C74AC-94C5-415E-BA83-E2830C22D7E4
> Content-Transfer-Encoding: quoted-printable
> Content-Type: text/plain;
>         charset=utf-8

[... Text part ...]

> --Apple-Mail=_E26C74AC-94C5-415E-BA83-E2830C22D7E4
> Content-Type: multipart/mixed;
>         boundary="Apple-Mail=_BD2C8A48-FD16-4995-B226-8C85EEDEA387"

> --Apple-Mail=_BD2C8A48-FD16-4995-B226-8C85EEDEA387
> Content-Transfer-Encoding: quoted-printable
> Content-Type: text/html;
>         charset=utf-8

[... HTML part ...]

> --Apple-Mail=_BD2C8A48-FD16-4995-B226-8C85EEDEA387
> Content-Disposition: inline;
> 	filename="Nordkap Recall Teil 1.pdf"
> Content-Type: application/pdf;
> 	x-mac-hide-extension=yes;
> 	x-unix-mode=0644;
> 	name="Xxxxxxx Xxxxxx Teil 1.pdf"
> Content-Transfer-Encoding: base64

[... b64-encoded attachment ...]
> --Apple-Mail=_BD2C8A48-FD16-4995-B226-8C85EEDEA387
> Content-Transfer-Encoding: quoted-printable
> Content-Type: text/html;
>         charset=utf-8

[... another HTML part (?!) ...]

> --Apple-Mail=_BD2C8A48-FD16-4995-B226-8C85EEDEA387--

> --Apple-Mail=_E26C74AC-94C5-415E-BA83-E2830C22D7E4--


Michael Heydekamp
Roundcube Development discussion mailing list
dev <at>
Michael Heydekamp | 13 Nov 17:39 2014

[RCD] Two issues with IE8 and git-master

I'm not using IE8 that often anymore, but from time to time I can't avoid
it. Two issues I do currently remember:

1) Although my default setting is top posting, the signature is placed at
   the bottom of the message. The cursor is placed at the top, though.
   With FF all is OK.

2) When I want to open a PDF attachment, the browser often (always?) hangs.
   I believe this issue had been discussed already...? If more details
   required, please ask.


Michael Heydekamp
Roundcube Development discussion mailing list
dev <at>
Lorenzo Petracchi | 12 Nov 15:37 2014

[RCD] managesieve vacation


In managesieve plugin,, I have enabled separate management
interface for vacation responses (out-of-office) by setting this:
$config['managesieve_vacation'] = 1

Now I need to insert in every script this code:

if allof ( not exists ["list-help", "list-unsubscribe", "list-subscribe",
"list-owner", "list-post", "list-archive", "list-id", "Mailing-List"], not
header :comparator "i;ascii-casemap" :is "Precedence" ["list", "bulk",
"junk"], not header :comparator "i;ascii-casemap" :matches "To" "Multiple
recipients of*" )

In this way when a user receive a mail from a list the mail-from address
never receive back the vacation message, and this is what my organization

We need this feature before leaving our old horde-imp webmail, where I was
able to activate this option.

Does anybody knows how may I do this?

Roundcube Development discussion mailing list
dev <at>

Thomas Bruederli | 10 Nov 21:31 2014

[RCD] Roundcube Webmail 1.1-beta available

Hello folks

We’re proud to announce that the beta release of the next major
version 1.1 of Roundcube webmail is now available for download and
testing. With this milestone we introduce a bunch of new features and
some clean-up with the 3rd party libraries Roundcube uses:

- Allow searching across multiple folders
- Improved support for screen readers and assistive technology using
WCAG 2.0 andWAI ARIA standards
- Support images in HTML signatures (copy & paste)
- Added namespace filter and folder searching in folder manager
- New config option to disable UI elements/actions
- Stronger password encryption using OpenSSL
- Support for the IMAP SPECIAL-USE extension
- Support for Oracle databases
- Moved 3rd party libs to vendor directory, managed by Composer

And of course plenty of small improvements and bug fixes.

IMPORTANT: with this version, we dropped support for PHP < 5.3.7 and
Internet Explorer < 9.
IE7/IE8 support can be restored by enabling the 'legacy_browser' plugin.

See the complete Changelog at
and download the packages from

Please note that this is a beta release and we recommend to test it on
a separate environment.
And don’t forget to backup your data before installing it.

Roundcube Development discussion mailing list
dev <at>
Benoit Panizzon | 6 Nov 16:22 2014

[RCD] IMAP ID Bug found in Roundcube 1.0.1 in rcube_imap.php


I habe been desperately trying to get Roundcube to send the correct 
REMOTE_ADDR of the connecting client to a dovecot IMAP Server which supports 
remote IP logging by x-originating-ip ID command and login_trusted_networks 
As google shows, that not only I had this problems, I share the solution and 
hope one of the developers reading here could submit that small fix:

Here are the changes needed for it to work

rcube_imap.php, define the ident option not only if debugging is enabled, and 
add x-originating-ip to the array.

        if ($this->options['debug']) {
        } // <= Added

            $this->options['ident'] = array(
                'name'    => 'Roundcube',
                'version' => RCUBE_VERSION,
                'php'     => PHP_VERSION,
                'os'      => PHP_OS,
                'x-originating-ip'      => $_SERVER['REMOTE_ADDR'], // <=Added
                'command' => $_SERVER['REQUEST_URI'],
//        }

Now this works as expected and dovecot (including it's post-login script) are 
getting the IP of the connecting webbrowser and not the one of the webserver, 
if the webserver's IP is in login_trusted_networks.

Benoit Panizzon

I m p r o W a r e   A G    -    

Zurlindenstrasse 29             Tel  +41 61 826 93 07
CH-4133 Pratteln                Fax  +41 61 826 93 02
Schweiz                         Web
Roundcube Development discussion mailing list
dev <at>

Sergio Carrasco Mayans | 3 Nov 10:12 2014

[RCD] Using javascript from message hooks

Hello, I tried sending a question through nabble but it seems there's a
problem since it states it isn't accepted even though i'm already
registered (and it doesn't show in history, so I think it won't be

I've been using command events, but i'm not able to find out how to use it
from a message hook. What I have right now is first a hook to
'message_part_after' and I want to call a command from inside the called
function (the call to the function is correct since it raises a flag I've
put there).

In other places I use  $this->rcmail->output->command rcmail being a
rcmail::getinstance, but this doesn't seem to work here (I have an error
in the javascript console stating that rcmail.functionname is not a

I also tried output directly, but to no avail. Is something changed when
calling commands from the showing a mail action? The js was included
through $this->include_script in the beginning of my php. All the examples
I've found in plugins are more of a command in a button, not directly
executing the script from the read message action.

Right now I'm using directly a script inside the php, but I'd like to know
how to call the event.


Sergio Carrasco Mayans
sergioc <at>

Roundcube Development discussion mailing list
dev <at>