From 6f8c3c75b4982f713386cc9d7a49e5f999bf4409 Mon Sep 17 00:00:00 2001 From: Maximilian Friedersdorff Date: Tue, 4 Jun 2019 13:39:20 +0100 Subject: [PATCH] Mutt requires mailcap --- states/mail/init.sls | 1 + states/mailcap/files/mailcap | 11 +++++++++++ states/mailcap/init.sls | 8 ++++++++ 3 files changed, 20 insertions(+) create mode 100644 states/mailcap/files/mailcap create mode 100644 states/mailcap/init.sls diff --git a/states/mail/init.sls b/states/mail/init.sls index 065cb26..f171e67 100644 --- a/states/mail/init.sls +++ b/states/mail/init.sls @@ -1,5 +1,6 @@ include: - mail.{{ grains['os'] | lower}} + - mailcap mutt conf files: file.recurse: diff --git a/states/mailcap/files/mailcap b/states/mailcap/files/mailcap new file mode 100644 index 0000000..09e97ac --- /dev/null +++ b/states/mailcap/files/mailcap @@ -0,0 +1,11 @@ +text/html; qutebrowser %s; nametemplate=%s.html +text/html; lynx -stdin -dump -force_html ; copiousoutput +application/pdf; mupdf %s; +application/vnd.openxmlformats-officedocument.wordprocessingml.document; libreoffice %s; +application/vnd.openxmlformats-officedocument.presentationml.presentation; libreoffice %s; +application/vnd.openxmlformats-officedocument.spreadsheetml.sheet; libreoffice %s; +application/vnd.oasis.opendocument.spreadsheet; libreoffice %s; + +image/png; mupdf %s; +image/jpg; mupdf %s; +image/jpeg; mupdf %s; diff --git a/states/mailcap/init.sls b/states/mailcap/init.sls new file mode 100644 index 0000000..3d98dca --- /dev/null +++ b/states/mailcap/init.sls @@ -0,0 +1,8 @@ +mailcap file: + file.managed: + - name: {{ grains['homedir'] }}/.mailcap + - source: salt://mailcap/files/mailcap + - user: {{ grains['user'] }} + - group: {{ grains['user'] }} + - mode: 640 + -- 2.46.2