mirror of
https://github.com/unman/shaker.git
synced 2025-08-02 11:06:07 -04:00
Mutt - add muttrc, spec file
This commit is contained in:
parent
b2d5fae292
commit
976756b248
3 changed files with 83 additions and 0 deletions
32
mutt.spec
Normal file
32
mutt.spec
Normal file
|
@ -0,0 +1,32 @@
|
||||||
|
Name: 3isec-qubes-mutt
|
||||||
|
Version: 1.0
|
||||||
|
Release: 1%{?dist}
|
||||||
|
Summary: Salt template for using mutt in Qubes
|
||||||
|
|
||||||
|
License: GPLv3+
|
||||||
|
SOURCE0: mutt
|
||||||
|
|
||||||
|
%description
|
||||||
|
Salt state to create template for using mutt in Qubes
|
||||||
|
|
||||||
|
%install
|
||||||
|
rm -rf %{buildroot}
|
||||||
|
mkdir -p %{buildroot}/srv/salt
|
||||||
|
cp -rv %{SOURCE0}/ %{buildroot}/srv/salt
|
||||||
|
|
||||||
|
%files
|
||||||
|
%defattr(-,root,root,-)
|
||||||
|
/srv/salt/mutt/*
|
||||||
|
|
||||||
|
%post
|
||||||
|
if [ $1 -eq 1 ]; then
|
||||||
|
qubesctl state.apply mutt.clone
|
||||||
|
qubesctl --skip-dom0 --targets=template-mutt state.apply mutt.install
|
||||||
|
fi
|
||||||
|
|
||||||
|
%preun
|
||||||
|
|
||||||
|
|
||||||
|
%changelog
|
||||||
|
* Wed Jul 15 2021 unman <unman@thirdeyesecurity.org>
|
||||||
|
- First Build
|
|
@ -33,4 +33,19 @@ installed:
|
||||||
- w3m
|
- w3m
|
||||||
- skip_suggestions: True
|
- skip_suggestions: True
|
||||||
|
|
||||||
|
change_timeout:
|
||||||
|
file.replace:
|
||||||
|
- name: /usr/lib/python3/dist-packages/qubesidle/idleness_monitor.py
|
||||||
|
- pattern: '15 * 60'
|
||||||
|
- repl: '3 * 60'
|
||||||
|
- flags: [ 'IGNORECASE', 'MULTILINE' ]
|
||||||
|
|
||||||
|
default_muttrc:
|
||||||
|
file.managed:
|
||||||
|
- name: /etc/skel/.muttrc
|
||||||
|
- source: salt://mutt/muttrc
|
||||||
|
- user: user
|
||||||
|
- group: user
|
||||||
|
|
||||||
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
36
mutt/muttrc
Normal file
36
mutt/muttrc
Normal file
|
@ -0,0 +1,36 @@
|
||||||
|
set pgp_use_gpg_agent = no
|
||||||
|
set crypt_use_gpgme=no
|
||||||
|
# Specify what key to use for signing here:
|
||||||
|
set pgp_sign_as=0x
|
||||||
|
|
||||||
|
# decode application/pgp
|
||||||
|
set pgp_decode_command="qubes-gpg-client-wrapper -d --status-fd=2 --batch %f"
|
||||||
|
|
||||||
|
# decrypt a pgp/mime attachment
|
||||||
|
set pgp_decrypt_command="$pgp_decode_command"
|
||||||
|
|
||||||
|
# verify a pgp/mime signature
|
||||||
|
#set pgp_verify_command="gpg --status-fd=2 --no-verbose --quiet --batch --output - --verify %s %f"
|
||||||
|
|
||||||
|
set mbox_type=Maildir
|
||||||
|
set record=+mail
|
||||||
|
|
||||||
|
set header_cache = "/home/user/.cache/Mail/headers"
|
||||||
|
set editor="vi -c ':set tw=72' "
|
||||||
|
set pager_index_lines=10
|
||||||
|
color index green black ~N
|
||||||
|
color index yellow black ~O
|
||||||
|
|
||||||
|
macro index <F8> \
|
||||||
|
"<enter-command>set my_old_pipe_decode=\$pipe_decode my_old_wait_key=\$wait_key nopipe_decode nowait_key<enter>\
|
||||||
|
<shell-escape>notmuch-mutt -r --prompt search<enter>\
|
||||||
|
<change-folder-readonly>`echo ${XDG_CACHE_HOME:-$HOME/.cache}/notmuch/mutt/results`<enter>\
|
||||||
|
<enter-command>set pipe_decode=\$my_old_pipe_decode wait_key=\$my_old_wait_key<enter>" \
|
||||||
|
"notmuch: search mail"
|
||||||
|
|
||||||
|
macro index <F9> \
|
||||||
|
"<enter-command>set my_old_pipe_decode=\$pipe_decode my_old_wait_key=\$wait_key nopipe_decode nowait_key<enter>\
|
||||||
|
<pipe-message>/usr/bin/notmuch-mutt -r thread<enter> \
|
||||||
|
<change-folder-readonly>/home/user/.cache/notmuch/mutt/results<enter> \
|
||||||
|
<enter-command>set pipe_decode=\$my_old_pipe_decode wait_key=\$my_old_wait_key<enter>" \
|
||||||
|
"notmuch: reconstruct thread"
|
Loading…
Add table
Add a link
Reference in a new issue