Summary | S/MIME Content-Disposition not inline |
Queue | Horde Framework Packages |
Type | Enhancement |
State | Resolved |
Priority | 2. Medium |
Owners | slusarz (at) horde (dot) org |
Requester | ctnpublic-horde (at) yahoo (dot) com |
Created | 11/19/2004 (7556 days ago) |
Due | |
Updated | 11/23/2004 (7552 days ago) |
Assigned | 11/19/2004 (7556 days ago) |
Resolved | 11/23/2004 (7552 days ago) |
Milestone | |
Patch | No |
State ⇒ Resolved
I have convinced myself that it does make a lot of sense to view
received S/MIME encrypted messages with dispositon 'attachment'
inline. However, this would require a bit of an API change in
MIME_Viewer and MIME_Contents (basically allowing an individual
MIME_Viewer to override a given Content-Disposition) and since we are
in a featrure freeze, this will have to wait until after we release
the stable versions. I have put this into the horde/docs/TODO file.
State ⇒ Assigned
be if no Content-Disposition is defined - We have chosen 'attachment'
for a variety of reasons. *Never* honoring the Content-Disposition
header, as your patch suggests, is incompatible with RFC 2183. If the
user wants us to display a MIME part as an attachment, there is no
reason we should go against their wishes.
A correct fix may be to look at our S/MIME implementation and
determine if it is desirable to send as 'inline' instead of
'attachment'.
State ⇒ New
Priority ⇒ 2. Medium
Type ⇒ Enhancement
Summary ⇒ S/MIME Content-Disposition not inline
Queue ⇒ Horde Framework Packages
Content-Disposition is attachment. As such,
framework/MIME/MIME/Contents.php::canDisplayInline() currently
disallows any possibility of such a message being displayed inline.
Content-Disposition is advisory anyway. Suggest not relying on it to
determine inline-ability, e.g.:
Index: framework/MIME/MIME/Contents.php
===================================================================
RCS file: /repository/framework/MIME/MIME/Contents.php,v
retrieving revision 1.128
diff -r1.128 Contents.php
415,421c415
< /* First check: The MIME headers allow the part to be inlined. */
< if ($mime_part->getDisposition() != 'inline') {
< return false;
< }
<
< /* Second check (save the most expensive for last):
< * Check to see if the driver is set to inline. */
---