# Roundcube mods to config.inc.php

**URL:** <https://discourse.mailinabox.email/t/roundcube-mods-to-config-inc-php/9084>\
**Category:** Improvements\
**Created:** [May 11, 2022, 12:52am UTC](https://discourse.mailinabox.email/t/roundcube-mods-to-config-inc-php/9084 "2022-05-11T00:52:32Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![stylnchris](https://discourse.mailinabox.email/user_avatar/discourse.mailinabox.email/stylnchris/32/2189_2.png) [@stylnchris](https://discourse.mailinabox.email/u/stylnchris)\
**Post date:** [May 11, 2022, 12:52am UTC](https://discourse.mailinabox.email/t/roundcube-mods-to-config-inc-php/9084/1 "2022-05-11T00:52:32Z")

</div>

consider adding the following to /usr/local/lib/roundcubemail/config/config.inc.php ?

```auto
$config['htmleditor'] = 1; # enables html editor by default
$config['show_images'] = 2; #displays images by default
$config['session_lifetime'] = 480; #changes session auto log off to 8 hours ( guess this is debatable) 
$config['login_rate_limit'] = 5; #rate limits 5 attempts to log into roundcube before banning you for 1 minute
$config['search_mods'] = array('*' => array('subject'=>1, 'from'=>1, 'to'=>1, 'cc'=>1, 'bcc'=>1, 'body'=>1)); # enables search that works much better by default

```

---

<div class="post-metadata">

**Author:** ![openletter](https://discourse.mailinabox.email/letter_avatar_proxy/v4/letter/o/f1d935/32.png) [@openletter](https://discourse.mailinabox.email/u/openletter)\
**Post date:** [May 11, 2022, 2:05am UTC](https://discourse.mailinabox.email/t/roundcube-mods-to-config-inc-php/9084/2 "2022-05-11T02:05:31Z")

</div>

You could try submitting a PR if you already have the changes figured out.

I’m not sure the benefit of the login rate limit, since MiaB has Fail2Ban and people with bots are likely hitting on the SMTP/IMAP login.

---

<div class="post-metadata">

**Author:** ![miabuser](https://discourse.mailinabox.email/letter_avatar_proxy/v4/letter/m/eb9ed0/32.png) [@miabuser](https://discourse.mailinabox.email/u/miabuser)\
**Post date:** [May 11, 2022, 9:46am UTC](https://discourse.mailinabox.email/t/roundcube-mods-to-config-inc-php/9084/3 "2022-05-11T09:46:29Z")

</div>

> [@stylnchris](#):
>
> `$config['show_images'] = 2; #displays images by default`

This is bad practice for privacy reasons and shouldn’t be the default. But users can enable it in the settings of Roundcube on a per account / user basis.

---

<div class="post-metadata">

**Author:** ![stylnchris](https://discourse.mailinabox.email/user_avatar/discourse.mailinabox.email/stylnchris/32/2189_2.png) [@stylnchris](https://discourse.mailinabox.email/u/stylnchris)\
**Post date:** [May 11, 2022, 1:21pm UTC](https://discourse.mailinabox.email/t/roundcube-mods-to-config-inc-php/9084/4 "2022-05-11T13:21:02Z")

</div>

I respectfully disagree. I think it makes the webmail client feel **ancient**. Most modern webmail loads images and html by default. Maybe this is just something I’ve gotten used to. Id really like to hear from others though… To me I feel like it should be the other way around, this should be the default behavior and if you want to set it for not doing this by default then that should be the exception.

I realize that this project has always had it setup the other way so moving the user base could be an issue if more individuals believe it should be your way, which is why I doubt submitting a PR would get me a great result.

I am curious though… how many people would expect HTML and Images to load by default… Please reply.

😀

---

<div class="post-metadata">

**Author:** ![openletter](https://discourse.mailinabox.email/letter_avatar_proxy/v4/letter/o/f1d935/32.png) [@openletter](https://discourse.mailinabox.email/u/openletter)\
**Post date:** [May 11, 2022, 1:25pm UTC](https://discourse.mailinabox.email/t/roundcube-mods-to-config-inc-php/9084/5 "2022-05-11T13:25:49Z")

</div>

I think the setting makes it default to not private and other webmail systems that are default not private are equally undesirable. It should be user choice, because the remote content is explicitly tracking tools.

---

<div class="post-metadata">

**Author:** ![S4\_Hosting](https://discourse.mailinabox.email/user_avatar/discourse.mailinabox.email/s4_hosting/32/1465_2.png) [@S4\_Hosting](https://discourse.mailinabox.email/u/S4_Hosting)\
**Post date:** [May 12, 2022, 5:18am UTC](https://discourse.mailinabox.email/t/roundcube-mods-to-config-inc-php/9084/6 "2022-05-12T05:18:58Z")

</div>

Security and bandwidth wise I think that images should probably not be loaded by default and that is fine.

The html editor is a different thing, I think that probably should be on by default because it’s just a more useful writing experience and doesn’t come with any big issues attached - I don’t think that there are many people out there nowadays who can only receive plain text mails.

---

<div class="post-metadata">

**Author:** ![openletter](https://discourse.mailinabox.email/letter_avatar_proxy/v4/letter/o/f1d935/32.png) [@openletter](https://discourse.mailinabox.email/u/openletter)\
**Post date:** [June 28, 2022, 2:09pm UTC](https://discourse.mailinabox.email/t/roundcube-mods-to-config-inc-php/9084/7 "2022-06-28T14:09:49Z")

</div>

> [@S4\_Hosting](#):
>
> The html editor is a different thing, I think that probably should be on by default because it’s just a more useful writing experience and doesn’t come with any big issues attached - I don’t think that there are many people out there nowadays who can only receive plain text mails.

This issue comes out in a different way, and it is that there are still mobile applications that display many HTML messages poorly by making the text way to small to read. I have experienced this with the default Android mail app that for whatever reason displays plain text messages with an easily readable font size.

I have noticed several of the large newsletters I subscribe to switch to using plain text from HTML, and I suspect this is part of the reason (although possibly it could also be spam filters, but I don’t have experience here).

---

<div class="post-metadata">

**Author:** ![stylnchris](https://discourse.mailinabox.email/user_avatar/discourse.mailinabox.email/stylnchris/32/2189_2.png) [@stylnchris](https://discourse.mailinabox.email/u/stylnchris)\
**Post date:** [June 28, 2022, 2:56pm UTC](https://discourse.mailinabox.email/t/roundcube-mods-to-config-inc-php/9084/8 "2022-06-28T14:56:46Z")

</div>

basically I came to the conclusion that I will be changing this after each upgrade to fit my needs.

Maybe Ideally during the install process some questions could be answered that makes these changes happen based on personal preference or some kind of answer file.

I’m not a programmer and don’t have the skills to do the leg work on coding that though.

So for now, I guess we could close this thread.

---

<div class="post-metadata">

**Author:** ![system](https://discourse.mailinabox.email/uploads/default/original/2X/4/4d0933d13c456b7e57f296aa6cc344525b6f0c70.png) [@system](https://discourse.mailinabox.email/u/system)\
**Post date:** [July 11, 2022, 12:53am UTC](https://discourse.mailinabox.email/t/roundcube-mods-to-config-inc-php/9084/9 "2022-07-11T00:53:25Z")

</div>

This topic was automatically closed after 61 days. New replies are no longer allowed.
