From 01d48f3a8af3c8eb4a5ef888640629057b43537c Mon Sep 17 00:00:00 2001 From: Mikhail Klementev Date: Sun, 21 Jul 2019 15:34:18 +0000 Subject: [PATCH] Add mutt --- etc/mutt/mailcap | 1 + etc/mutt/muttrc | 70 ++++++++++++++++++++++++++++++++++++++++++++++ etc/mutt/signature | 2 ++ home-manager.nix | 4 +++ 4 files changed, 77 insertions(+) create mode 100644 etc/mutt/mailcap create mode 100644 etc/mutt/muttrc create mode 100644 etc/mutt/signature diff --git a/etc/mutt/mailcap b/etc/mutt/mailcap new file mode 100644 index 0000000..8603537 --- /dev/null +++ b/etc/mutt/mailcap @@ -0,0 +1 @@ +text/html; w3m -I %{charset} -T text/html; copiousoutput; diff --git a/etc/mutt/muttrc b/etc/mutt/muttrc new file mode 100644 index 0000000..112cefb --- /dev/null +++ b/etc/mutt/muttrc @@ -0,0 +1,70 @@ +# Html +# see ~/.mutt/mailcap +set mailcap_path="~/.mutt/mailcap" +auto_view text/html +set implicit_autoview=yes +# Password management +source "echo set my_pass = `pass root@dumpstack.io` |" + +set edit_headers=yes + +# Signature +set signature="~/.mutt/signature" + +# View +set sidebar_visible +set sidebar_format = "%B%?F? [%F]?%* %?N?%N/?%S" +set mail_check_stats +set editor = 'emacs -nw' +set user_agent = no +# auto sync new messages +set timeout = 30 + +# PGP +set crypt_use_gpgme +set crypt_autoencrypt = yes +set crypt_replyencrypt = yes +set pgp_autosign +set pgp_use_gpg_agent = yes +set pgp_timeout = 3600 +set pgp_sign_as = 0x1525585D1B43C62A +set pgp_self_encrypt = yes +set pgp_self_encrypt_as = 0x1525585D1B43C62A + +# Hotkeys +bind index,pager \Cp sidebar-prev +bind index,pager \Cn sidebar-next +bind index,pager \Co sidebar-open + +# Account +set realname = 'Mikhail' +set from = root@dumpstack.io + +# Send +set smtp_url = "smtp://$from@mail.dumpstack.io:587" +set smtp_pass = $my_pass + +# Connection +set ssl_force_tls = yes +set ssl_starttls = yes + +# Receive +set imap_user = "$from" +set imap_pass = $my_pass +set folder = "imaps://$imap_user@mail.dumpstack.io/" + +set spoolfile = +INBOX +set postponed = +Drafts +set record = +Sent + +mailboxes +Inbox +Sent +Drafts +Junk +Trash + +# Notifications +set new_mail_command="notify-send 'New Email' '%n new messages, %u unread.' &" + +set header_cache = ~/.mutt/header_cache +set message_cachedir = ~/.mutt/message_cachedir + +set sort = threads +set sort_browser = reverse-date +set sort_aux = last-date-received diff --git a/etc/mutt/signature b/etc/mutt/signature new file mode 100644 index 0000000..a7cf743 --- /dev/null +++ b/etc/mutt/signature @@ -0,0 +1,2 @@ +Mikhail Klementev, +https://dumpstack.io \ No newline at end of file diff --git a/home-manager.nix b/home-manager.nix index 4809190..e232323 100644 --- a/home-manager.nix +++ b/home-manager.nix @@ -73,6 +73,10 @@ in { ".emacs.d/init.el".source = ./etc/emacs.el; ".xmonad/xmonad.hs".source = ./etc/xmonad.hs; + ".mutt/mailcap".source = ./etc/mutt/mailcap; + ".mutt/muttrc".source = ./etc/mutt/muttrc; + ".mutt/signature".source = ./etc/mutt/signature; + ".oh-my-zsh-custom/plugins/tmux-my/tmux-my.extra.conf".source = ./etc/tmux-my/tmux-my.extra.conf; ".oh-my-zsh-custom/plugins/tmux-my/tmux-my.only.conf".source = ./etc/tmux-my/tmux-my.only.conf; ".oh-my-zsh-custom/plugins/tmux-my/tmux-my.plugin.zsh".source = ./etc/tmux-my/tmux-my.plugin.zsh;