[horde] This message part cannot be viewed because it is too large.

Simon B simon.buongiorno at gmail.com
Tue Jul 15 14:11:15 UTC 2025


On Tue, 15 Jul 2025 at 14:09, Jean Charles Delépine
<delepine at u-picardie.fr> wrote:
>
> Hello,
>
> Quoting Simon B <simon.buongiorno at gmail.com>:
>
> > Hi Ralf and the other developers :)
> >
> > I get this message for plain text emails and I am baffled because the
> > plain-text size is a very reasonable less than 2MB.
> >
> > [text/plain] Text (1.7 MB)
> > Warning
> > This message part cannot be viewed because it is too large.
> > Click to download the data.
>
>
> limit_inline_size defaults to 1 MB in mime_drivers.php.
> Your part is 1.7MB.
>
> To change the default edit your imp/config/mime_drivers.local.php and add :
> <?php
> $mime_drivers['imp']['image/jpeg']['limit_inline_size'] = 2097152;

Hi Jean Charles,

Thanks for the quick response, but it is not having an effect.

I tried also with
#$mime_drivers['imp']['text/plain']['limit_inline_size'] in case you
had made an error with the mime type, but that does not change the
outcome.

I also tried text/enriched and text/html - also with no success.

27 $mime_drivers['imp']['text/plain']['limit_inline_size'] = 4194304;
 28 $mime_drivers['imp']['text/html']['limit_inline_size'] = 4194304;
 29 $mime_drivers['imp']['text/enriched']['limit_inline_size'] = 4194304;
 30 $mime_drivers['imp']['image/jpeg']['limit_inline_size'] = 4194304;

Interestingly, a blank mime_drivers.local.php with incorrect ownership
(root:root, instead of www-data:www-data) does cause the whole mail to
load - but with no line breaks!  In any email, whether plain-text or
html.

Simon


More information about the horde mailing list