.mutt to .config/neomutt
This commit is contained in:
parent
0188752900
commit
64b07dc48c
@ -205,50 +205,50 @@ https://marlam.de/msmtp/
|
|||||||
|
|
||||||
** Defaults
|
** Defaults
|
||||||
#+BEGIN_SRC conf
|
#+BEGIN_SRC conf
|
||||||
defaults
|
defaults
|
||||||
auth on
|
auth on
|
||||||
tls on
|
tls on
|
||||||
tls_certcheck off
|
tls_certcheck off
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
|
||||||
** Gmail Account
|
** Gmail Account
|
||||||
#+BEGIN_SRC conf
|
#+BEGIN_SRC conf
|
||||||
account gmail
|
account gmail
|
||||||
host smtp.gmail.com
|
host smtp.gmail.com
|
||||||
port 587
|
port 587
|
||||||
protocol smtp
|
protocol smtp
|
||||||
from dehaeze.thomas@gmail.com
|
from dehaeze.thomas@gmail.com
|
||||||
user dehaeze.thomas@gmail.com
|
user dehaeze.thomas@gmail.com
|
||||||
passwordeval "pass email/dehaeze.thomas@gmail.com"
|
passwordeval "pass email/dehaeze.thomas@gmail.com"
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
|
||||||
** ESRF Account
|
** ESRF Account
|
||||||
#+BEGIN_SRC conf
|
#+BEGIN_SRC conf
|
||||||
account esrf
|
account esrf
|
||||||
host smtps.esrf.fr
|
host smtps.esrf.fr
|
||||||
port 465
|
port 465
|
||||||
protocol smtp
|
protocol smtp
|
||||||
from thomas.dehaeze@esrf.fr
|
from thomas.dehaeze@esrf.fr
|
||||||
user dehaeze
|
user dehaeze
|
||||||
tls_starttls off
|
tls_starttls off
|
||||||
passwordeval "pass email/thomas.dehaeze@esrf.fr"
|
passwordeval "pass email/thomas.dehaeze@esrf.fr"
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
|
||||||
** ULG Account
|
** ULG Account
|
||||||
#+BEGIN_SRC conf
|
#+BEGIN_SRC conf
|
||||||
account ulg
|
account ulg
|
||||||
host smtp.ulg.ac.be
|
host smtp.ulg.ac.be
|
||||||
port 587
|
port 587
|
||||||
protocol smtp
|
protocol smtp
|
||||||
from thomas.dehaeze@doct.uliege.be
|
from thomas.dehaeze@doct.uliege.be
|
||||||
user s177313
|
user s177313
|
||||||
tls_starttls on
|
tls_starttls on
|
||||||
passwordeval "pass email/thomas.dehaeze@doct.uliege.be"
|
passwordeval "pass email/thomas.dehaeze@doct.uliege.be"
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
|
||||||
** Default Account
|
** Default Account
|
||||||
#+BEGIN_SRC conf
|
#+BEGIN_SRC conf
|
||||||
account default : gmail
|
account default : gmail
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
|
||||||
* TODO Mail Indexer - Mu
|
* TODO Mail Indexer - Mu
|
||||||
@ -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/
|
||||||
@ -271,144 +271,158 @@ Rajouter les keybindings de vim https://github.com/neomutt/neomutt/issues/56#iss
|
|||||||
|
|
||||||
*** Unbind Few keys
|
*** Unbind Few keys
|
||||||
#+BEGIN_SRC conf
|
#+BEGIN_SRC conf
|
||||||
bind index,pager i noop
|
bind index,pager i noop
|
||||||
bind index,pager g noop
|
bind index,pager g noop
|
||||||
bind index,pager \# noop
|
bind index,pager \# noop
|
||||||
bind index \Cf noop
|
bind index \Cf noop
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
|
||||||
*** Index and Pager
|
*** Index and Pager
|
||||||
#+BEGIN_SRC conf
|
#+BEGIN_SRC conf
|
||||||
bind index,pager R group-reply
|
bind index,pager R group-reply
|
||||||
bind index,pager s sync-mailbox
|
bind index,pager s sync-mailbox
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
|
||||||
*** Navigation
|
*** Navigation
|
||||||
#+BEGIN_SRC conf
|
#+BEGIN_SRC conf
|
||||||
bind index <space> collapse-thread
|
bind index <space> collapse-thread
|
||||||
|
|
||||||
bind index k previous-entry
|
bind index k previous-entry
|
||||||
bind pager k previous-line
|
bind pager k previous-line
|
||||||
bind index j next-entry
|
bind index j next-entry
|
||||||
bind pager j next-line
|
bind pager j next-line
|
||||||
bind index l display-message
|
bind index l display-message
|
||||||
bind index gg first-entry
|
bind index gg first-entry
|
||||||
bind pager gg top
|
bind pager gg top
|
||||||
bind index G last-entry
|
bind index G last-entry
|
||||||
bind pager G bottom
|
bind pager G bottom
|
||||||
|
|
||||||
bind attach,index,pager \CD next-page
|
bind attach,index,pager \CD next-page
|
||||||
bind attach,index,pager \CU previous-page
|
bind attach,index,pager \CU previous-page
|
||||||
|
|
||||||
bind index h noop
|
bind index h noop
|
||||||
bind pager h exit
|
bind pager h exit
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
|
||||||
*** Index
|
*** Index
|
||||||
#+BEGIN_SRC conf
|
#+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 p recall-message
|
||||||
bind index,pager N search-opposite
|
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 \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 "<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"
|
||||||
macro index M "<save-message>?<toggle-mailboxes>" "move a message to a mailbox"
|
macro index M "<save-message>?<toggle-mailboxes>" "move a message to a mailbox"
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
|
||||||
*** Quickly change mailboxes
|
*** Quickly change mailboxes
|
||||||
#+BEGIN_SRC conf
|
#+BEGIN_SRC conf
|
||||||
macro index,pager c "<change-folder>?<toggle-mailboxes>" "change folder"
|
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 gm "<change-folder>+gmail/Inbox<enter>" "go to inbox"
|
||||||
macro index,pager ge "<change-folder>+esrf/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 gu "<change-folder>+ulg/Inbox<enter>" "go to inbox"
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
|
||||||
*** TODO Labels
|
*** TODO Labels
|
||||||
#+BEGIN_SRC conf
|
#+BEGIN_SRC conf
|
||||||
bind index,pager y edit-label
|
bind index,pager y edit-label
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
|
||||||
*** Open in Vim
|
*** Open in Vim
|
||||||
#+BEGIN_SRC conf
|
#+BEGIN_SRC conf
|
||||||
bind index,pager V noop
|
bind index,pager V noop
|
||||||
macro index,pager V "|nvim -c 'setlocal ft=mail' -c 'setlocal buftype=nofile' -<enter>" "open in vim"
|
macro index,pager V "|nvim -c 'setlocal ft=mail' -c 'setlocal buftype=nofile' -<enter>" "open in vim"
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
|
||||||
*** Make quick html view macro
|
*** Make quick html view macro
|
||||||
#+BEGIN_SRC conf
|
#+BEGIN_SRC conf
|
||||||
bind index,pager H noop # Unbinds V from version
|
bind index,pager H noop # Unbinds V from version
|
||||||
macro index,pager H "<view-attachments><search>html<enter><view-mailcap><exit>"
|
macro index,pager H "<view-attachments><search>html<enter><view-mailcap><exit>"
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
|
||||||
*** Mouse wheel
|
*** Mouse wheel
|
||||||
#+BEGIN_SRC conf
|
#+BEGIN_SRC conf
|
||||||
bind pager \031 previous-line # Mouse wheel
|
bind pager \031 previous-line # Mouse wheel
|
||||||
bind pager \005 next-line # Mouse wheel
|
bind pager \005 next-line # Mouse wheel
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
|
||||||
*** TODO Contacts
|
*** TODO Contacts
|
||||||
#+BEGIN_SRC conf
|
#+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
|
#+END_SRC
|
||||||
|
|
||||||
*** Compose
|
*** Compose
|
||||||
#+BEGIN_SRC conf
|
#+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
|
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"
|
|
||||||
#+END_SRC
|
#+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"
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
|
||||||
**** TODO Open another instance of neomutt in readonly mode while composing
|
**** TODO Open another instance of neomutt in readonly mode while composing
|
||||||
#+BEGIN_SRC conf
|
#+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
|
#+END_SRC
|
||||||
|
|
||||||
*** TODO Sidebar
|
*** TODO Sidebar
|
||||||
#+BEGIN_SRC conf
|
#+BEGIN_SRC conf
|
||||||
bind index,pager \Ck sidebar-prev
|
bind index,pager \Ck sidebar-prev
|
||||||
bind index,pager \Cj sidebar-next
|
bind index,pager \Cj sidebar-next
|
||||||
bind index,pager \Co sidebar-open
|
bind index,pager \Co sidebar-open
|
||||||
bind index,pager \Cp sidebar-prev-new
|
bind index,pager \Cp sidebar-prev-new
|
||||||
bind index,pager \Cn sidebar-next-new
|
bind index,pager \Cn sidebar-next-new
|
||||||
bind index,pager B sidebar-toggle-visible
|
bind index,pager B sidebar-toggle-visible
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
|
||||||
*** Attachments
|
*** Attachments
|
||||||
#+BEGIN_SRC conf
|
#+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
|
#+END_SRC
|
||||||
|
|
||||||
** Colors
|
** Colors
|
||||||
@ -551,62 +565,62 @@ color body red default "([a-z][a-z0-9+-]*://(((([a-z0-9_.!~*'();:&=+$,-]
|
|||||||
|
|
||||||
** Sidebar
|
** Sidebar
|
||||||
#+BEGIN_SRC conf
|
#+BEGIN_SRC conf
|
||||||
# Should the Sidebar be shown?
|
# Should the Sidebar be shown?
|
||||||
set sidebar_visible = yes
|
set sidebar_visible = yes
|
||||||
|
|
||||||
# How wide should the Sidebar be in screen columns?
|
# How wide should the Sidebar be in screen columns?
|
||||||
# Note: Some characters, e.g. Chinese, take up two columns each.
|
# Note: Some characters, e.g. Chinese, take up two columns each.
|
||||||
set sidebar_width = 20
|
set sidebar_width = 20
|
||||||
|
|
||||||
# Should the mailbox paths be abbreviated?
|
# Should the mailbox paths be abbreviated?
|
||||||
set sidebar_short_path = yes
|
set sidebar_short_path = yes
|
||||||
|
|
||||||
# When abbreviating mailbox path names, use any of these characters as path
|
# When abbreviating mailbox path names, use any of these characters as path
|
||||||
# separators. Only the part after the last separators will be shown.
|
# separators. Only the part after the last separators will be shown.
|
||||||
# For file folders '/' is good. For IMAP folders, often '.' is useful.
|
# For file folders '/' is good. For IMAP folders, often '.' is useful.
|
||||||
set sidebar_delim_chars = '/.'
|
set sidebar_delim_chars = '/.'
|
||||||
|
|
||||||
# If the mailbox path is abbreviated, should it be indented?
|
# If the mailbox path is abbreviated, should it be indented?
|
||||||
set sidebar_folder_indent = yes
|
set sidebar_folder_indent = yes
|
||||||
|
|
||||||
# Indent mailbox paths with this string.
|
# Indent mailbox paths with this string.
|
||||||
set sidebar_indent_string = ' '
|
set sidebar_indent_string = ' '
|
||||||
|
|
||||||
# Make the Sidebar only display mailboxes that contain new, or flagged,
|
# Make the Sidebar only display mailboxes that contain new, or flagged,
|
||||||
# mail.
|
# mail.
|
||||||
set sidebar_new_mail_only = no
|
set sidebar_new_mail_only = no
|
||||||
|
|
||||||
# Any mailboxes that are whitelisted will always be visible, even if the
|
# Any mailboxes that are whitelisted will always be visible, even if the
|
||||||
# sidebar_new_mail_only option is enabled.
|
# sidebar_new_mail_only option is enabled.
|
||||||
# sidebar_whitelist '/home/user/mailbox1'
|
# sidebar_whitelist '/home/user/mailbox1'
|
||||||
# sidebar_whitelist '/home/user/mailbox2'
|
# sidebar_whitelist '/home/user/mailbox2'
|
||||||
|
|
||||||
# When searching for mailboxes containing new mail, should the search wrap
|
# When searching for mailboxes containing new mail, should the search wrap
|
||||||
# around when it reaches the end of the list?
|
# around when it reaches the end of the list?
|
||||||
set sidebar_next_new_wrap = no
|
set sidebar_next_new_wrap = no
|
||||||
|
|
||||||
# Show the Sidebar on the right-hand side of the screen
|
# Show the Sidebar on the right-hand side of the screen
|
||||||
set sidebar_on_right = no
|
set sidebar_on_right = no
|
||||||
|
|
||||||
# The character to use as the divider between the Sidebar and the other Mutt
|
# The character to use as the divider between the Sidebar and the other Mutt
|
||||||
# panels.
|
# panels.
|
||||||
# Note: Only the first character of this string is used.
|
# Note: Only the first character of this string is used.
|
||||||
set sidebar_divider_char = '│'
|
set sidebar_divider_char = '│'
|
||||||
|
|
||||||
# Enable extended buffy mode to calculate total, new, and flagged
|
# Enable extended buffy mode to calculate total, new, and flagged
|
||||||
# message counts for each mailbox.
|
# message counts for each mailbox.
|
||||||
set mail_check_stats
|
set mail_check_stats
|
||||||
|
|
||||||
# Display the Sidebar mailboxes using this format string.
|
# Display the Sidebar mailboxes using this format string.
|
||||||
set sidebar_format = '%B%?F? [%F]?%* %?N?%N/?%S'
|
set sidebar_format = '%B%?F? [%F]?%* %?N?%N/?%S'
|
||||||
|
|
||||||
# Sort the mailboxes in the Sidebar using this method:
|
# Sort the mailboxes in the Sidebar using this method:
|
||||||
# count - total number of messages
|
# count - total number of messages
|
||||||
# flagged - number of flagged messages
|
# flagged - number of flagged messages
|
||||||
# new - number of new messages
|
# new - number of new messages
|
||||||
# path - mailbox path
|
# path - mailbox path
|
||||||
# unsorted - do not sort the mailboxes
|
# unsorted - do not sort the mailboxes
|
||||||
set sidebar_sort_method = 'unsorted'
|
set sidebar_sort_method = 'unsorted'
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
|
||||||
** TODO [#A] Searching using Mu
|
** TODO [#A] Searching using Mu
|
||||||
@ -629,13 +643,13 @@ 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,113 +657,120 @@ 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
|
||||||
#+BEGIN_SRC conf
|
#+BEGIN_SRC conf
|
||||||
set spoolfile = "+gmail/Inbox" # Default inbox
|
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
|
||||||
|
|
||||||
macro index,pager d \
|
macro index,pager d \
|
||||||
"<save-message>+gmail/Archive<enter>" \
|
"<save-message>+gmail/Archive<enter>" \
|
||||||
"Move message to the Archive"
|
"Move message to the Archive"
|
||||||
|
|
||||||
macro index,pager D \
|
macro index,pager D \
|
||||||
"<save-message>+gmail/Trash<enter>" \
|
"<save-message>+gmail/Trash<enter>" \
|
||||||
"Move message to the Trash"
|
"Move message to the Trash"
|
||||||
#+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"
|
||||||
|
|
||||||
# Other special folders.
|
# Other special folders.
|
||||||
set mbox = "+esrf/Archive"
|
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
|
||||||
|
|
||||||
macro index,pager d \
|
macro index,pager d \
|
||||||
"<save-message>+esrf/Archive<enter>" \
|
"<save-message>+esrf/Archive<enter>" \
|
||||||
"Move message to the Archive"
|
"Move message to the Archive"
|
||||||
|
|
||||||
macro index,pager D \
|
macro index,pager D \
|
||||||
"<save-message>+esrf/Trash<enter>" \
|
"<save-message>+esrf/Trash<enter>" \
|
||||||
"Move message to the Trash"
|
"Move message to the Trash"
|
||||||
#+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"
|
||||||
|
|
||||||
# Other special folders.
|
# Other special folders.
|
||||||
set mbox = "+ulg/Archive"
|
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
|
||||||
|
|
||||||
macro index,pager d \
|
macro index,pager d \
|
||||||
"<save-message>+ulg/Archive<enter>" \
|
"<save-message>+ulg/Archive<enter>" \
|
||||||
"Move message to the Archive"
|
"Move message to the Archive"
|
||||||
|
|
||||||
macro index,pager D \
|
macro index,pager D \
|
||||||
"<save-message>+ulg/Trash<enter>" \
|
"<save-message>+ulg/Trash<enter>" \
|
||||||
"Move message to the Trash"
|
"Move message to the Trash"
|
||||||
#+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.
|
||||||
#+BEGIN_SRC conf
|
#+BEGIN_SRC conf
|
||||||
mailboxes \
|
mailboxes \
|
||||||
+search \
|
+search \
|
||||||
"+Google" \
|
"+Google" \
|
||||||
+gmail/Inbox \
|
+gmail/Inbox \
|
||||||
@ -770,8 +791,8 @@ mailboxes \
|
|||||||
+ulg/Sent \
|
+ulg/Sent \
|
||||||
+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.
|
||||||
@ -782,95 +803,94 @@ set editor = "nvim -c '/\\n--' -c ':noh' -c 'startinsert'"
|
|||||||
|
|
||||||
** Basic Options
|
** Basic Options
|
||||||
#+BEGIN_SRC conf
|
#+BEGIN_SRC conf
|
||||||
set wait_key = no # shut up, mutt
|
set wait_key = no # shut up, mutt
|
||||||
set mbox_type = Maildir # mailbox type
|
set mbox_type = Maildir # mailbox type
|
||||||
set help = no # No top bar
|
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!!
|
set mark_old = no # read/new is good enough for me
|
||||||
set mark_old = no # read/new is good enough for me
|
set beep_new # bell on new mails
|
||||||
set beep_new # bell on new mails
|
# set pipe_decode # strip headers and eval mimes when piping
|
||||||
# set pipe_decode # strip headers and eval mimes when piping
|
set thorough_search # strip headers and eval mimes before searching
|
||||||
set thorough_search # strip headers and eval mimes before searching
|
set send_charset="us-ascii:utf-8:iso-8859-1"
|
||||||
set send_charset="us-ascii:utf-8:iso-8859-1"
|
set use_from # respect the From: address the editor sends back
|
||||||
set use_from # respect the From: address the editor sends back
|
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
|
||||||
** Status Bar
|
** Status Bar
|
||||||
#+BEGIN_SRC conf
|
#+BEGIN_SRC conf
|
||||||
set status_on_top = no
|
set status_on_top = no
|
||||||
set status_chars = " *%A"
|
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_format = "───[ Folder: %f ]───[%r%m messages%?n? (%n new)?%?d? (%d to delete)?%?t? (%t tagged)? ]───%>─%?p?( %p postponed )?───"
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
|
||||||
** Index View Options
|
** Index View Options
|
||||||
#+BEGIN_SRC conf
|
#+BEGIN_SRC conf
|
||||||
set date_format = "%d/%m/%y %H:%M"
|
set date_format = "%d/%m/%y %H:%M"
|
||||||
set index_format = "[%Z] %D %-20.20F %s"
|
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 = " %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 index_format='%4C %S %[%y.%m.%d] %-18.18n %?GU?%GU& ? %?GR?%GR& ? %?GI?%GI& ? %s'
|
||||||
|
|
||||||
set sort = threads # like gmail
|
set sort = threads # like gmail
|
||||||
set sort_aux = reverse-last-date-received # like gmail
|
set sort_aux = reverse-last-date-received # like gmail
|
||||||
set uncollapse_jump # don't collapse on an unread message
|
set uncollapse_jump # don't collapse on an unread message
|
||||||
set sort_re # thread based on regex
|
set sort_re # thread based on regex
|
||||||
set reply_regexp = "^(([Rr][Ee]?(\[[0-9]+\])?: *)?(\[[^]]+\] *)?)*"
|
set reply_regexp = "^(([Rr][Ee]?(\[[0-9]+\])?: *)?(\[[^]]+\] *)?)*"
|
||||||
set folder_format = "%2C %t %N %8s %f"
|
set folder_format = "%2C %t %N %8s %f"
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
|
||||||
** Pager View Options
|
** Pager View Options
|
||||||
#+BEGIN_SRC conf
|
#+BEGIN_SRC conf
|
||||||
set pager_index_lines = 10 # number of index lines to show
|
set pager_index_lines = 10 # number of index lines to show
|
||||||
set pager_context = 3 # number of context lines to show
|
set pager_context = 3 # number of context lines to show
|
||||||
set pager_stop # don't go to next message automatically
|
set pager_stop # don't go to next message automatically
|
||||||
set menu_scroll # scroll in menus
|
set menu_scroll # scroll in menus
|
||||||
set tilde # show tildes like in vim
|
set tilde # show tildes like in vim
|
||||||
set markers = no # no ugly plus signs
|
set markers = no # no ugly plus signs
|
||||||
set quote_regexp = "^( {0,4}[>|:#%]| {0,4}[a-z0-9]+[>|]+)+"
|
set quote_regexp = "^( {0,4}[>|:#%]| {0,4}[a-z0-9]+[>|]+)+"
|
||||||
|
|
||||||
auto_view text/html # view html automatically
|
auto_view text/html # view html automatically
|
||||||
alternative_order text/plain text/enriched text/html # save html for last
|
alternative_order text/plain text/enriched text/html # save html for last
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
|
||||||
** Compose View Options
|
** Compose View Options
|
||||||
#+BEGIN_SRC conf
|
#+BEGIN_SRC conf
|
||||||
set envelope_from # which from?
|
set envelope_from # which from?
|
||||||
set sig_dashes # dashes before sig
|
set sig_dashes # dashes before sig
|
||||||
set sig_on_top # the signature is just below the response
|
set sig_on_top # the signature is just below the response
|
||||||
set edit_headers # show headers when composing
|
set edit_headers # show headers when composing
|
||||||
set fast_reply # skip to compose when replying
|
set fast_reply # skip to compose when replying
|
||||||
set askcc # ask for CC:
|
set askcc # ask for CC:
|
||||||
set fcc_attach # save attachments with the body
|
set fcc_attach # save attachments with the body
|
||||||
set mime_forward = yes # forward attachments as part of body
|
set mime_forward = yes # forward attachments as part of body
|
||||||
set forward_format = "Fwd: %s" # format of subject when forwarding
|
set forward_format = "Fwd: %s" # format of subject when forwarding
|
||||||
set forward_decode # decode when forwarding
|
set forward_decode # decode when forwarding
|
||||||
set attribution = "On %d, %n wrote:" # format of quoting header
|
set attribution = "On %d, %n wrote:" # format of quoting header
|
||||||
set reply_to # reply to Reply to: field
|
set reply_to # reply to Reply to: field
|
||||||
set reverse_name # reply as whomever it was to
|
set reverse_name # reply as whomever it was to
|
||||||
set include # include message in replies
|
set include # include message in replies
|
||||||
set forward_quote # include message in forwards
|
set forward_quote # include message in forwards
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
|
||||||
** Attachment View Options
|
** Attachment View Options
|
||||||
#+BEGIN_SRC conf
|
#+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
|
#+END_SRC
|
||||||
|
|
||||||
** Headers
|
** Headers
|
||||||
#+BEGIN_SRC conf
|
#+BEGIN_SRC conf
|
||||||
ignore * # ignore all headers
|
ignore * # ignore all headers
|
||||||
unignore from: to: cc: date: subject: # show only these
|
unignore from: to: cc: date: subject: # show only these
|
||||||
unhdr_order *
|
unhdr_order *
|
||||||
hdr_order from: to: cc: date: subject: # and in this order
|
hdr_order from: to: cc: date: subject: # and in this order
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
|
||||||
** Progress Bar
|
** Progress Bar
|
||||||
#+BEGIN_SRC conf
|
#+BEGIN_SRC conf
|
||||||
color progress white red
|
color progress white red
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
|
||||||
** TODO Open PDF from mail
|
** TODO Open PDF from mail
|
||||||
@ -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…
Reference in New Issue
Block a user