6.0.0-beta1
8/10/25

[#1847] attachments should download instead of invoking view if $mime_drivers['horde']['blah']['location'] is unset
Summary attachments should download instead of invoking view if $mime_drivers['horde']['blah']['location'] is unset
Queue IMP
Queue Version 4.0.3
Type Enhancement
State Rejected
Priority 1. Low
Owners
Requester liamr (at) umich (dot) edu
Created 04/21/2005 (7416 days ago)
Due
Updated 04/22/2005 (7415 days ago)
Assigned
Resolved 04/22/2005 (7415 days ago)
Milestone
Patch No

History
04/22/2005 07:47:34 AM Jan Schneider Comment #3
State ⇒ Rejected
Reply to this comment
Yes, and that's the expected behaviour, and the one that makes most 
sense to me.
04/21/2005 09:38:17 PM liamr (at) umich (dot) edu Comment #2 Reply to this comment
Or would that be confusing UI-wise?  I see that if you comment out the



$mime_drivers['horde']['blah']['location']



line, it shows you that attachment info, w/o the filename being a 
link.. forcing the user to use the actual download icon.
04/21/2005 09:28:04 PM liamr (at) umich (dot) edu Comment #1
State ⇒ New
Priority ⇒ 1. Low
Type ⇒ Enhancement
Summary ⇒ attachments should download instead of invoking view if $mime_drivers['horde']['blah']['location'] is unset
Queue ⇒ IMP
Reply to this comment
I think this was kind of discussed on the email list in this thread..



     http://marc.theaimsgroup.com/?l=imp&m=111298992719086&w=2



and I couldn't really tell from Michael Slusarz's suggestion...



     http://marc.theaimsgroup.com/?l=imp&m=111299329404449&w=2



if some sort of "fix" had been added to HEAD.



My suggestion is to change the behavior of the link that contains the 
attachment's file name when the mime driver's 'location' parameter is 
empty or unset.



Eg... say horde/config/mime_drivers.php says..



     $mime_drivers['horde']['msword']['location'] = '/usr/bin/wvHtml';



When a user gets a word attachment, the see something like..



           2          example.doc          [application/msword]          54 KB          Download



It shows the word icon, and when they follow the "example.doc" link, 
IMP will try to invoke wvHtml, displaying an error message if it's not 
installed.



Say there are users who still want the word icon to be displayed (so 
they don't comment out /remove the "msword entry" from 
$mime_drivers_map['horde']['registered']) , but don't want to install 
wvHtml? What if setting



     $mime_drivers['horde']['msword']['location'] = '';



changed the default behavior of the "example.doc" link from "invoke 
wvHtml" to "download this file (using the horde download mechanism)?

Saved Queries