From: Maximilian Friedersdorff Date: Tue, 4 Jun 2019 12:39:20 +0000 (+0100) Subject: Mutt requires mailcap X-Git-Url: https://git.friedersdorff.com/?a=commitdiff_plain;h=6f8c3c75b4982f713386cc9d7a49e5f999bf4409;p=max%2Fsaltfiles.git Mutt requires mailcap --- 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 +