1
0
mirror of https://github.com/Mailu/Mailu.git synced 2025-01-06 00:26:08 +02:00
2777: Whitelist all mailso* stream types in snuffleupagus for snappymail r=mergify[bot] a=Nebukadneza

## What type of PR?
bug-fix

## What does this PR do?
For attachment download in snappymail to work, at least mailsoliteral is needed. The additionally used stream types (from looking at the snappymail source) have also been added, to ensure compatability with whatever feature might rely on them ….

### Context
I’m not sure the newly whitelisted stream types other than `mailsoliteral` are actually needed. Would like some input on that, so I’m creating a draft first ….

Also, should this go to `2.0` or both `2.0` and `master`?

### Related issue(s)
- closes #2776

## Prerequisites
- [x] In case of feature or enhancement: documentation updated accordingly
- [x] Unless it's docs or a minor change: add [changelog](https://mailu.io/master/contributors/workflow.html#changelog) entry file.


Co-authored-by: Dario Ernst <dario.ernst@rommelag.com>
This commit is contained in:
bors[bot] 2023-04-17 13:53:10 +00:00 committed by GitHub
commit 152a2bf175
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View File

@ -0,0 +1 @@
Fix downloading attachments through snappymail.

View File

@ -25,7 +25,7 @@ sp.readonly_exec.enable();
# PHP has a lot of wrappers, most of them aren't usually useful, you should
# only enable the ones you're using.
sp.wrappers_whitelist.list("file,php,phar,mailsosubstreams");
sp.wrappers_whitelist.list("file,php,phar,mailsosubstreams,mailsoliteral,mailsotempfile,mailsobinary");
# Prevent sloppy comparisons.
sp.sloppy_comparison.enable();