diff --git a/dotfiles/mail.org b/dotfiles/mail.org index a87dc2b..8616afb 100644 --- a/dotfiles/mail.org +++ b/dotfiles/mail.org @@ -264,6 +264,12 @@ http://www.djcbsoftware.nl/code/mu/cheatsheet.html :END: https://neomutt.org/ +Documentation: +#+begin_src bash :results none :exports code + man neomutt + man neomuttrc +#+end_src + ** Bindings *** TODO Vim Bindings Unding toutes les touches (https://github.com/iagox86/mutt/blob/master/keybindings.conf) et rebind tout pour faire un truc coherent et documenté @@ -308,15 +314,20 @@ Rajouter les keybindings de vim https://github.com/neomutt/neomutt/issues/56#iss #+BEGIN_SRC conf bind index u undelete-message - bind index F search - bind index,pager P print-message bind index,pager p recall-message bind index,pager N search-opposite macro index \Cr "T~UN." "mark all messages as read" - macro index,pager \Cw " urlview" "call urlview to open links" + macro index,pager \cw "\ + :set my_tmp_pipe_decode=\$pipe_decode\n\ + :set pipe_decode\n\ + |urlview\n\ + :set pipe_decode=\$my_tmp_pipe_decode\n\ + :unset my_tmp_pipe_decode\n" \ + 'call urlview to extract URLs out of a message' + #+END_SRC *** Sync email @@ -354,9 +365,6 @@ Rajouter les keybindings de vim https://github.com/neomutt/neomutt/issues/56#iss *** Quickly change mailboxes #+BEGIN_SRC conf macro index,pager c "?" "change folder" - macro index,pager gm "+gmail/Inbox" "go to inbox" - macro index,pager ge "+esrf/Inbox" "go to inbox" - macro index,pager gu "+ulg/Inbox" "go to inbox" #+END_SRC *** TODO Labels @@ -391,7 +399,13 @@ Rajouter les keybindings de vim https://github.com/neomutt/neomutt/issues/56#iss #+BEGIN_SRC conf bind compose p postpone-message - macro attach,compose \Cw " urlview" "call urlview to open links" + macro attach,compose \cw "\ + :set my_tmp_pipe_decode=\$pipe_decode\n\ + :set pipe_decode\n\ + |urlview\n\ + :set pipe_decode=\$my_tmp_pipe_decode\n\ + :unset my_tmp_pipe_decode\n" \ + 'call urlview to extract URLs out of a message' bind compose R rename-attachment @@ -626,9 +640,9 @@ color body red default "([a-z][a-z0-9+-]*://(((([a-z0-9_.!~*'();:&=+$,-] ** TODO [#A] Searching using Mu #+begin_src conf # mutt macros for mu - macro index \Cf "mu find --clearlinks --format=links --linksdir=~/.mail/search " \ + macro index,pager \Cf "mu find --clearlinks --format=links --linksdir=~/.mail/search " \ "mu find" - macro index gf "~/.mail/search" \ + macro index,pager gf "~/.mail/search" \ "mu find results" #+end_src @@ -657,7 +671,7 @@ color body red default "([a-z][a-z0-9+-]*://(((([a-z0-9_.!~*'();:&=+$,-] https://unix.stackexchange.com/questions/20456/pretty-print-mails-from-mutt #+BEGIN_SRC conf - # set print_command="$HOME/.config/neomutt/bin/mutt_print.sh" + set print_command="/usr/bin/muttprint %s -p ctb110c1u" #+END_SRC ** Accounts @@ -669,6 +683,10 @@ https://unix.stackexchange.com/questions/20456/pretty-print-mails-from-mutt folder-hook gmail/* source ~/.config/neomutt/accounts/gmail folder-hook esrf/* source ~/.config/neomutt/accounts/esrf folder-hook ulg/* source ~/.config/neomutt/accounts/ulg + + macro index,pager gu "+ulg/Inbox" "go to inbox" + macro index,pager ge "+esrf/Inbox" "go to inbox" + macro index,pager gm "+gmail/Inbox" "go to inbox" #+END_SRC *** Gmail @@ -701,7 +719,6 @@ https://unix.stackexchange.com/questions/20456/pretty-print-mails-from-mutt #+end_src This empty code block is used to add a new line after signatude #+begin_src conf :tangle ~/.config/neomutt/accounts/gmail.signature :comments none :padline no - #+end_src *** ESRF **** Configuration @@ -733,7 +750,6 @@ This empty code block is used to add a new line after signatude #+end_src This empty code block is used to add a new line after signatude #+begin_src conf :tangle ~/.config/neomutt/accounts/esrf.signature :comments none :padline no - #+end_src *** ULG