Feat: Install neomutt and its config files

This commit is contained in:
Bertrand Benjamin 2019-05-14 19:29:55 +02:00
parent 63330a4f6f
commit 5a50819160
8 changed files with 218 additions and 0 deletions

View File

@ -0,0 +1,43 @@
set realname = "Benjamin Bertrand"
set from = "benjamin.jm.bertrand@gmail.com"
set my_pass = `pass show mail/benjamin.jm.bertrand@gmail.com | head -n 1`
set smtp_url = "smtps://benjamin.jm.bertrand@gmail.com@smtp.gmail.com:465"
set smtp_pass = $my_pass
set ssl_force_tls = yes
set ssl_starttls = yes
set folder = "~/.mail/benjamin.jm.bertrand"
set spoolfile = "$folder/INBOX"
set postponed = "$folder/Drafts"
set record = "$folder/Sent"
set mbox = "$folder/Archive"
set trash = "$folder/Corbeille"
mailboxes =INBOX =Sent =Archive =Trash =Drafts
bind index,pager,attach g noop
bind index,pager,attach gi noop
bind index,pager,attach ga noop
bind index,pager,attach gd noop
bind index,pager,attach gt noop
bind index,pager,attach gs noop
macro index gi "<change-folder>=INBOX<enter>" "Go to inbox"
macro index ga "<change-folder>=Archive<enter>" "Go to all mail"
macro index gd "<change-folder>=Drafts<enter>" "Go to drafts"
macro index gt "<change-folder>=Trash<enter>" "Go to trash"
macro index gs "<change-folder>=Sent\ Items<enter>" "Go to trash"
bind index,pager m noop
bind index,pager mt noop
bind index,pager ma noop
macro index,pager mt "<save-message>=Trash<enter><enter>" "Trash"
macro index,pager ma "<save-message>=Archive<enter><enter>" "Archive"
source ~/.config/mutt/config.muttrc
source ~/.config/mutt/keybinding.muttrc
source ~/.config/mutt/dracula.muttrc
# vim: ft=muttrc

View File

@ -0,0 +1,21 @@
set mail_check = 120
set imap_keepalive = 300
set editor = "vim -c Goyo"
set sort = threads
set sort_aux = reverse-last-date-received
set fast_reply = yes
set include = yes # include message in replies
set pager_stop = yes # don't go to next message automatically
set query_command = "khard email --parsable %s"
bind editor <Tab> complete-query
bind editor ^T complete
macro index,pager A \
"<pipe-message>khard add-email<return>" \
"add the sender email address to khard"
set index_format = "%4C %Z %-15.15L %{%d%b%y} %s"
# vim: ft=muttrc

View File

@ -0,0 +1,44 @@
###############################################################################
# Dracula Theme for Mutt: https://draculatheme.com/
#
# @author Paul Townsend <paul@caprica.org>
# general ------------ foreground ---- background -----------------------------
color error color231 color212
color indicator color231 color241
color markers color210 default
color message default default
color normal default default
color prompt default default
color search color84 default
color status color141 color236
color tilde color231 default
color tree color141 default
# message index ------ foreground ---- background -----------------------------
color index color210 default ~D # deleted messages
color index color84 default ~F # flagged messages
color index color117 default ~N # new messages
color index color212 default ~Q # messages which have been replied to
color index color215 default ~T # tagged messages
color index color141 default ~v # messages part of a collapsed thread
# message headers ---- foreground ---- background -----------------------------
color hdrdefault color117 default
color header color231 default ^Subject:.*
# message body ------- foreground ---- background -----------------------------
color attachment color228 default
color body color231 default [\-\.+_a-zA-Z0-9]+@[\-\.a-zA-Z0-9]+ # email addresses
color body color228 default (https?|ftp)://[\-\.,/%~_:?&=\#a-zA-Z0-9]+ # URLs
color body color231 default (^|[[:space:]])\\*[^[:space:]]+\\*([[:space:]]|$) # *bold* text
color body color231 default (^|[[:space:]])_[^[:space:]]+_([[:space:]]|$) # _underlined_ text
color body color231 default (^|[[:space:]])/[^[:space:]]+/([[:space:]]|$) # /italic/ text
color quoted color61 default
color quoted1 color117 default
color quoted2 color84 default
color quoted3 color215 default
color quoted4 color212 default
color signature color212 default
#
# vim: ft=muttrc

View File

@ -0,0 +1,17 @@
bind pager j next-line
bind pager k previous-line
bind pager h next-undeleted
bind pager l previous-undeleted
bind attach,index,pager \CD next-page
bind attach,index,pager \CU previous-page
bind pager gg top
bind pager G bottom
bind attach,index gg first-entry
bind attach,index G last-entry
bind index,pager,attach,compose H "display-toggle-weed"
bind index w mail
macro index S "<shell-escape>mbsync -Va<enter>" "Synchronize mailbox with mbsync"
# vim: ft=muttrc

View File

@ -0,0 +1,45 @@
set realname = "Benjamin Bertrand"
set from = "lafrite26@gmail.com"
set my_pass = `pass show mail/lafrite26@gmail.com | head -n 1`
set folder = "imaps://lafrite26@gmail.com@imap.gmail.com:993"
set imap_pass = $my_pass
set smtp_url = "smtps://lafrite26@gmail.com@smtp.gmail.com:465"
set smtp_pass = $my_pass
set ssl_force_tls = yes
set ssl_starttls = yes
set folder = "~/.mail/lafrite26"
set spoolfile = "$folder/INBOX"
set postponed = "$folder/Drafts"
set record = "$folder/Sent"
set mbox = "$folder/Archive"
set trash = "$folder/Trash"
mailboxes =INBOX =Sent =Archive =Trash =Drafts
bind index,pager,attach g noop
bind index,pager,attach gi noop
bind index,pager,attach ga noop
bind index,pager,attach gd noop
bind index,pager,attach gt noop
bind index,pager,attach gs noop
macro index gi "<change-folder>=INBOX<enter>" "Go to inbox"
macro index ga "<change-folder>=Archive<enter>" "Go to all mail"
macro index gd "<change-folder>=Drafts<enter>" "Go to drafts"
macro index gt "<change-folder>=Trash<enter>" "Go to trash"
macro index gs "<change-folder>=Sent\ Items<enter>" "Go to trash"
bind index,pager m noop
bind index,pager mt noop
bind index,pager ma noop
macro index,pager mt "<save-message>=Trash<enter><enter>" "Trash"
macro index,pager ma "<save-message>=Archive<enter><enter>" "Archive"
source ~/.config/mutt/config.muttrc
source ~/.config/mutt/keybinding.muttrc
source ~/.config/mutt/dracula.muttrc
# vim: ft=muttrc

View File

@ -0,0 +1,39 @@
set from = "benjamin.bertrand@opytex.org"
set realname = "Benjamin Bertrand"
set my_pass = `pass show mail/mailfence/Takanuva | head -n 1`
set smtp_url = "smtps://benjamin.bertrand@opytex.org@smtp.mailfence.com:465"
set smtp_pass = $my_pass
set ssl_force_tls = yes
set ssl_starttls = yes
set folder = "~/.mail/opytex"
set spoolfile = "$folder/INBOX"
set postponed = "$folder/Drafts"
set record = "$folder/Sent\ Items"
set mbox = "$folder/Archive"
set trash = "$folder/Trash"
mailboxes =INBOX =Sent\ Items =Archive =Trash =Drafts
bind index,pager,attach g noop
bind index,pager,attach gi noop
bind index,pager,attach ga noop
bind index,pager,attach gd noop
bind index,pager,attach gt noop
bind index,pager,attach gs noop
macro index gi "<change-folder>=INBOX<enter>" "Go to inbox"
macro index ga "<change-folder>=Archive<enter>" "Go to all mail"
macro index gd "<change-folder>=Drafts<enter>" "Go to drafts"
macro index gt "<change-folder>=Trash<enter>" "Go to trash"
macro index gs "<change-folder>=Sent\ Items<enter>" "Go to trash"
bind index,pager m noop
bind index,pager mt noop
bind index,pager ma noop
macro index,pager mt "<save-message>=Trash<enter><enter>" "Trash"
macro index,pager ma "<save-message>=Archive<enter><enter>" "Archive"
# vim: ft=muttrc

View File

@ -38,6 +38,7 @@
- vifm
- youtube-dl
- gnupg
- neomutt
state: present
tags:
- first_deployement

View File

@ -76,6 +76,14 @@
group: "{{ item.group }}"
with_items: "{{ me }}"
- name: mutt config files
copy:
src: files/dotfiles/mutt/
dest: /home/{{ item.username }}/.config/mutt/
owner: "{{ item.username }}"
group: "{{ item.group }}"
with_items: "{{ me }}"
- name: Install imap synchroniser (Archlinux)
pacman:
name: