[horde] disable preview for zip files

Jens Wahnes wahnes at uni-koeln.de
Fri Feb 4 22:25:50 UTC 2022


A. Schulze wrote:
> are there any hint's who to disable preview for large zip files?

I was facing a similar issue some time ago.  As far as I recall, I could 
not find a way to disable "preview" of archive file attachments in 
emails in a customized way, like I was hoping for.

What I ended up doing was this:

---------------------------------
<?php

   unset($mime_drivers['zip']);
   unset($mime_drivers['rar']);

---------------------------------

I put a few lines like these into "mime_drivers.local.php" in Horde's 
config directory, not Imp's config directory.  Not sure about the 
directory where your file resides in your example, that looked a bit odd 
to me.

The above configuration does achieve the effect of avoiding processing 
of potentially large archive files, but it's not the "made to measure" 
solution I'd hope for, as it disables processing of such files 
completely.  So if someone has got a working example how to do this with 
greater precision, I'm all ears.


Jens


More information about the horde mailing list