Re: application/pdf not octet-stream for PDF attachments?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]


On Sun, June 28, 2020 1:14 pm, Voytek Eymont via squirrelmail-users wrote:
> Hi,
> I'm running 1.5.2, all working well. when I get emails with PDF, usually,
> they are "application/pdf" and open with PDF reader,
> BUT, some emails have them as "application/octet-stream", in which case
> they attempt to open directly inside SM with PS characters/codes

This was a bug that has been corrected in SVN.

> is there any way to tell SM to always open all .pdf files with PDF reader
> I'm afraid my senders will keep sensing like they do...
> application/pdf

These will open fine as-is.

> application/octet-stream

I can provide a plugin that will force SM to display these natively
in-browser, or you can comment out the two lines in functions/mime.php
after this:

        // IE does make use of mime content sniffing. Forcing a download
        // prohibit execution of XSS inside an application/octet-stream

But please read those comments carefully and consider that allowing the
browser to load untrusted attachments can be dangerous.  Same goes for the
plugin I am offering.

Paul Lesniewski
SquirrelMail Team
Please support Open Source Software by donating to SquirrelMail!

squirrelmail-users mailing list
Posting guidelines:
List address: squirrelmail-users@xxxxxxxxxxxxxxxxxxxxx
List archives:
List info (subscribe/unsubscribe/change options):

[Index of Archives]     [Video For Linux]     [Yosemite News]     [Yosemite Photos]     [gtk]     [KDE]     [Cyrus SASL]     [Gimp on Windows]     [Steve's Art]     [Webcams]

  Powered by Linux