From b0c71559d0ecabea7d91efbe9393eddf6db466c3 Mon Sep 17 00:00:00 2001 From: Dario Ernst Date: Mon, 17 Apr 2023 14:37:22 +0200 Subject: [PATCH] Whitelist all mailso* stream types in snuffleupagus for snappymail MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 …. --- towncrier/newsfragments/2776.bugfix | 1 + webmails/snuffleupagus.rules | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 towncrier/newsfragments/2776.bugfix diff --git a/towncrier/newsfragments/2776.bugfix b/towncrier/newsfragments/2776.bugfix new file mode 100644 index 00000000..6856660b --- /dev/null +++ b/towncrier/newsfragments/2776.bugfix @@ -0,0 +1 @@ +Fix downloading attachments through snappymail. diff --git a/webmails/snuffleupagus.rules b/webmails/snuffleupagus.rules index 8dde7cee..ca657719 100644 --- a/webmails/snuffleupagus.rules +++ b/webmails/snuffleupagus.rules @@ -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();