[imp] Text mime-type show inline

Michael M Slusarz slusarz@bigworm.colorado.edu
Mon, 20 May 2002 12:19:02 -0600


Quoting Pradit Wattanasuwan <pradit@tubtim.cri.or.th>:

| 
| Subject:  Fwd: My friends!! 
| Part(s):   2 unnamed message/rfc822 231.04 KB  
|            2.2 unnamed text/plain 0.01 KB  
|            2.3 unnamed text/html 0.38 KB  
|            2.4 1.If one day....jpg image/jpeg 23.82 KB  
|            2.5 2.You've got me.jpg image/jpeg 24.12 KB  
|            2.6 3.I'll listen...jpg image/jpeg 16.02 KB  
|            2.7 4.Listen...jpg image/jpeg 17.75 KB  
| 
| 1.2 unnamed text/html 0.20 KB  
|  
| [snip]
| 
|  2.1 unnamed text/plain 1.68 KB  
|  
| [snip]
| 
| 1.
| I captured some part of my e-mail that show on above.
| Because of I have a question.
| Why doesn't part 2.2 and 2.3 show inline, but 1.2 and 2.1 are showed?
|

Most likely, Parts 2.2 and 2.3 have been marked, via the MIME Content-
Disposition Header, as an 'attachment'.  No matter what the MIME type of 
that part is, if the content disposition is set as attachment we will honor 
this request and NOT display the part inline.

If anyone wants to make the argument that this is the wrong behavior, or 
that this should be configurable, go ahead.  But as of now, this is the way 
these parts are going to be handled.

| 2.
| Can I show message/rfc822 in inline?

Sure.  Go to imp/config/mime_drivers.php and set the parameter
  $mime_drivers['imp']['rfc822']['inline']
to 'true'.

michael

______________________________________________
Michael Slusarz [slusarz@bigworm.colorado.edu]
The University of Colorado at Boulder