.mutt to .config/neomutt
This commit is contained in:
parent
0188752900
commit
64b07dc48c
@ -259,7 +259,7 @@ http://www.djcbsoftware.nl/code/mu/cheatsheet.html
|
|||||||
|
|
||||||
* Mail Client - NeoMutt
|
* Mail Client - NeoMutt
|
||||||
:PROPERTIES:
|
:PROPERTIES:
|
||||||
:header-args:conf: :tangle ~/.mutt/muttrc
|
:header-args:conf: :tangle ~/.config/neomutt/neomuttrc
|
||||||
:header-args:conf+: :comments both :mkdirp yes
|
:header-args:conf+: :comments both :mkdirp yes
|
||||||
:END:
|
:END:
|
||||||
https://neomutt.org/
|
https://neomutt.org/
|
||||||
@ -319,13 +319,32 @@ macro index \Cr "T~U<enter><tag-prefix><clear-flag>N<untag-pattern>.<enter>" "ma
|
|||||||
macro index,pager \Cw "<pipe-entry> urlview<enter>" "call urlview to open links"
|
macro index,pager \Cw "<pipe-entry> urlview<enter>" "call urlview to open links"
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
|
||||||
*** TODO Sync email
|
*** Sync email
|
||||||
#+BEGIN_SRC conf
|
#+BEGIN_SRC conf
|
||||||
# Just use one script for that. Merge with the script under ~/script
|
macro index,pager o "<shell-escape>$HOME/.config/neomutt/bin/get_new_mail.sh<enter>"
|
||||||
macro index,pager o "<shell-escape>$HOME/.mutt/bin/get_new_mail.sh<enter>"
|
macro index,pager O "<shell-escape>$HOME/.config/neomutt/bin/get_new_mail.sh all<enter>"
|
||||||
macro index,pager O "<shell-escape>$HOME/.mutt/bin/get_new_mail.sh all<enter>"
|
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
|
||||||
|
**** Sync Mail script
|
||||||
|
:PROPERTIES:
|
||||||
|
:header-args: :tangle ~/.config/neomutt/bin/get_new_mail.sh
|
||||||
|
:header-args+: :comments both :mkdirp yes
|
||||||
|
:header-args+: :shebang "#!/usr/bin/env bash"
|
||||||
|
:END:
|
||||||
|
#+begin_src bash
|
||||||
|
if [ "$1" = "all" ]; then
|
||||||
|
command='mbsync --all'
|
||||||
|
else
|
||||||
|
command='mbsync gmail-Home esrf-Home ulg-Home'
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ $TMUX ]; then
|
||||||
|
tmux split -v -l 1 $command && tmux select-pane -U
|
||||||
|
else
|
||||||
|
$command
|
||||||
|
fi
|
||||||
|
#+end_src
|
||||||
|
|
||||||
*** Copy and move dialogs
|
*** Copy and move dialogs
|
||||||
#+BEGIN_SRC conf
|
#+BEGIN_SRC conf
|
||||||
macro index C "<copy-message>?<toggle-mailboxes>" "copy a message to a mailbox"
|
macro index C "<copy-message>?<toggle-mailboxes>" "copy a message to a mailbox"
|
||||||
@ -379,11 +398,6 @@ bind compose R rename-attachment
|
|||||||
bind compose a attach-file
|
bind compose a attach-file
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
|
||||||
**** TODO Attach file using GUI File Manager
|
|
||||||
#+BEGIN_SRC conf
|
|
||||||
macro compose A "<shell-escape>bash $HOME/.mutt/bin/attach-file.sh<enter><enter-command>source /tmp/muttpick<enter>" "Attach with GUI"
|
|
||||||
#+END_SRC
|
|
||||||
|
|
||||||
**** TODO - Write html emails using markdown
|
**** TODO - Write html emails using markdown
|
||||||
#+BEGIN_SRC conf
|
#+BEGIN_SRC conf
|
||||||
# macro compose M "F pandoc -s -f markdown -t html \ny^T^Utext/html; charset=us-ascii\n"
|
# macro compose M "F pandoc -s -f markdown -t html \ny^T^Utext/html; charset=us-ascii\n"
|
||||||
@ -630,12 +644,12 @@ set sidebar_sort_method = 'unsorted'
|
|||||||
** Paths
|
** Paths
|
||||||
#+BEGIN_SRC conf
|
#+BEGIN_SRC conf
|
||||||
set folder = ~/.mail # mail location
|
set folder = ~/.mail # mail location
|
||||||
set alias_file = ~/.mutt/alias # where to store aliases
|
set alias_file = ~/.config/neomutt/alias # where to store aliases
|
||||||
set header_cache = ~/.mutt/cache/headers # where to store headers
|
set header_cache = ~/.config/neomutt/cache/headers # where to store headers
|
||||||
set message_cachedir = ~/.mutt/cache/bodies # where to store bodies
|
set message_cachedir = ~/.config/neomutt/cache/bodies # where to store bodies
|
||||||
set certificate_file = ~/.mutt/certificates # where to store certs
|
set certificate_file = ~/.config/neomutt/certificates # where to store certs
|
||||||
# set mailcap_path = ~/.mutt/config/mailcap # entries for filetypes
|
# set mailcap_path = ~/.config/neomutt/config/mailcap # entries for filetypes
|
||||||
set tmpdir = ~/.mutt/temp # where to keep temp files
|
set tmpdir = ~/.config/neomutt/temp # where to keep temp files
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
|
||||||
** TODO Mailcap configuration
|
** TODO Mailcap configuration
|
||||||
@ -643,7 +657,7 @@ set tmpdir = ~/.mutt/temp # where to keep temp files
|
|||||||
https://unix.stackexchange.com/questions/20456/pretty-print-mails-from-mutt
|
https://unix.stackexchange.com/questions/20456/pretty-print-mails-from-mutt
|
||||||
|
|
||||||
#+BEGIN_SRC conf
|
#+BEGIN_SRC conf
|
||||||
set print_command="$HOME/.mutt/bin/mutt_print.sh"
|
# set print_command="$HOME/.config/neomutt/bin/mutt_print.sh"
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
|
||||||
** Accounts
|
** Accounts
|
||||||
@ -652,23 +666,23 @@ set spoolfile = "+gmail/Inbox" # Default inbox
|
|||||||
set realname = "Dehaeze Thomas"
|
set realname = "Dehaeze Thomas"
|
||||||
set from = "dehaeze.thomas@gmail.com"
|
set from = "dehaeze.thomas@gmail.com"
|
||||||
|
|
||||||
folder-hook gmail/* source ~/.mutt/accounts/gmail
|
folder-hook gmail/* source ~/.config/neomutt/accounts/gmail
|
||||||
folder-hook esrf/* source ~/.mutt/accounts/esrf
|
folder-hook esrf/* source ~/.config/neomutt/accounts/esrf
|
||||||
folder-hook ulg/* source ~/.mutt/accounts/ulg
|
folder-hook ulg/* source ~/.config/neomutt/accounts/ulg
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
|
||||||
*** Gmail
|
*** Gmail
|
||||||
**** Configuration
|
**** Configuration
|
||||||
#+begin_src conf :tangle ~/.mutt/accounts/gmail :comments none
|
#+begin_src conf :tangle ~/.config/neomutt/accounts/gmail :comments none
|
||||||
set from = "dehaeze.thomas@gmail.com"
|
set from = "dehaeze.thomas@gmail.com"
|
||||||
set sendmail = "msmtp -a gmail"
|
set sendmail = "msmtp -a gmail"
|
||||||
|
|
||||||
# Other special folders.
|
# Other special folders.
|
||||||
set mbox = "+gmail/Archive"
|
set mbox = "+gmail/Archive"
|
||||||
set record = "+gmail/Sent"
|
unset record # Don't copy send message to Sent folder: Gmail does that for us
|
||||||
set postponed = "+gmail/Drafts"
|
set postponed = "+gmail/Drafts"
|
||||||
|
|
||||||
set signature = "~/.mutt/accounts/gmail.signature"
|
set signature = "~/.config/neomutt/accounts/gmail.signature"
|
||||||
|
|
||||||
color status cyan default
|
color status cyan default
|
||||||
|
|
||||||
@ -682,14 +696,16 @@ macro index,pager D \
|
|||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
**** Signature
|
**** Signature
|
||||||
#+begin_src conf :tangle ~/.mutt/accounts/gmail.signature :comments none
|
#+begin_src conf :tangle ~/.config/neomutt/accounts/gmail.signature :comments none :padline no
|
||||||
Thomas Dehaeze
|
Thomas Dehaeze
|
||||||
|
#+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
|
#+end_src
|
||||||
|
|
||||||
*** ESRF
|
*** ESRF
|
||||||
**** Configuration
|
**** Configuration
|
||||||
#+begin_src conf :tangle ~/.mutt/accounts/esrf :comments none
|
#+begin_src conf :tangle ~/.config/neomutt/accounts/esrf :comments none
|
||||||
set from = "thomas.dehaeze@esrf.fr"
|
set from = "thomas.dehaeze@esrf.fr"
|
||||||
set sendmail = "msmtp -a esrf"
|
set sendmail = "msmtp -a esrf"
|
||||||
|
|
||||||
@ -698,7 +714,7 @@ set mbox = "+esrf/Archive"
|
|||||||
set record = "+esrf/Sent"
|
set record = "+esrf/Sent"
|
||||||
set postponed = "+esrf/Drafts"
|
set postponed = "+esrf/Drafts"
|
||||||
|
|
||||||
set signature = "~/.mutt/accounts/esrf.signature"
|
set signature = "~/.config/neomutt/accounts/esrf.signature"
|
||||||
|
|
||||||
color status cyan default
|
color status cyan default
|
||||||
|
|
||||||
@ -712,14 +728,17 @@ macro index,pager D \
|
|||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
**** Signature
|
**** Signature
|
||||||
#+begin_src conf :tangle ~/.mutt/accounts/esrf.signature :comments none
|
#+begin_src conf :tangle ~/.config/neomutt/accounts/esrf.signature :comments none :padline no
|
||||||
Thomas Dehaeze
|
Thomas Dehaeze
|
||||||
|
#+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
|
#+end_src
|
||||||
|
|
||||||
*** ULG
|
*** ULG
|
||||||
**** Configuration
|
**** Configuration
|
||||||
#+begin_src conf :tangle ~/.mutt/accounts/ulg :comments none
|
#+begin_src conf :tangle ~/.config/neomutt/accounts/ulg :comments none
|
||||||
set from = "thomas.dehaeze@doct.uliege.be"
|
set from = "thomas.dehaeze@doct.uliege.be"
|
||||||
set sendmail = "msmtp -a ulg"
|
set sendmail = "msmtp -a ulg"
|
||||||
|
|
||||||
@ -728,7 +747,7 @@ set mbox = "+ulg/Archive"
|
|||||||
set record = "+ulg/Sent"
|
set record = "+ulg/Sent"
|
||||||
set postponed = "+ulg/Drafts"
|
set postponed = "+ulg/Drafts"
|
||||||
|
|
||||||
set signature = "~/.mutt/accounts/ulg.signature"
|
set signature = "~/.config/neomutt/accounts/ulg.signature"
|
||||||
|
|
||||||
color status cyan default
|
color status cyan default
|
||||||
|
|
||||||
@ -742,9 +761,11 @@ macro index,pager D \
|
|||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
**** Signature
|
**** Signature
|
||||||
#+begin_src conf :tangle ~/.mutt/accounts/ulg.signature :comments none
|
#+begin_src conf :tangle ~/.config/neomutt/accounts/ulg.signature :comments none :padline no
|
||||||
Thomas Dehaeze
|
Thomas Dehaeze
|
||||||
|
#+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
|
#+end_src
|
||||||
|
|
||||||
** Mailboxes to show in the sidebar.
|
** Mailboxes to show in the sidebar.
|
||||||
@ -771,7 +792,7 @@ mailboxes \
|
|||||||
+ulg/Trash \
|
+ulg/Trash \
|
||||||
|
|
||||||
set sendmail_wait = 0 # no please don't silently fail, email is important
|
set sendmail_wait = 0 # no please don't silently fail, email is important
|
||||||
unset record
|
unset move
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
|
||||||
** TODO [#A] Use Vim to compose email, with a few default options.
|
** TODO [#A] Use Vim to compose email, with a few default options.
|
||||||
@ -788,7 +809,6 @@ set help = no # No top bar
|
|||||||
set timeout = 3 # idle time before scanning
|
set timeout = 3 # idle time before scanning
|
||||||
set sleep_time = 0 # how long NeoMutt may wait after an error message
|
set sleep_time = 0 # how long NeoMutt may wait after an error message
|
||||||
set mail_check = 0 # minimum time between scans
|
set mail_check = 0 # minimum time between scans
|
||||||
unset move # gmail does that
|
|
||||||
set delete # don't ask, just do
|
set delete # don't ask, just do
|
||||||
unset confirmappend # don't ask, just do!
|
unset confirmappend # don't ask, just do!
|
||||||
set quit # don't ask, just do!!
|
set quit # don't ask, just do!!
|
||||||
@ -886,8 +906,17 @@ https://github.com/Roguelazer/muttdown
|
|||||||
|
|
||||||
** TODO Attachments
|
** TODO Attachments
|
||||||
*** Attach multiple files at once
|
*** Attach multiple files at once
|
||||||
First, tag the files you want to send using =t=, then =;= to apply the action on all tagged files and finally =<enter>= to add them all
|
First, tag the files you want to send using =t=, then =;= to apply the action on all tagged files and finally =<enter>= to add them all.
|
||||||
*** TODO Add attachment using GUI file manager
|
*** Forgotten Attachment
|
||||||
|
#+begin_src conf
|
||||||
|
set abort_noattach = ask-yes
|
||||||
|
set abort_noattach_regex = "\\<(attach(|ed|ments?)|(attaché|attachés|attache|attachons|joint|jointe|joints|jointes|joins|joignons))\\>"
|
||||||
|
#+end_src
|
||||||
|
|
||||||
|
*** TODO Attach file using GUI File Manager
|
||||||
|
#+BEGIN_SRC conf
|
||||||
|
# macro compose A "<shell-escape>bash $HOME/.config/neomut/bin/attach-file.sh<enter><enter-command>source /tmp/muttpick<enter>" "Attach with GUI"
|
||||||
|
#+END_SRC
|
||||||
*** Cheatsheet
|
*** Cheatsheet
|
||||||
| Command | Usage |
|
| Command | Usage |
|
||||||
|---------+---------------|
|
|---------+---------------|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user