Better configuration of email search

This commit is contained in:
Thomas Dehaeze 2019-03-26 12:09:49 +01:00
parent b1bf2b1e7b
commit ac734f41d1

View File

@ -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~U<enter><tag-prefix><clear-flag>N<untag-pattern>.<enter>" "mark all messages as read"
macro index,pager \Cw "<pipe-entry> urlview<enter>" "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>?<toggle-mailboxes>" "change folder"
macro index,pager gm "<change-folder>+gmail/Inbox<enter>" "go to inbox"
macro index,pager ge "<change-folder>+esrf/Inbox<enter>" "go to inbox"
macro index,pager gu "<change-folder>+ulg/Inbox<enter>" "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 "<pipe-entry> urlview<enter>" "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 "<shell-escape>mu find --clearlinks --format=links --linksdir=~/.mail/search " \
macro index,pager \Cf "<shell-escape>mu find --clearlinks --format=links --linksdir=~/.mail/search " \
"mu find"
macro index gf "<change-folder-readonly>~/.mail/search<enter>" \
macro index,pager gf "<change-folder-readonly>~/.mail/search<enter>" \
"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 "<change-folder>+ulg/Inbox<enter>" "go to inbox"
macro index,pager ge "<change-folder>+esrf/Inbox<enter>" "go to inbox"
macro index,pager gm "<change-folder>+gmail/Inbox<enter>" "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