[horde] This message part cannot be viewed because it is too large.
Jean Charles Delépine
delepine at u-picardie.fr
Tue Jul 15 15:12:28 UTC 2025
Quoting Simon B <simon.buongiorno at gmail.com>:
> 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 made two mistakes:
- There's no ['imp'] section in mime_drivers.php for message body rendering.
- image/jpeg' isn't relevant to your problem.
In imp/config/mime_drivers.php you'll find:
$mime_drivers = array(
/* Plain text viewer. */
'plain' => array(
'inline' => true,
'handles' => array(
'application/pgp',
'text/plain',
'text/rfc822-headers'
),
'limit_inline_size' => 1048576,
So in your case, this should do the trick:
$mime_drivers['plain']['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
--
Service systèmes et réseaux - DISI
Université de Picardie Jules Verne
5, rue du moulin neuf - 80000 Amiens
More information about the horde
mailing list