October 3, 2023

My .muttrc file

# GPG configuration file
source ~/.config/mutt/gpg.rc

# Color settings file
source ~/.config/mutt/color.mutt

# Char encoding
set send_charset="utf-8"
set assumed_charset="iso-8859-1"

# Sidebar settings
set mail_check_stats
set sidebar_visible = no
set sidebar_width = 20
set sidebar_short_path = yes
set sidebar_next_new_wrap = yes
set sidebar_format = '%B%?F? [%F]?%* %?N?%N/? %?S?%S?'

# Sidebar keybinding
bind index,pager \Ck sidebar-prev
bind index,pager \Cj sidebar-next
bind index,pager \Cl sidebar-open
bind index,pager \Cp sidebar-prev-new # not adopted yet
bind index,pager \Cn sidebar-next-new # not adopted yet
bind index,pager b sidebar-toggle-visible

# Aliases configuration file & settings
source ~/.mail_aliases
set alias_file=~/.mail_aliases

# keybinding
bind index               g         noop
bind index               gg        first-entry
bind index               g         last-entry
macro index,pager gi "<change-folder>=INBOX<enter>" "go to inbox"
macro index,pager gs "<change-folder>=Sent<enter>" "go to sent"
macro index,pager gd "<change-folder>=Drafts<enter>" "go to drafts"
macro index,pager gt "<change-folder>=Trash<enter>" "go to trash"

# pager settings
set markers = no # disables the `+` displayed at line wraps

# html view settings
auto_view text/html # view html automatically
set mailcap_path = ~/.config/mutt/mailcap # tap v to open html email in browser - does that actually work?

# messsage composition
set editor = "vim"

# synchronization settings ['s' to sync]
macro index S '<shell-escape>mbsync -V yctct<enter>' "sync email"


# Account settings, guide used: https://blog.flaport.net/configuring-neomutt-for-email.html
set from = redacted_email_address
set realname = 'redacted_name' 
set use_from = yes

# Store settings
set mbox_type = Maildir # type of mailbox format to use; well explained in the manual of Mutt
set folder = "~/Mail/yctct/" # folders from which to retrieve emails

# msmtp settings
set sendmail = "msmtp -a yctct"

# cache settings
set header_cache = "~/Mail/yctct/" # optional - speeds up opening large folders
set message_cachedir = "~/Mail/yctct/" # optional - speeds up loading messages 

# mailbox settings
set spoolfile=+INBOX 
set postponed = +Drafts
set record = +Sent
set trash = +Trash # tells mutt to store deleted message to folder Trash

personal computing command-line interface (cli) gnu linux trisquel shell literacy office applications wiki mutt

No affiliate links, no analytics, no tracking, no cookies. This work © 2016-2024 by yctct is licensed under CC BY-ND 4.0 .   about me   contact me   all entries & tags   FAQ   GPG public key

GPG fingerprint: 2E0F FB60 7FEF 11D0 FB45 4DDC E979 E52A 7036 7A88