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
attachment
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!
http://squirrelmail.org/donate_paul_lesniewski.php
-----
squirrelmail-users mailing list
Posting guidelines: http://squirrelmail.org/postingguidelines
List address: squirrelmail-users@lists.sourceforge.net
List archives: http://news.gmane.org/gmane.mail.squirrelmail.user
List info (subscribe/unsubscribe/change options):
https://lists.sourceforge.net/lists/listinfo/squirrelmail-users