.mutt to .config/neomutt
This commit is contained in:
parent
0188752900
commit
64b07dc48c
@ -205,50 +205,50 @@ https://marlam.de/msmtp/
|
||||
|
||||
** Defaults
|
||||
#+BEGIN_SRC conf
|
||||
defaults
|
||||
auth on
|
||||
tls on
|
||||
tls_certcheck off
|
||||
defaults
|
||||
auth on
|
||||
tls on
|
||||
tls_certcheck off
|
||||
#+END_SRC
|
||||
|
||||
** Gmail Account
|
||||
#+BEGIN_SRC conf
|
||||
account gmail
|
||||
host smtp.gmail.com
|
||||
port 587
|
||||
protocol smtp
|
||||
from dehaeze.thomas@gmail.com
|
||||
user dehaeze.thomas@gmail.com
|
||||
passwordeval "pass email/dehaeze.thomas@gmail.com"
|
||||
account gmail
|
||||
host smtp.gmail.com
|
||||
port 587
|
||||
protocol smtp
|
||||
from dehaeze.thomas@gmail.com
|
||||
user dehaeze.thomas@gmail.com
|
||||
passwordeval "pass email/dehaeze.thomas@gmail.com"
|
||||
#+END_SRC
|
||||
|
||||
** ESRF Account
|
||||
#+BEGIN_SRC conf
|
||||
account esrf
|
||||
host smtps.esrf.fr
|
||||
port 465
|
||||
protocol smtp
|
||||
from thomas.dehaeze@esrf.fr
|
||||
user dehaeze
|
||||
tls_starttls off
|
||||
passwordeval "pass email/thomas.dehaeze@esrf.fr"
|
||||
account esrf
|
||||
host smtps.esrf.fr
|
||||
port 465
|
||||
protocol smtp
|
||||
from thomas.dehaeze@esrf.fr
|
||||
user dehaeze
|
||||
tls_starttls off
|
||||
passwordeval "pass email/thomas.dehaeze@esrf.fr"
|
||||
#+END_SRC
|
||||
|
||||
** ULG Account
|
||||
#+BEGIN_SRC conf
|
||||
account ulg
|
||||
host smtp.ulg.ac.be
|
||||
port 587
|
||||
protocol smtp
|
||||
from thomas.dehaeze@doct.uliege.be
|
||||
user s177313
|
||||
tls_starttls on
|
||||
passwordeval "pass email/thomas.dehaeze@doct.uliege.be"
|
||||
account ulg
|
||||
host smtp.ulg.ac.be
|
||||
port 587
|
||||
protocol smtp
|
||||
from thomas.dehaeze@doct.uliege.be
|
||||
user s177313
|
||||
tls_starttls on
|
||||
passwordeval "pass email/thomas.dehaeze@doct.uliege.be"
|
||||
#+END_SRC
|
||||
|
||||
** Default Account
|
||||
#+BEGIN_SRC conf
|
||||
account default : gmail
|
||||
account default : gmail
|
||||
#+END_SRC
|
||||
|
||||
* TODO Mail Indexer - Mu
|
||||
@ -259,7 +259,7 @@ http://www.djcbsoftware.nl/code/mu/cheatsheet.html
|
||||
|
||||
* Mail Client - NeoMutt
|
||||
:PROPERTIES:
|
||||
:header-args:conf: :tangle ~/.mutt/muttrc
|
||||
:header-args:conf: :tangle ~/.config/neomutt/neomuttrc
|
||||
:header-args:conf+: :comments both :mkdirp yes
|
||||
:END:
|
||||
https://neomutt.org/
|
||||
@ -271,144 +271,158 @@ Rajouter les keybindings de vim https://github.com/neomutt/neomutt/issues/56#iss
|
||||
|
||||
*** Unbind Few keys
|
||||
#+BEGIN_SRC conf
|
||||
bind index,pager i noop
|
||||
bind index,pager g noop
|
||||
bind index,pager \# noop
|
||||
bind index \Cf noop
|
||||
bind index,pager i noop
|
||||
bind index,pager g noop
|
||||
bind index,pager \# noop
|
||||
bind index \Cf noop
|
||||
#+END_SRC
|
||||
|
||||
*** Index and Pager
|
||||
#+BEGIN_SRC conf
|
||||
bind index,pager R group-reply
|
||||
bind index,pager s sync-mailbox
|
||||
bind index,pager R group-reply
|
||||
bind index,pager s sync-mailbox
|
||||
#+END_SRC
|
||||
|
||||
*** Navigation
|
||||
#+BEGIN_SRC conf
|
||||
bind index <space> collapse-thread
|
||||
bind index <space> collapse-thread
|
||||
|
||||
bind index k previous-entry
|
||||
bind pager k previous-line
|
||||
bind index j next-entry
|
||||
bind pager j next-line
|
||||
bind index l display-message
|
||||
bind index gg first-entry
|
||||
bind pager gg top
|
||||
bind index G last-entry
|
||||
bind pager G bottom
|
||||
bind index k previous-entry
|
||||
bind pager k previous-line
|
||||
bind index j next-entry
|
||||
bind pager j next-line
|
||||
bind index l display-message
|
||||
bind index gg first-entry
|
||||
bind pager gg top
|
||||
bind index G last-entry
|
||||
bind pager G bottom
|
||||
|
||||
bind attach,index,pager \CD next-page
|
||||
bind attach,index,pager \CU previous-page
|
||||
bind attach,index,pager \CD next-page
|
||||
bind attach,index,pager \CU previous-page
|
||||
|
||||
bind index h noop
|
||||
bind pager h exit
|
||||
bind index h noop
|
||||
bind pager h exit
|
||||
#+END_SRC
|
||||
|
||||
*** Index
|
||||
#+BEGIN_SRC conf
|
||||
bind index u undelete-message
|
||||
bind index u undelete-message
|
||||
|
||||
bind index F search
|
||||
bind index F search
|
||||
|
||||
bind index,pager P print-message
|
||||
bind index,pager P print-message
|
||||
|
||||
bind index,pager p recall-message
|
||||
bind index,pager N search-opposite
|
||||
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 \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"
|
||||
#+END_SRC
|
||||
|
||||
*** TODO Sync email
|
||||
*** Sync email
|
||||
#+BEGIN_SRC conf
|
||||
# Just use one script for that. Merge with the script under ~/script
|
||||
macro index,pager o "<shell-escape>$HOME/.mutt/bin/get_new_mail.sh<enter>"
|
||||
macro index,pager O "<shell-escape>$HOME/.mutt/bin/get_new_mail.sh all<enter>"
|
||||
macro index,pager o "<shell-escape>$HOME/.config/neomutt/bin/get_new_mail.sh<enter>"
|
||||
macro index,pager O "<shell-escape>$HOME/.config/neomutt/bin/get_new_mail.sh all<enter>"
|
||||
#+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
|
||||
#+BEGIN_SRC conf
|
||||
macro index C "<copy-message>?<toggle-mailboxes>" "copy a message to a mailbox"
|
||||
macro index M "<save-message>?<toggle-mailboxes>" "move a message to a mailbox"
|
||||
macro index C "<copy-message>?<toggle-mailboxes>" "copy a message to a mailbox"
|
||||
macro index M "<save-message>?<toggle-mailboxes>" "move a message to a mailbox"
|
||||
#+END_SRC
|
||||
|
||||
*** 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"
|
||||
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
|
||||
#+BEGIN_SRC conf
|
||||
bind index,pager y edit-label
|
||||
bind index,pager y edit-label
|
||||
#+END_SRC
|
||||
|
||||
*** Open in Vim
|
||||
#+BEGIN_SRC conf
|
||||
bind index,pager V noop
|
||||
macro index,pager V "|nvim -c 'setlocal ft=mail' -c 'setlocal buftype=nofile' -<enter>" "open in vim"
|
||||
bind index,pager V noop
|
||||
macro index,pager V "|nvim -c 'setlocal ft=mail' -c 'setlocal buftype=nofile' -<enter>" "open in vim"
|
||||
#+END_SRC
|
||||
|
||||
*** Make quick html view macro
|
||||
#+BEGIN_SRC conf
|
||||
bind index,pager H noop # Unbinds V from version
|
||||
macro index,pager H "<view-attachments><search>html<enter><view-mailcap><exit>"
|
||||
bind index,pager H noop # Unbinds V from version
|
||||
macro index,pager H "<view-attachments><search>html<enter><view-mailcap><exit>"
|
||||
#+END_SRC
|
||||
|
||||
*** Mouse wheel
|
||||
#+BEGIN_SRC conf
|
||||
bind pager \031 previous-line # Mouse wheel
|
||||
bind pager \005 next-line # Mouse wheel
|
||||
bind pager \031 previous-line # Mouse wheel
|
||||
bind pager \005 next-line # Mouse wheel
|
||||
#+END_SRC
|
||||
|
||||
*** TODO Contacts
|
||||
#+BEGIN_SRC conf
|
||||
macro pager \Ca "<pipe-message> goobook add<return>" "add the sender address to Google contacts"
|
||||
macro pager \Ca "<pipe-message> goobook add<return>" "add the sender address to Google contacts"
|
||||
#+END_SRC
|
||||
|
||||
*** Compose
|
||||
#+BEGIN_SRC conf
|
||||
bind compose p postpone-message
|
||||
bind compose p postpone-message
|
||||
|
||||
macro attach,compose \Cw "<pipe-entry> urlview<enter>" "call urlview to open links"
|
||||
macro attach,compose \Cw "<pipe-entry> urlview<enter>" "call urlview to open links"
|
||||
|
||||
bind compose R rename-attachment
|
||||
bind compose R rename-attachment
|
||||
|
||||
bind compose a attach-file
|
||||
#+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"
|
||||
bind compose a attach-file
|
||||
#+END_SRC
|
||||
|
||||
**** TODO - Write html emails using markdown
|
||||
#+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"
|
||||
#+END_SRC
|
||||
|
||||
**** TODO Open another instance of neomutt in readonly mode while composing
|
||||
#+BEGIN_SRC conf
|
||||
macro compose M "<shell-escape>termite -e \"neomutt -R\"<enter>"
|
||||
macro compose M "<shell-escape>termite -e \"neomutt -R\"<enter>"
|
||||
#+END_SRC
|
||||
|
||||
*** TODO Sidebar
|
||||
#+BEGIN_SRC conf
|
||||
bind index,pager \Ck sidebar-prev
|
||||
bind index,pager \Cj sidebar-next
|
||||
bind index,pager \Co sidebar-open
|
||||
bind index,pager \Cp sidebar-prev-new
|
||||
bind index,pager \Cn sidebar-next-new
|
||||
bind index,pager B sidebar-toggle-visible
|
||||
bind index,pager \Ck sidebar-prev
|
||||
bind index,pager \Cj sidebar-next
|
||||
bind index,pager \Co sidebar-open
|
||||
bind index,pager \Cp sidebar-prev-new
|
||||
bind index,pager \Cn sidebar-next-new
|
||||
bind index,pager B sidebar-toggle-visible
|
||||
#+END_SRC
|
||||
|
||||
*** Attachments
|
||||
#+BEGIN_SRC conf
|
||||
bind attach <return> view-mailcap
|
||||
bind attach <return> view-mailcap
|
||||
|
||||
macro attach W <save-entry><kill-line>~/Downloads/<enter>y "Save entry"
|
||||
macro attach W <save-entry><kill-line>~/Downloads/<enter>y "Save entry"
|
||||
#+END_SRC
|
||||
|
||||
** Colors
|
||||
@ -551,62 +565,62 @@ color body red default "([a-z][a-z0-9+-]*://(((([a-z0-9_.!~*'();:&=+$,-]
|
||||
|
||||
** Sidebar
|
||||
#+BEGIN_SRC conf
|
||||
# Should the Sidebar be shown?
|
||||
set sidebar_visible = yes
|
||||
# Should the Sidebar be shown?
|
||||
set sidebar_visible = yes
|
||||
|
||||
# How wide should the Sidebar be in screen columns?
|
||||
# Note: Some characters, e.g. Chinese, take up two columns each.
|
||||
set sidebar_width = 20
|
||||
# How wide should the Sidebar be in screen columns?
|
||||
# Note: Some characters, e.g. Chinese, take up two columns each.
|
||||
set sidebar_width = 20
|
||||
|
||||
# Should the mailbox paths be abbreviated?
|
||||
set sidebar_short_path = yes
|
||||
# Should the mailbox paths be abbreviated?
|
||||
set sidebar_short_path = yes
|
||||
|
||||
# When abbreviating mailbox path names, use any of these characters as path
|
||||
# separators. Only the part after the last separators will be shown.
|
||||
# For file folders '/' is good. For IMAP folders, often '.' is useful.
|
||||
set sidebar_delim_chars = '/.'
|
||||
# When abbreviating mailbox path names, use any of these characters as path
|
||||
# separators. Only the part after the last separators will be shown.
|
||||
# For file folders '/' is good. For IMAP folders, often '.' is useful.
|
||||
set sidebar_delim_chars = '/.'
|
||||
|
||||
# If the mailbox path is abbreviated, should it be indented?
|
||||
set sidebar_folder_indent = yes
|
||||
# If the mailbox path is abbreviated, should it be indented?
|
||||
set sidebar_folder_indent = yes
|
||||
|
||||
# Indent mailbox paths with this string.
|
||||
set sidebar_indent_string = ' '
|
||||
# Indent mailbox paths with this string.
|
||||
set sidebar_indent_string = ' '
|
||||
|
||||
# Make the Sidebar only display mailboxes that contain new, or flagged,
|
||||
# mail.
|
||||
set sidebar_new_mail_only = no
|
||||
# Make the Sidebar only display mailboxes that contain new, or flagged,
|
||||
# mail.
|
||||
set sidebar_new_mail_only = no
|
||||
|
||||
# Any mailboxes that are whitelisted will always be visible, even if the
|
||||
# sidebar_new_mail_only option is enabled.
|
||||
# sidebar_whitelist '/home/user/mailbox1'
|
||||
# sidebar_whitelist '/home/user/mailbox2'
|
||||
# Any mailboxes that are whitelisted will always be visible, even if the
|
||||
# sidebar_new_mail_only option is enabled.
|
||||
# sidebar_whitelist '/home/user/mailbox1'
|
||||
# sidebar_whitelist '/home/user/mailbox2'
|
||||
|
||||
# When searching for mailboxes containing new mail, should the search wrap
|
||||
# around when it reaches the end of the list?
|
||||
set sidebar_next_new_wrap = no
|
||||
# When searching for mailboxes containing new mail, should the search wrap
|
||||
# around when it reaches the end of the list?
|
||||
set sidebar_next_new_wrap = no
|
||||
|
||||
# Show the Sidebar on the right-hand side of the screen
|
||||
set sidebar_on_right = no
|
||||
# Show the Sidebar on the right-hand side of the screen
|
||||
set sidebar_on_right = no
|
||||
|
||||
# The character to use as the divider between the Sidebar and the other Mutt
|
||||
# panels.
|
||||
# Note: Only the first character of this string is used.
|
||||
set sidebar_divider_char = '│'
|
||||
# The character to use as the divider between the Sidebar and the other Mutt
|
||||
# panels.
|
||||
# Note: Only the first character of this string is used.
|
||||
set sidebar_divider_char = '│'
|
||||
|
||||
# Enable extended buffy mode to calculate total, new, and flagged
|
||||
# message counts for each mailbox.
|
||||
set mail_check_stats
|
||||
# Enable extended buffy mode to calculate total, new, and flagged
|
||||
# message counts for each mailbox.
|
||||
set mail_check_stats
|
||||
|
||||
# Display the Sidebar mailboxes using this format string.
|
||||
set sidebar_format = '%B%?F? [%F]?%* %?N?%N/?%S'
|
||||
# Display the Sidebar mailboxes using this format string.
|
||||
set sidebar_format = '%B%?F? [%F]?%* %?N?%N/?%S'
|
||||
|
||||
# Sort the mailboxes in the Sidebar using this method:
|
||||
# count - total number of messages
|
||||
# flagged - number of flagged messages
|
||||
# new - number of new messages
|
||||
# path - mailbox path
|
||||
# unsorted - do not sort the mailboxes
|
||||
set sidebar_sort_method = 'unsorted'
|
||||
# Sort the mailboxes in the Sidebar using this method:
|
||||
# count - total number of messages
|
||||
# flagged - number of flagged messages
|
||||
# new - number of new messages
|
||||
# path - mailbox path
|
||||
# unsorted - do not sort the mailboxes
|
||||
set sidebar_sort_method = 'unsorted'
|
||||
#+END_SRC
|
||||
|
||||
** TODO [#A] Searching using Mu
|
||||
@ -629,13 +643,13 @@ set sidebar_sort_method = 'unsorted'
|
||||
|
||||
** Paths
|
||||
#+BEGIN_SRC conf
|
||||
set folder = ~/.mail # mail location
|
||||
set alias_file = ~/.mutt/alias # where to store aliases
|
||||
set header_cache = ~/.mutt/cache/headers # where to store headers
|
||||
set message_cachedir = ~/.mutt/cache/bodies # where to store bodies
|
||||
set certificate_file = ~/.mutt/certificates # where to store certs
|
||||
# set mailcap_path = ~/.mutt/config/mailcap # entries for filetypes
|
||||
set tmpdir = ~/.mutt/temp # where to keep temp files
|
||||
set folder = ~/.mail # mail location
|
||||
set alias_file = ~/.config/neomutt/alias # where to store aliases
|
||||
set header_cache = ~/.config/neomutt/cache/headers # where to store headers
|
||||
set message_cachedir = ~/.config/neomutt/cache/bodies # where to store bodies
|
||||
set certificate_file = ~/.config/neomutt/certificates # where to store certs
|
||||
# set mailcap_path = ~/.config/neomutt/config/mailcap # entries for filetypes
|
||||
set tmpdir = ~/.config/neomutt/temp # where to keep temp files
|
||||
#+END_SRC
|
||||
|
||||
** TODO Mailcap configuration
|
||||
@ -643,113 +657,120 @@ set tmpdir = ~/.mutt/temp # where to keep temp files
|
||||
https://unix.stackexchange.com/questions/20456/pretty-print-mails-from-mutt
|
||||
|
||||
#+BEGIN_SRC conf
|
||||
set print_command="$HOME/.mutt/bin/mutt_print.sh"
|
||||
# set print_command="$HOME/.config/neomutt/bin/mutt_print.sh"
|
||||
#+END_SRC
|
||||
|
||||
** Accounts
|
||||
#+BEGIN_SRC conf
|
||||
set spoolfile = "+gmail/Inbox" # Default inbox
|
||||
set realname = "Dehaeze Thomas"
|
||||
set from = "dehaeze.thomas@gmail.com"
|
||||
set spoolfile = "+gmail/Inbox" # Default inbox
|
||||
set realname = "Dehaeze Thomas"
|
||||
set from = "dehaeze.thomas@gmail.com"
|
||||
|
||||
folder-hook gmail/* source ~/.mutt/accounts/gmail
|
||||
folder-hook esrf/* source ~/.mutt/accounts/esrf
|
||||
folder-hook ulg/* source ~/.mutt/accounts/ulg
|
||||
folder-hook gmail/* source ~/.config/neomutt/accounts/gmail
|
||||
folder-hook esrf/* source ~/.config/neomutt/accounts/esrf
|
||||
folder-hook ulg/* source ~/.config/neomutt/accounts/ulg
|
||||
#+END_SRC
|
||||
|
||||
*** Gmail
|
||||
**** Configuration
|
||||
#+begin_src conf :tangle ~/.mutt/accounts/gmail :comments none
|
||||
set from = "dehaeze.thomas@gmail.com"
|
||||
set sendmail = "msmtp -a gmail"
|
||||
#+begin_src conf :tangle ~/.config/neomutt/accounts/gmail :comments none
|
||||
set from = "dehaeze.thomas@gmail.com"
|
||||
set sendmail = "msmtp -a gmail"
|
||||
|
||||
# Other special folders.
|
||||
set mbox = "+gmail/Archive"
|
||||
set record = "+gmail/Sent"
|
||||
set postponed = "+gmail/Drafts"
|
||||
# Other special folders.
|
||||
set mbox = "+gmail/Archive"
|
||||
unset record # Don't copy send message to Sent folder: Gmail does that for us
|
||||
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
|
||||
|
||||
macro index,pager d \
|
||||
macro index,pager d \
|
||||
"<save-message>+gmail/Archive<enter>" \
|
||||
"Move message to the Archive"
|
||||
|
||||
macro index,pager D \
|
||||
macro index,pager D \
|
||||
"<save-message>+gmail/Trash<enter>" \
|
||||
"Move message to the Trash"
|
||||
#+end_src
|
||||
|
||||
**** Signature
|
||||
#+begin_src conf :tangle ~/.mutt/accounts/gmail.signature :comments none
|
||||
Thomas Dehaeze
|
||||
#+begin_src conf :tangle ~/.config/neomutt/accounts/gmail.signature :comments none :padline no
|
||||
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
|
||||
|
||||
*** ESRF
|
||||
**** Configuration
|
||||
#+begin_src conf :tangle ~/.mutt/accounts/esrf :comments none
|
||||
set from = "thomas.dehaeze@esrf.fr"
|
||||
set sendmail = "msmtp -a esrf"
|
||||
#+begin_src conf :tangle ~/.config/neomutt/accounts/esrf :comments none
|
||||
set from = "thomas.dehaeze@esrf.fr"
|
||||
set sendmail = "msmtp -a esrf"
|
||||
|
||||
# Other special folders.
|
||||
set mbox = "+esrf/Archive"
|
||||
set record = "+esrf/Sent"
|
||||
set postponed = "+esrf/Drafts"
|
||||
# Other special folders.
|
||||
set mbox = "+esrf/Archive"
|
||||
set record = "+esrf/Sent"
|
||||
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
|
||||
|
||||
macro index,pager d \
|
||||
macro index,pager d \
|
||||
"<save-message>+esrf/Archive<enter>" \
|
||||
"Move message to the Archive"
|
||||
|
||||
macro index,pager D \
|
||||
macro index,pager D \
|
||||
"<save-message>+esrf/Trash<enter>" \
|
||||
"Move message to the Trash"
|
||||
#+end_src
|
||||
|
||||
**** Signature
|
||||
#+begin_src conf :tangle ~/.mutt/accounts/esrf.signature :comments none
|
||||
Thomas Dehaeze
|
||||
#+begin_src conf :tangle ~/.config/neomutt/accounts/esrf.signature :comments none :padline no
|
||||
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
|
||||
|
||||
*** ULG
|
||||
**** Configuration
|
||||
#+begin_src conf :tangle ~/.mutt/accounts/ulg :comments none
|
||||
set from = "thomas.dehaeze@doct.uliege.be"
|
||||
set sendmail = "msmtp -a ulg"
|
||||
#+begin_src conf :tangle ~/.config/neomutt/accounts/ulg :comments none
|
||||
set from = "thomas.dehaeze@doct.uliege.be"
|
||||
set sendmail = "msmtp -a ulg"
|
||||
|
||||
# Other special folders.
|
||||
set mbox = "+ulg/Archive"
|
||||
set record = "+ulg/Sent"
|
||||
set postponed = "+ulg/Drafts"
|
||||
# Other special folders.
|
||||
set mbox = "+ulg/Archive"
|
||||
set record = "+ulg/Sent"
|
||||
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
|
||||
|
||||
macro index,pager d \
|
||||
macro index,pager d \
|
||||
"<save-message>+ulg/Archive<enter>" \
|
||||
"Move message to the Archive"
|
||||
|
||||
macro index,pager D \
|
||||
macro index,pager D \
|
||||
"<save-message>+ulg/Trash<enter>" \
|
||||
"Move message to the Trash"
|
||||
#+end_src
|
||||
|
||||
**** Signature
|
||||
#+begin_src conf :tangle ~/.mutt/accounts/ulg.signature :comments none
|
||||
Thomas Dehaeze
|
||||
|
||||
#+begin_src conf :tangle ~/.config/neomutt/accounts/ulg.signature :comments none :padline no
|
||||
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
|
||||
|
||||
** Mailboxes to show in the sidebar.
|
||||
#+BEGIN_SRC conf
|
||||
mailboxes \
|
||||
mailboxes \
|
||||
+search \
|
||||
"+Google" \
|
||||
+gmail/Inbox \
|
||||
@ -770,8 +791,8 @@ mailboxes \
|
||||
+ulg/Sent \
|
||||
+ulg/Trash \
|
||||
|
||||
set sendmail_wait = 0 # no please don't silently fail, email is important
|
||||
unset record
|
||||
set sendmail_wait = 0 # no please don't silently fail, email is important
|
||||
unset move
|
||||
#+END_SRC
|
||||
|
||||
** TODO [#A] Use Vim to compose email, with a few default options.
|
||||
@ -782,95 +803,94 @@ set editor = "nvim -c '/\\n--' -c ':noh' -c 'startinsert'"
|
||||
|
||||
** Basic Options
|
||||
#+BEGIN_SRC conf
|
||||
set wait_key = no # shut up, mutt
|
||||
set mbox_type = Maildir # mailbox type
|
||||
set help = no # No top bar
|
||||
set timeout = 3 # idle time before scanning
|
||||
set sleep_time = 0 # how long NeoMutt may wait after an error message
|
||||
set mail_check = 0 # minimum time between scans
|
||||
unset move # gmail does that
|
||||
set delete # don't ask, just do
|
||||
unset confirmappend # don't ask, just do!
|
||||
set quit # don't ask, just do!!
|
||||
set mark_old = no # read/new is good enough for me
|
||||
set beep_new # bell on new mails
|
||||
# set pipe_decode # strip headers and eval mimes when piping
|
||||
set thorough_search # strip headers and eval mimes before searching
|
||||
set send_charset="us-ascii:utf-8:iso-8859-1"
|
||||
set use_from # respect the From: address the editor sends back
|
||||
set wait_key = no # shut up, mutt
|
||||
set mbox_type = Maildir # mailbox type
|
||||
set help = no # No top bar
|
||||
set timeout = 3 # idle time before scanning
|
||||
set sleep_time = 0 # how long NeoMutt may wait after an error message
|
||||
set mail_check = 0 # minimum time between scans
|
||||
set delete # don't ask, just do
|
||||
unset confirmappend # don't ask, just do!
|
||||
set quit # don't ask, just do!!
|
||||
set mark_old = no # read/new is good enough for me
|
||||
set beep_new # bell on new mails
|
||||
# set pipe_decode # strip headers and eval mimes when piping
|
||||
set thorough_search # strip headers and eval mimes before searching
|
||||
set send_charset="us-ascii:utf-8:iso-8859-1"
|
||||
set use_from # respect the From: address the editor sends back
|
||||
#+END_SRC
|
||||
|
||||
** Status Bar
|
||||
#+BEGIN_SRC conf
|
||||
set status_on_top = no
|
||||
set status_chars = " *%A"
|
||||
set status_format = "───[ Folder: %f ]───[%r%m messages%?n? (%n new)?%?d? (%d to delete)?%?t? (%t tagged)? ]───%>─%?p?( %p postponed )?───"
|
||||
set status_on_top = no
|
||||
set status_chars = " *%A"
|
||||
set status_format = "───[ Folder: %f ]───[%r%m messages%?n? (%n new)?%?d? (%d to delete)?%?t? (%t tagged)? ]───%>─%?p?( %p postponed )?───"
|
||||
#+END_SRC
|
||||
|
||||
** Index View Options
|
||||
#+BEGIN_SRC conf
|
||||
set date_format = "%d/%m/%y %H:%M"
|
||||
set index_format = "[%Z] %D %-20.20F %s"
|
||||
# set index_format = " %Z %<[y?%<[m?%<[d?%[ %H:%M]&%[ %a %d]>&%[ %b %d]>&%[%d/%m/%Y]> %-30.30F %<M?(%2M)& > %?GS?%GS& ?%?GE?%GE& ?%?GA?%GA& ? %g %s"
|
||||
# set index_format='%4C %S %[%y.%m.%d] %-18.18n %?GU?%GU& ? %?GR?%GR& ? %?GI?%GI& ? %s'
|
||||
set date_format = "%d/%m/%y %H:%M"
|
||||
set index_format = "[%Z] %D %-20.20F %s"
|
||||
# set index_format = " %Z %<[y?%<[m?%<[d?%[ %H:%M]&%[ %a %d]>&%[ %b %d]>&%[%d/%m/%Y]> %-30.30F %<M?(%2M)& > %?GS?%GS& ?%?GE?%GE& ?%?GA?%GA& ? %g %s"
|
||||
# set index_format='%4C %S %[%y.%m.%d] %-18.18n %?GU?%GU& ? %?GR?%GR& ? %?GI?%GI& ? %s'
|
||||
|
||||
set sort = threads # like gmail
|
||||
set sort_aux = reverse-last-date-received # like gmail
|
||||
set uncollapse_jump # don't collapse on an unread message
|
||||
set sort_re # thread based on regex
|
||||
set reply_regexp = "^(([Rr][Ee]?(\[[0-9]+\])?: *)?(\[[^]]+\] *)?)*"
|
||||
set folder_format = "%2C %t %N %8s %f"
|
||||
set sort = threads # like gmail
|
||||
set sort_aux = reverse-last-date-received # like gmail
|
||||
set uncollapse_jump # don't collapse on an unread message
|
||||
set sort_re # thread based on regex
|
||||
set reply_regexp = "^(([Rr][Ee]?(\[[0-9]+\])?: *)?(\[[^]]+\] *)?)*"
|
||||
set folder_format = "%2C %t %N %8s %f"
|
||||
#+END_SRC
|
||||
|
||||
** Pager View Options
|
||||
#+BEGIN_SRC conf
|
||||
set pager_index_lines = 10 # number of index lines to show
|
||||
set pager_context = 3 # number of context lines to show
|
||||
set pager_stop # don't go to next message automatically
|
||||
set menu_scroll # scroll in menus
|
||||
set tilde # show tildes like in vim
|
||||
set markers = no # no ugly plus signs
|
||||
set quote_regexp = "^( {0,4}[>|:#%]| {0,4}[a-z0-9]+[>|]+)+"
|
||||
set pager_index_lines = 10 # number of index lines to show
|
||||
set pager_context = 3 # number of context lines to show
|
||||
set pager_stop # don't go to next message automatically
|
||||
set menu_scroll # scroll in menus
|
||||
set tilde # show tildes like in vim
|
||||
set markers = no # no ugly plus signs
|
||||
set quote_regexp = "^( {0,4}[>|:#%]| {0,4}[a-z0-9]+[>|]+)+"
|
||||
|
||||
auto_view text/html # view html automatically
|
||||
alternative_order text/plain text/enriched text/html # save html for last
|
||||
auto_view text/html # view html automatically
|
||||
alternative_order text/plain text/enriched text/html # save html for last
|
||||
#+END_SRC
|
||||
|
||||
** Compose View Options
|
||||
#+BEGIN_SRC conf
|
||||
set envelope_from # which from?
|
||||
set sig_dashes # dashes before sig
|
||||
set sig_on_top # the signature is just below the response
|
||||
set edit_headers # show headers when composing
|
||||
set fast_reply # skip to compose when replying
|
||||
set askcc # ask for CC:
|
||||
set fcc_attach # save attachments with the body
|
||||
set mime_forward = yes # forward attachments as part of body
|
||||
set forward_format = "Fwd: %s" # format of subject when forwarding
|
||||
set forward_decode # decode when forwarding
|
||||
set attribution = "On %d, %n wrote:" # format of quoting header
|
||||
set reply_to # reply to Reply to: field
|
||||
set reverse_name # reply as whomever it was to
|
||||
set include # include message in replies
|
||||
set forward_quote # include message in forwards
|
||||
set envelope_from # which from?
|
||||
set sig_dashes # dashes before sig
|
||||
set sig_on_top # the signature is just below the response
|
||||
set edit_headers # show headers when composing
|
||||
set fast_reply # skip to compose when replying
|
||||
set askcc # ask for CC:
|
||||
set fcc_attach # save attachments with the body
|
||||
set mime_forward = yes # forward attachments as part of body
|
||||
set forward_format = "Fwd: %s" # format of subject when forwarding
|
||||
set forward_decode # decode when forwarding
|
||||
set attribution = "On %d, %n wrote:" # format of quoting header
|
||||
set reply_to # reply to Reply to: field
|
||||
set reverse_name # reply as whomever it was to
|
||||
set include # include message in replies
|
||||
set forward_quote # include message in forwards
|
||||
#+END_SRC
|
||||
|
||||
** Attachment View Options
|
||||
#+BEGIN_SRC conf
|
||||
set attach_format = "[%D %t] %2n [%-7.7m/%10.10M] %.40d %> [%s] "
|
||||
set attach_format = "[%D %t] %2n [%-7.7m/%10.10M] %.40d %> [%s] "
|
||||
#+END_SRC
|
||||
|
||||
** Headers
|
||||
#+BEGIN_SRC conf
|
||||
ignore * # ignore all headers
|
||||
unignore from: to: cc: date: subject: # show only these
|
||||
unhdr_order *
|
||||
hdr_order from: to: cc: date: subject: # and in this order
|
||||
ignore * # ignore all headers
|
||||
unignore from: to: cc: date: subject: # show only these
|
||||
unhdr_order *
|
||||
hdr_order from: to: cc: date: subject: # and in this order
|
||||
#+END_SRC
|
||||
|
||||
** Progress Bar
|
||||
#+BEGIN_SRC conf
|
||||
color progress white red
|
||||
color progress white red
|
||||
#+END_SRC
|
||||
|
||||
** TODO Open PDF from mail
|
||||
@ -886,8 +906,17 @@ https://github.com/Roguelazer/muttdown
|
||||
|
||||
** TODO Attachments
|
||||
*** 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
|
||||
*** TODO Add attachment using GUI file manager
|
||||
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.
|
||||
*** 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
|
||||
| Command | Usage |
|
||||
|---------+---------------|
|
||||
|
Loading…
Reference in New Issue
Block a user