muttrc.bak (7009B)
1 # Multiple accounts 2 macro index,pager <f1> '<sync-mailbox><enter-command>source ~/.config/mutt/muttrc<enter><change-folder>!<enter>' 3 macro index,pager <f2> '<sync-mailbox><enter-command>source ~/.config/mutt/personal<enter><change-folder>!<enter>' 4 macro index,pager <f3> '<sync-mailbox><enter-command>source ~/.config/mutt/work<enter><change-folder>!<enter>' 5 6 # Personal Details 7 set realname="Mahdi Mirzade" 8 set from="[email protected]" 9 set use_from=yes 10 set use_envelope_from=yes 11 set reverse_name=yes 12 13 # Mail Server 14 set mbox_type=Maildir 15 set folder="~/.local/share/mail/acct0" 16 set smtp_url = "smtps://[email protected]" 17 set smtp_pass = `pass email` 18 set ssl_force_tls = yes 19 20 # Mailboxes 21 set spoolfile="+Inbox" 22 set postponed="+Drafts" 23 set record="+Sent" 24 set trash="+Trash" 25 26 macro index 1 "<change-folder> =Inbox<enter>" 27 macro index 2 "<change-folder> =Drafts<enter>" 28 macro index 3 "<change-folder> =Sent<enter>" 29 macro index 4 "<change-folder> =Trash<enter>" 30 macro index 5 "<change-folder> =Junk<enter>" 31 32 # Settings 33 set mailcap_path="~/.config/mutt/mailcap" 34 set display_filter="sh ~/.config/mutt/display" 35 macro attach s <save-entry><bol>~/Downloads/<eol> 36 37 set sleep_time = 0 # Pause 0 seconds for informational messages 38 set mime_forward # attachments are forwarded with mail 39 set fast_reply # skip to compose when replying 40 set fcc_attach # save attachments with the body 41 set forward_format = "Fwd: %s" # format of subject when forwarding 42 set forward_quote # include message in forwards 43 set reverse_name # reply as whomever it was to 44 set include # include message in replies 45 set delete # Don't ask to confirm purge deleted message on sync 46 unset recall # Don't ask to recall postponed message when Composing 47 unset markers # Disables the `+` displayed at line wraps 48 unset mark_old # Unread mail stay unread until read 49 unset wait_key # mutt won't ask "press key to continue" 50 unset help # remove help bar 51 52 # Bindings 53 54 bind index "l" display-message 55 bind pager "l" view-attachments 56 bind attach "l" view-mailcap 57 bind browser "l" select-entry 58 59 bind index,attach g first-entry 60 bind index,attach G last-entry 61 62 macro index,pager o "<pipe-entry>tee /tmp/muttb<enter><shell-escape>tmux split-window 'fh -e \"$(cat /tmp/muttb)\" && rm -f /tmp/muttb'<enter>" 63 macro index,pager o "<pipe-message>tee /tmp/muttb<enter><shell-escape>tmux split-window 'fh -e \"$(cat /tmp/muttb)\" && rm -f /tmp/muttb'<enter>" 64 65 bind index d delete-message 66 bind index D undelete-message 67 68 macro index,pager U <clear-flag>O "Mark as read" 69 macro index,pager u <set-flag>O "Mark as unread" 70 71 bind index,pager s sync-mailbox 72 # macro index m "<shell-escape>mirror -m<enter>" "run mbsync to sync all mail" 73 bind index,pager m imap-fetch-mail 74 75 bind editor <Tab> complete-query 76 77 macro index h "T~U<enter><tag-prefix><clear-flag>N<untag-pattern>.<enter>" "mark all messages as read" 78 79 bind index,pager i mail 80 81 bind index,pager f search 82 bind index,pager F search-reverse 83 84 # bind index,pager m search-next 85 # bind index,pager M search-opposite 86 87 bind index,pager ';' quit 88 89 bind index <Space> tag-entry 90 91 # Sidebar mappings 92 set sidebar_visible = yes 93 set sidebar_width = 20 94 set sidebar_short_path = yes 95 set sidebar_next_new_wrap = yes 96 set mail_check_stats 97 set sidebar_format = '%D%?F? [%F]?%* %?N?%N/? %?S?%S?' 98 bind index,pager \Ck sidebar-prev 99 bind index,pager \Cj sidebar-next 100 bind index,pager \Co sidebar-open 101 bind index,pager \Cp sidebar-prev-new 102 bind index,pager \Cn sidebar-next-new 103 bind index,pager B sidebar-toggle-visible 104 105 #set crypt_autosign = yes 106 #set crypt_opportunistic_encrypt = yes 107 #set pgp_self_encrypt = yes 108 #set pgp_default_key = '[email protected]' 109 110 # Colors 111 # Default index colors: 112 color index yellow default '.*' 113 114 # New mail is boldened: 115 color index brightyellow black "~N" 116 117 # Tagged mail is highlighted: 118 color index brightyellow blue "~T" 119 120 # Other colors and aesthetic settings: 121 mono bold bold 122 mono underline underline 123 mono indicator reverse 124 mono error bold 125 color normal default default 126 color indicator brightblack white 127 color normal brightyellow default 128 color error red default 129 color tilde black default 130 color message cyan default 131 color markers red white 132 color attachment white default 133 color search brightmagenta default 134 color status brightyellow black 135 color hdrdefault brightgreen default 136 color quoted green default 137 color quoted1 blue default 138 color quoted2 cyan default 139 color quoted3 yellow default 140 color quoted4 red default 141 color quoted5 brightred default 142 color signature brightgreen default 143 color bold black default 144 color underline black default 145 color normal default default 146 147 # Regex highlighting: 148 color header brightmagenta default "^From" 149 color header brightcyan default "^Subject" 150 color header brightwhite default "^(CC|BCC)" 151 color header blue default ".*" 152 color body brightred default "[\-\.+_a-zA-Z0-9]+@[\-\.a-zA-Z0-9]+" # Email addresses 153 color body brightblue default "(https?|ftp)://[\-\.,/%~_:?&=\#a-zA-Z0-9]+" # URL 154 color body green default "\`[^\`]*\`" # Green text between ` and ` 155 color body brightblue default "^# \.*" # Headings as bold blue 156 color body brightcyan default "^## \.*" # Subheadings as bold cyan 157 color body brightgreen default "^### \.*" # Subsubheadings as bold green 158 color body yellow default "^(\t| )*(-|\\*) \.*" # List items as yellow 159 color body brightcyan default "[;:][-o][)/(|]" # emoticons 160 color body brightcyan default "[;:][)(|]" # emoticons 161 color body brightcyan default "[ ][*][^*]*[*][ ]?" # more emoticon? 162 color body brightcyan default "[ ]?[*][^*]*[*][ ]" # more emoticon? 163 color body red default "(BAD signature)" 164 color body cyan default "(Good signature)" 165 color body brightblack default "^gpg: Good signature .*" 166 color body brightyellow default "^gpg: " 167 color body brightyellow red "^gpg: BAD signature from.*" 168 mono body bold "^gpg: Good signature" 169 mono body bold "^gpg: BAD signature from.*" 170 color body red default "([a-z][a-z0-9+-]*://(((([a-z0-9_.!~*'();:&=+$,-]|%[0-9a-f][0-9a-f])*@)?((([a-z0-9]([a-z0-9-]*[a-z0-9])?)\\.)*([a-z]([a-z0-9-]*[a-z0-9])?)\\.?|[0-9]+\\.[0-9]+\\.[0-9]+\\.[0-9]+)(:[0-9]+)?)|([a-z0-9_.!~*'()$,;:@&=+-]|%[0-9a-f][0-9a-f])+)(/([a-z0-9_.!~*'():@&=+$,-]|%[0-9a-f][0-9a-f])*(;([a-z0-9_.!~*'():@&=+$,-]|%[0-9a-f][0-9a-f])*)*(/([a-z0-9_.!~*'():@&=+$,-]|%[0-9a-f][0-9a-f])*(;([a-z0-9_.!~*'():@&=+$,-]|%[0-9a-f][0-9a-f])*)*)*)?(\\?([a-z0-9_.!~*'();/?:@&=+$,-]|%[0-9a-f][0-9a-f])*)?(#([a-z0-9_.!~*'();/?:@&=+$,-]|%[0-9a-f][0-9a-f])*)?|(www|ftp)\\.(([a-z0-9]([a-z0-9-]*[a-z0-9])?)\\.)*([a-z]([a-z0-9-]*[a-z0-9])?)\\.?(:[0-9]+)?(/([-a-z0-9_.!~*'():@&=+$,]|%[0-9a-f][0-9a-f])*(;([-a-z0-9_.!~*'():@&=+$,]|%[0-9a-f][0-9a-f])*)*(/([-a-z0-9_.!~*'():@&=+$,]|%[0-9a-f][0-9a-f])*(;([-a-z0-9_.!~*'():@&=+$,]|%[0-9a-f][0-9a-f])*)*)*)?(\\?([-a-z0-9_.!~*'();/?:@&=+$,]|%[0-9a-f][0-9a-f])*)?(#([-a-z0-9_.!~*'();/?:@&=+$,]|%[0-9a-f][0-9a-f])*)?)[^].,:;!)? \t\r\n<>\"]"