[horde] This message part cannot be viewed because it is too large.
Simon B
simon.buongiorno at gmail.com
Wed Jul 16 10:43:52 UTC 2025
On Tue, 15 Jul 2025 at 17:12, Jean Charles Delépine
<delepine at u-picardie.fr> wrote:
>
>
> 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;
>
Hi Jean,
completely logical, but it is not working.
If I have that line, the mail in question fails to load at all - with
the error "Error communicating with the Server" (although all the
other emails under 1MB seem to load just fine.
The same happens if I remove/comment the file and change the value in
the actual mime_drivers.php - so I am not sure if that is a clue.
I also note that all the *.local.php files under
vendor/horde/imp/config are actually symlinked from /var/config/imp
find /usr/share/2024-composer-horde6/ -type f -iname "mime_drivers*.php"
/usr/share/2024-composer-horde6/vendor/horde/turba/config/mime_drivers.php
/usr/share/2024-composer-horde6/vendor/horde/imp/config/mime_drivers.php
/usr/share/2024-composer-horde6/vendor/horde/horde/config/mime_drivers.php
/usr/share/2024-composer-horde6/var/config/turba/mime_drivers.php
/usr/share/2024-composer-horde6/var/config/imp/mime_drivers.local.php
/usr/share/2024-composer-horde6/var/config/imp/mime_drivers.php
So that is where I currently also have my (commented and inactive)
mime_drivers.local.php - with the same file permissions as the others.
Shouldn't this be configurable in the Horde (or Imp) preferences?
Regards
Simon
> > 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