Quoting SSRI <ssri_...@u-paris2.fr>:
We have to tried to disable Zip file preview by using the inline
parameter in both config/mime_drivers.local.php and
imp/config/mime_drivers.local.php :
'zip' => array(
'inline' => false,
However, previewing zip files still works.
As expected. 'inline' has to do with inline rendering of the ZIP
file itself. There is no practical way of viewing zip data on a
browser at this time, so 'inline' doesn't actually do anything (you
can actually set to true and nothing will change).
The "preview" of the zip file - better described as a listing of
the ZIP contents - is not rendering the ZIP data directly. Thus
the 'inline' option has no effect on this view.
A better example is images. If you set 'inline' => true, all
images will be directly displayed at full size within the message
page. If 'inline' => false, you will only see a thumbnail of the
image.
Ok.
The only way to disable it was to set :
'zip' => array(
'disable' => true,
in both config/mime_drivers.local.php and imp/config/mime_drivers.local.php
Why do you have to set disable to true in both files while it is
said in config/mime_drivers.php that "Individual Horde applications
can override these settings in their config/mime_drivers.php files" ?
They *are* overriden.
If both Horde and IMP define an image viewer, and IMP's viewer is
enabled, it controls regardless of the Horde setting. Thus, IMP has
overriden horde's setting.
If IMP's driver is disabled but Horde's isn't, then it falls back to
the Horde driver. That is also the correct behavior. (If you don't
want this, then you should disable all viewers at the horde level and
selectively activate them at the application level).
michael
___________________________________
Michael Slusarz [slus...@horde.org]
--
imp mailing list
Frequently Asked Questions: http://wiki.horde.org/FAQ
To unsubscribe, mail: imp-unsubscr...@lists.horde.org