larry77

my muttrc

Aug 24th, 2021
188
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 33.44 KB | None | 0 0
  1.  
  2.  
  3. # set editor="emacs -nw --no-init-file --load ~/.emacs-mail +7:0"
  4.  
  5. #set editor="emacs -nw --load ~/.emacs-mail +8:0"
  6.  
  7.  
  8. set editor="emacs -nw +8:0"
  9.  
  10. # set editor="emacsclient -a \"\" -t +8:0"
  11.  
  12. #set editor="emacs -a \"\" -t +8:0"
  13.  
  14.  
  15. #Speed up folder switch
  16. set sleep_time = 0
  17.  
  18. # Don't let your firewall kill your idle connection.
  19. set imap_keepalive = 900
  20.  
  21. # Do not copy sent mail. Gmail smtp already does this.
  22. set copy = no
  23.  
  24.  
  25. set folder = "imaps://imap.gmail.com:993"
  26. set spoolfile = "+INBOX" #or +[Gmail]/Important
  27. # set postponed="+[Google Mail]/Drafts"
  28.  
  29.  
  30. set header_cache=~/.mutt/cache/headers
  31. set message_cachedir=~/.mutt/cache/bodies
  32. set certificate_file=~/.mutt/certificates
  33.  
  34. set move = no
  35.  
  36.  
  37.  
  38. macro index,pager \cb "<pipe-message> urlscan<Enter>" "call urlscan to extract URLs out of a message"
  39.  
  40. macro attach,compose \cb "<pipe-entry> urlscan<Enter>" "call urlscan to extract URLs out of a message"
  41.  
  42. #Or see everything using w3m and going to the link page with a text browser.
  43.  
  44. macro index,pager \ca ": unset wait_key; set pipe_decode\n|w3m\n: set wait_key; unset pipe_decode\n" "call w3m to extract URLs out of a message"
  45.  
  46.  
  47. # macro index,pager \cb "<enter-command> set my_pdsave=\$pipe_decode<enter>\
  48. # <enter-command> unset pipe_decode<enter>\
  49. # <pipe-message>extract_url.pl<enter>\
  50. # <enter-command> set pipe_decode=\$my_pdsave<enter>" "get URLs"
  51.  
  52.  
  53. #,----[ Muttrc ]
  54. # macro index \cb "\
  55. # : set my_tmp_pipe_decode=\$pipe_decode\n\
  56. # : set pipe_decode\n\
  57. # |urlview\n\
  58. # : set pipe_decode=\$my_tmp_pipe_decode\n\
  59. # : unset my_tmp_pipe_decode\n" \
  60. # 'call urlview to extract URLs out of a message'
  61. #`----
  62.  
  63. # # View links in the pager using urlscan.
  64. # macro pager o "<pipe-entry> urlscan<enter>" 'View Links'
  65.  
  66.  
  67. # macro index \cb "\
  68. # : set my_tmp_pipe_decode=\$pipe_decode\n\
  69. # : set pipe_decode\n\
  70. # |urlscan\n\
  71. # : set pipe_decode=\$my_tmp_pipe_decode\n\
  72. # : unset my_tmp_pipe_decode\n" \
  73. # 'call urlscan to extract URLs out of a message'
  74.  
  75.  
  76.  
  77. # View URLs inside Mutt
  78. # macro index \cb "|urlview\n"
  79. # macro pager \cb "|urlview\n"
  80.  
  81.  
  82. # macro pager \cb <pipe-entry>'w3m'<enter> 'Follow links in w3m'
  83.  
  84.  
  85. #set sort_aux = 'threads'
  86. #set sort = 'last-date-received'
  87. #set imap_check_subscribed
  88.  
  89. set narrow_tree # narrow threading trees
  90. set strict_threads # don't thread by subject
  91.  
  92. # Sort by newest conversation first.
  93. set sort = reverse-threads
  94. set sort_aux = last-date-received
  95. set imap_check_subscribed
  96. unset imap_passive
  97.  
  98. ignore "Authentication-Results:"
  99. ignore "DomainKey-Signature:"
  100. ignore "DKIM-Signature:"
  101.  
  102. #hdr_order Date From To Cc
  103.  
  104. #set mail_check=90
  105. #set timeout=15
  106.  
  107.  
  108. # How often should mutt check for new mail?
  109. set mail_check=60
  110. # Notify me of new mail in my mailbox this often
  111. set timeout=15
  112. set imap_check_subscribed
  113.  
  114. set edit_headers # see headers when editing mail
  115. set include # quote msg when replying
  116. set reply_to # use adress from reply-to header when replying
  117. set fast_reply # do not ask for to, sbuject,.. when replying
  118. set auto_tag # if something is tagged run commands on all tagged msgs
  119. set delete_untag # untag msgs when marking them for deletion
  120. set mark_old = no # don't differentiate between new and old
  121.  
  122. set forward_format="Fwd: %s"
  123.  
  124. set postpone=ask-yes # ask for postponing when doing an Abort.
  125. set quit=yes
  126. set delete=yes # ask for confirmation when deleting messages?
  127. set include=yes # quote message, when replying
  128. set abort_nosubject=no # Abort, if message has no subject.
  129. set recall=no # don't ask for using postponed message.
  130. set abort_unmodified=no # Abort, if message wasn't edited.
  131. set pager_stop # stay at the current mail when page-down'ing
  132. set menu_scroll # scroll in menus
  133.  
  134.  
  135. # set display_filter=~/.createalias.sh # filters new messages through a shell script that automatically generates a mutt alias for new senders
  136.  
  137.  
  138.  
  139. set query_command="goobook query '%s'"
  140. macro index,pager a "<pipe-message>goobook add<return>" "add sender to google contacts"
  141. bind editor <Tab> complete-query
  142.  
  143.  
  144. bind index g noop
  145. bind pager g noop
  146. bind index . noop
  147. bind pager . noop
  148.  
  149.  
  150. # In what order should the header fields be presented?
  151.  
  152. # Gmail have the notion of labels
  153. # If a message has several labels, we actually need to move it to the
  154. # trash to remove all labels (delete from all folders)
  155. # This one requires mutt with the trash patch
  156. #set trash = "=+[Google Mail]/Bin"
  157.  
  158.  
  159.  
  160. #set trash="imaps://imap.gmail.com/[Google Mail]/Bin"
  161.  
  162.  
  163.  
  164.  
  165.  
  166.  
  167.  
  168. # .mutt/muttrc
  169. folder-hook '[email protected]' 'source ~/.account1'
  170. folder-hook '[email protected]' 'source ~/.account2'
  171.  
  172. macro index,pager <f2> '<sync-mailbox><enter-command>source ~/.account1<enter><change-folder>!<enter>'
  173. macro index,pager <f3> '<sync-mailbox><enter-command>source ~/.account2<enter><change-folder>!<enter>'
  174.  
  175. bind index,pager .r group-reply #Reply all
  176. set write_bcc = yes # I will be able to see to whom I BCCed the email
  177.  
  178.  
  179.  
  180.  
  181. # switch to default account on startup
  182. source ~/.account1
  183.  
  184.  
  185.  
  186.  
  187.  
  188.  
  189.  
  190. # # Gmail style keybindings
  191.  
  192. ###############
  193. #à CAREFUL!!! Some of these bindings have been commented out because they gave
  194. # rise to some incompatibilities/overrode some other useful commands!
  195. # see http://bit.ly/1qWPnIA for the original formulation
  196. #Some of them are now parsed in the account1 and account2 files
  197. # since I cannot bind the same command to going to different directories
  198. # otherwise.
  199.  
  200.  
  201. bind editor <space> noop #FUNDAMENTAL!!! If I remove this, I have problems
  202. #with all the folders having a space in their name!!!!
  203.  
  204.  
  205. # #bind index,pager c mail #Compose
  206. # macro index,pager e "<save-message>=[Google Mail]/All Mail<enter><enter>" "Archive conversation"
  207. # bind generic x tag-entry #Select Conversation
  208. # bind index x tag-thread #Select Conversation
  209. # bind pager x tag-message #Select Conversation
  210. bind index,pager s flag-message #Star a message
  211.  
  212. macro index,pager + "<save-message>=[Google Mail]/Important<enter><enter>" "Mark as important"
  213. macro index,pager - "<save-message>=INBOX<enter><enter>" "Move to INBOX"
  214. macro index,pager ! "<save-message>=[Google Mail]/Spam<enter><enter>" "Report spam"
  215.  
  216. # bind index,pager \# delete-thread #Delete
  217. # bind index,pager L copy-message #Label
  218. # #bind index,pager v save-message #Move to
  219. # macro index,pager I <set-flag>O "Mark as read"
  220. # macro index,pager U <clear-flag>O "Mark as unread"
  221.  
  222. # macro index,pager ga "<change-folder>=[Gmail]/All Mail<enter>" "Go to all mail"
  223.  
  224.  
  225.  
  226. # macro index,pager gs "<change-folder>=[Google Mail]/Starred<enter>" "Go to starred messages"
  227.  
  228. # macro index,pager gd "<change-folder>=[Google Mail]/Drafts<enter>" "Go to 'Drafts'"
  229. # macro index,pager gl "<change-folder>?" "Go to 'Label'"
  230. macro index,pager gi "<change-folder>=INBOX<enter>" "Go to inbox"
  231. # macro index,pager gt "<change-folder>=[Google Mail]/Sent Mail<enter>" "Go to 'Sent Mail'"
  232.  
  233.  
  234. # folder-hook +INBOX 'macro index,pager y "<save-message>=[Gmail]/All Mail<enter><enter>" "Archive conversation"'
  235.  
  236.  
  237. #folder-hook +[Google Mail]/Trash macro index,pager y <save-message>=INBOX<enter><enter> "Move to inbox"
  238. #folder-hook +[Google Mail]/Starred bind index,pager y flag-message #"Toggle star"
  239.  
  240. # This should be ' »›-‹L' to match Gmail, but $to_chars breaks on unicode.
  241. set to_chars = ' +>-<L'
  242. # Don't move read mail.
  243. set move = no
  244.  
  245.  
  246. # Saner copy/move dialogs
  247. macro index C "<copy-message>?<toggle-mailboxes>" "copy a message to a mailbox"
  248. macro index M "<save-message>?<toggle-mailboxes>" "move a message to a mailbox"
  249.  
  250. macro index \cw "<save-message>=[Google Mail]/Sent Mail<enter><enter>" "Move to 'Sent Mail'"
  251.  
  252.  
  253. # show only new / all messages
  254. macro index .n "l~N\n" "Show only new messages"
  255. macro index .a "l~A\n" "Show all messages"
  256. macro index .m "T~N<enter>;WNT~O<enter>;WO\CT~T<enter>" "mark all messages read"
  257.  
  258.  
  259.  
  260. # Show folder with new mails
  261. macro index .. "<buffy-list>" "list mailboxes with new mail"
  262.  
  263. # reload ~/.muttrc
  264. macro index <F12> "<enter-command>source ~/.muttrc<enter>" "Reload ~/.muttrc"
  265. # Mark all messages as read (useful for NG's ;))
  266.  
  267. # # Something to mark a whole folder as ‘read’
  268. # # Line by line,
  269. # # 1. Tag all Unread or Old messages
  270. # # 2. If any messages are tagged, [macro aborts otherwise]
  271. # # 3. Clear the Unread flag
  272. # # 4. Clear the Old flag
  273. # # 5. Untag all messages
  274. # macro index {{esc}}m ‘\
  275. # {{tag-pattern}}~N|~O{{enter}}\
  276. # {{tag-prefix-cond}}\
  277. # {{tag-prefix}}{{clear-flag}}N\
  278. # {{tag-prefix}}{{clear-flag}}O\
  279. # {{untag-pattern}}~T{{enter}}’ “mark all messages read”
  280.  
  281. set quote_regexp = "^( {0,4}[>|:#%]| {0,4}[a-z0-9]+[>|]+)+"
  282.  
  283. # #Handling html files
  284.  
  285. set mailcap_path = ~/.mailcap
  286.  
  287.  
  288. set smart_wrap
  289.  
  290.  
  291. auto_view text/html # view html automatically
  292. alternative_order text/plain text/enriched text/html
  293.  
  294. auto_view text/x-vcard # vcard attachments viewed through mutt.vcard.filter
  295. set implicit_autoview=yes # Load in pager if setting in .mailcap says 'copiousoutput'.
  296.  
  297.  
  298. macro pager ,@aoh= "\
  299. <enter-command> unalternative_order *; \
  300. alternative_order text/enriched text/html text/plain text;\
  301. macro pager A ,@aot= 'toggle alternative order'<enter>\
  302. <exit><display-message>"
  303.  
  304. macro pager ,@aot= "\
  305. <enter-command> unalternative_order *; \
  306. alternative_order text/enriched text/plain text/html text;\
  307. macro pager A ,@aoh= 'toggle alternative order'<enter>\
  308. <exit><display-message>"
  309.  
  310. macro pager A ,@aot= "toggle alternative order"
  311.  
  312. set markers=no #no ugly + signs...
  313.  
  314. #mutt sidebar settings
  315. bind index,pager \Cp sidebar-prev
  316. bind index,pager \Cn sidebar-next
  317. bind index,pager \Co sidebar-open
  318. macro index,pager B '<enter-command>toggle sidebar_visible<enter>'
  319. color sidebar_new yellow default
  320.  
  321. # set sidebar_shortpath = yes ## I added this to avoid the problem of truncated folder names in the 1.6.x mutt version. See http://bit.ly/1WSJmQC .
  322.  
  323.  
  324. # Sidebar Patch --------------------------------------
  325. # set sidebar_delim = ' │'
  326. set sidebar_visible = yes
  327. set sidebar_width = 20
  328. color sidebar_new color221 color203
  329.  
  330.  
  331.  
  332.  
  333.  
  334. macro index B '<enter-command>toggle sidebar_visible<enter><refresh>'
  335. macro pager B '<enter-command>toggle sidebar_visible<enter><redraw-screen>'
  336.  
  337.  
  338. # Forward also the attachments, but I do not like it!
  339.  
  340. # set mime_forward = yes
  341. set mime_forward_rest = ask-yes
  342.  
  343. # Now mutt asks me what I intend to do
  344.  
  345. set mime_forward = ask-yes
  346.  
  347. #choose where to save the attachments
  348. macro attach W <save-entry><kill-line>/home/lorenzo/Downloads/
  349.  
  350.  
  351.  
  352. # Status Bar -----------------------------------------
  353. set status_chars = " *%A"
  354. set status_format = "───[ Folder: %f ]───[%r%m messages%?n? (%n new)?%?d? (%d to delete)?%?t? (%t tagged)? ]───%>─%?p?( %p postponed )?───"
  355.  
  356.  
  357.  
  358.  
  359. # macro index,pager A |'~/mail2muttalias.py ~/.mutt-aliases'\n
  360.  
  361. # other user interface settings
  362. ###
  363.  
  364. set pager_index_lines=12 # add small index window at top of pager/messages
  365.  
  366.  
  367.  
  368.  
  369. # set alias_file=~/.mutt-alias.txt
  370. # source ~/.mutt-alias
  371. #set query_command= "abook --mutt-query '%s'" macro index,pager A "<pipe-message>abook --add-email-quiet<return>" "add the sender address to abook"
  372.  
  373. # set alias_file= ~/.mutt-alias.txt
  374. # set sort_alias= alias
  375. # set reverse_alias=yes
  376. # source $alias_file
  377.  
  378. set text_flowed=yes
  379.  
  380. set beep_new = yes
  381.  
  382. # Replying
  383. #set reply_self = no # Reply to recipients, not to myself on my own msgs
  384.  
  385.  
  386. #set use_envelope_from=yes
  387.  
  388.  
  389. ignore *
  390. unignore From: Date: To: Cc: Bcc: Reply-To: Subject:
  391.  
  392.  
  393. hdr_order From: Date: To: Cc: Bcc: Reply-To: Subject:
  394.  
  395.  
  396.  
  397. # # Add these header fields to every message
  398. # my_hdr Reply-To:
  399.  
  400. set tilde # pad bottom blank lines when in page view
  401. set pager_index_lines=9 # 9 index mail lines on top when in page view
  402.  
  403.  
  404.  
  405. # set query_command="goobook query '%s'"
  406. # macro index,pager a "<pipe-message>goobook add<return>" "add sender to google contacts"
  407. # bind editor <Tab> complete-query
  408.  
  409.  
  410.  
  411.  
  412. # bind editor <Tab> complete-query
  413. # bind editor ^T complete
  414.  
  415.  
  416. # -*- muttrc -*-
  417. #
  418. # Color settings for mutt.
  419. #
  420.  
  421. # "DONE mails" ie those I have already replied to.
  422. color index cyan default '~Q'
  423.  
  424.  
  425. # Default color definitions
  426. color normal white default
  427. color hdrdefault green default
  428. color quoted green default
  429. color quoted1 yellow default
  430. color quoted2 red default
  431. color signature cyan default
  432. color indicator brightyellow blue
  433. color error brightred default
  434. color status brightwhite blue
  435. color tree brightmagenta default
  436. color tilde blue default
  437. color attachment brightyellow default
  438. color markers brightred default
  439. color message white default
  440. color search brightwhite magenta
  441. color bold brightyellow default
  442.  
  443.  
  444. # quote levels
  445. # color quoted color108 default # color237
  446. # color quoted1 color116 default
  447. # color quoted2 color247 default
  448. color quoted3 color108 default
  449. color quoted4 color116 default
  450. color quoted5 color247 default
  451. color quoted6 color108 default
  452. color quoted7 color116 default
  453. color quoted8 color247 default
  454. color quoted9 color108 default
  455.  
  456.  
  457.  
  458.  
  459.  
  460.  
  461. # Color definitions when on a mono screen
  462. mono bold bold
  463. mono underline underline
  464. mono indicator reverse
  465. mono error bold
  466.  
  467. # Colors for items in the reader
  468. color header brightyellow default "^(From|Subject):"
  469. color header brightcyan default ^To:
  470. color header brightcyan default ^Cc:
  471. mono header bold "^(From|Subject):"
  472.  
  473. # Many of these formulas were stolen from Jeremy Blosser
  474. # These would be much simpler if colors were additive.
  475.  
  476. # regular new messages
  477. color index black white "~N !~T !~F !~p !~P"
  478. # regular tagged messages
  479. color index black cyan "~T !~F !~p !~P"
  480. # regular flagged messages
  481. color index black red "~F !~p !~P"
  482. # messages to me
  483. color index yellow default "~p !~N !~T !~F !~P"
  484. color index brightyellow white "~p ~N !~T !~F !~P"
  485. color index yellow cyan "~p ~T !~F !~P"
  486. color index yellow red "~p ~F !~P"
  487. # messages from me
  488. color index green default "~P !~N !~T !~F"
  489. color index green white "~P ~N !~T !~F"
  490. color index green cyan "~P ~T !~F"
  491. color index green red "~P ~F"
  492.  
  493. #Mails addressed to [email protected]
  494. #color index cyan default "~C \"(lorenzo.isella)@\" !~N !~P !~p"
  495.  
  496. # color index cyan default "~C \"(root|postmaster|abuse|mailer-daemon)@\" !~N !~P !~p"
  497.  
  498.  
  499.  
  500.  
  501. # Finding myself in Emails
  502. color body brightyellow yellow "(Lorenzo|Isella)"
  503. color body brightyellow yellow "[email protected]"
  504. color body brightyellow yellow "[email protected]"
  505. color body brightyellow yellow "(LORENZO|ISELLA)"
  506. color body brightyellow yellow "(lorenzo|isella)"
  507.  
  508.  
  509.  
  510.  
  511. # # color WHERE FOREGROUND BACKGROUND REGEXP
  512. # color index green default ~p # i am to/cc
  513. # color index cyan default ~P # from me
  514. # color index yellow default ~N # new
  515. # color index yellow default ~O # new
  516. # color index magenta default ~F # flagged
  517. # color index blue default ~T # tagged
  518. # color index red default ~D # deleted
  519.  
  520.  
  521.  
  522. # # messages which mention my name in the body
  523. # color index yellow default "~b \"phil(_g|\!| lorenzo| isella)|pgregory\" !~N !~T !~F !~p !~P"
  524. # color index brightyellow white "~b \"phil(_g|\!| lorenzo| isella)|pgregory\" ~N !~T !~F !~p !~P"
  525. # color index yellow cyan "~b \"phil(_g|\!| lorenzo| isella)|pgregory\" ~T !~F !~p !~P"
  526. # color index yellow red "~b \"phil(_g|\!| lorenzo| isella)|pgregory\" ~F !~p !~P"
  527. # messages which are in reference to my mails
  528. # color index magenta default "~x \"(mithrandir|aragorn)\\.aperiodic\\.net|thorin\\.hillmgt\\.com\" !~N !~T !~F !~p !~P"
  529. # color index magenta white "~x \"(mithrandir|aragorn)\\.aperiodic\\.net|thorin\\.hillmgt\\.com\" ~N !~T !~F !~p !~P"
  530. # color index magenta cyan "~x \"(mithrandir|aragorn)\\.aperiodic\\.net|thorin\\.hillmgt\\.com\" ~T !~F !~p !~P"
  531. # color index magenta red "~x \"(mithrandir|aragorn)\\.aperiodic\\.net|thorin\\.hillmgt\\.com\" ~F !~p !~P"
  532. # # messages to root, etc.
  533. # color index cyan default "~C \"(root|postmaster|abuse|mailer-daemon)@\" !~N !~P !~p"
  534. # color index cyan white "~C \"(root|postmaster|abuse|mailer-daemon)@\" ~N !~P !~p"
  535. # big messages
  536. # color index brightred default "!~N ~z 102400-"
  537. # color index brightred cyan "~T !~F !~p !~P ~z 102400-"
  538. # color index brightred white "~N ~z 102400-"
  539.  
  540. # deleted messages
  541. color index red default "!~N ~D"
  542. color index red white "~N ~D"
  543.  
  544.  
  545. # Highlights inside the body of a message.
  546.  
  547. # Attribution lines
  548. color body magenta default "\\* [^<]+ <[^>]+> \\[[^]]+\\]:"
  549. color body magenta default "(^|[^[:alnum:]])on [a-z0-9 ,]+( at [a-z0-9:,. +-]+)? wrote:"
  550.  
  551. # URLs
  552. color body brightyellow 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<>\"]"
  553.  
  554. # email addresses
  555. color body brightmagenta default "((@(([0-9a-z-]+\\.)*[0-9a-z-]+\\.?|#[0-9]+|\\[[0-9]?[0-9]?[0-9]\\.[0-9]?[0-9]?[0-9]\\.[0-9]?[0-9]?[0-9]\\.[0-9]?[0-9]?[0-9]\\]),)*@(([0-9a-z-]+\\.)*[0-9a-z-]+\\.?|#[0-9]+|\\[[0-9]?[0-9]?[0-9]\\.[0-9]?[0-9]?[0-9]\\.[0-9]?[0-9]?[0-9]\\.[0-9]?[0-9]?[0-9]\\]):)?[0-9a-z_.+%$-]+@(([0-9a-z-]+\\.)*[0-9a-z-]+\\.?|#[0-9]+|\\[[0-2]?[0-9]?[0-9]\\.[0-2]?[0-9]?[0-9]\\.[0-2]?[0-9]?[0-9]\\.[0-2]?[0-9]?[0-9]\\])"
  556.  
  557. # PGP messages
  558. color body brightyellow default "^gpg: Good signature .*"
  559. color body white default "^gpg: "
  560. color body brightwhite red "^gpg: BAD signature from.*"
  561. mono body bold "^gpg: Good signature"
  562. mono body bold "^gpg: BAD signature from.*"
  563.  
  564. # Various smilies and the like
  565. color body brightwhite default "<[Gg]>" # <g>
  566. color body brightwhite default "<[Bb][Gg]>" # <bg>
  567. color body brightwhite default " [;:]-*[})>{(<|]" # :-) etc...
  568. # *bold*
  569. color body brightblue default "(^|[[:space:][:punct:]])\\*[^*]+\\*([[:space:][:punct:]]|$)"
  570. mono body bold "(^|[[:space:][:punct:]])\\*[^*]+\\*([[:space:][:punct:]]|$)"
  571. # _underline_
  572. color body brightblue default "(^|[[:space:][:punct:]])_[^_]+_([[:space:][:punct:]]|$)"
  573. mono body underline "(^|[[:space:][:punct:]])_[^_]+_([[:space:][:punct:]]|$)"
  574. # /italic/ (Sometimes gets directory names)
  575. color body brightblue default "(^|[[:space:][:punct:]])/[^/]+/([[:space:][:punct:]]|$)"
  576. mono body underline "(^|[[:space:][:punct:]])/[^/]+/([[:space:][:punct:]]|$)"
  577.  
  578. # Border lines.
  579. color body blue default "( *[-+=#*~_]){6,}"
  580.  
  581.  
  582.  
  583. # Recognize these as own addresses for displaying +/T/C marks on messages, as
  584. # well as for the reverse_name setting
  585. # set alternates="[email protected]"
  586.  
  587. # see http://bit.ly/1QVzmPm for the new syntax of set alternates
  588.  
  589.  
  590.  
  591. # When replying to or forwarding a message sent to a recognized own address
  592. # (see above), reuse the same full name and address that the message was
  593. # addressed to as the new "from" address
  594. set reverse_name=yes
  595. set reverse_realname=yes
  596.  
  597. set charset=utf-8
  598.  
  599.  
  600.  
  601.  
  602.  
  603.  
  604.  
  605.  
  606.  
  607.  
  608.  
  609. ##################################################################
  610. #################################################################
  611. # # # This is what the account1 file looks like
  612.  
  613. # set imap_user = "[email protected]"
  614. # set imap_pass = "blabla"
  615. # set smtp_url = "smtp://[email protected]:587/"
  616. # set smtp_pass = "blabla"
  617. # set from = "[email protected]"
  618. # set realname = "Lorenzo Isella"
  619.  
  620. # set trash="imaps://imap.gmail.com/[Google Mail]/Bin"
  621. # set postponed="+[Google Mail]/Drafts"
  622.  
  623.  
  624. # macro index,pager gs "<change-folder>=[Google Mail]/Starred<enter>" "Go to starred messages"
  625.  
  626. # macro index,pager gd "<change-folder>=[Google Mail]/Drafts<enter>" "Go to 'Drafts'"
  627. # macro index,pager gl "<change-folder>?" "Go to 'Label'"
  628. # macro index,pager gi "<change-folder>=INBOX<enter>" "Go to inbox"
  629. # macro index,pager gt "<change-folder>=[Google Mail]/Sent Mail<enter>" "Go to 'Sent Mail'"
  630. # folder-hook +INBOX 'macro index,pager y "<save-message>=[Gmail]/All Mail<enter><enter>" "Archive conversation"'
  631.  
  632. # # # # Choose a different color for the status bar for each account
  633.  
  634. # color status yellow default
  635.  
  636.  
  637. ##########################################################
  638. ############################################################
  639.  
  640.  
  641.  
  642. # # vim: filetype=muttrc
  643.  
  644. # #
  645. # #
  646. # # make sure that you are using mutt linked against slang, not ncurses, or
  647. # # suffer the consequences of weird color issues. use "mutt -v" to check this.
  648.  
  649. # # custom body highlights -----------------------------------------------
  650. # # highlight my name and other personally relevant strings
  651. # #color body yellow default "(ethan|schoonover)"
  652. # # custom index highlights ----------------------------------------------
  653. # # messages which mention my name in the body
  654. # #color index yellow default "~b \"phil(_g|\!| gregory| gold)|pgregory\" !~N !~T !~F !~p !~P"
  655. # #color index J_cream brightwhite "~b \"phil(_g|\!| gregory| gold)|pgregory\" ~N !~T !~F !~p !~P"
  656. # #color index yellow cyan "~b \"phil(_g|\!| gregory| gold)|pgregory\" ~T !~F !~p !~P"
  657. # #color index yellow J_magent "~b \"phil(_g|\!| gregory| gold)|pgregory\" ~F !~p !~P"
  658. # ## messages which are in reference to my mails
  659. # #color index J_magent default "~x \"(mithrandir|aragorn)\\.aperiodic\\.net|thorin\\.hillmgt\\.com\" !~N !~T !~F !~p !~P"
  660. # #color index J_magent brightwhite "~x \"(mithrandir|aragorn)\\.aperiodic\\.net|thorin\\.hillmgt\\.com\" ~N !~T !~F !~p !~P"
  661. # #color index J_magent cyan "~x \"(mithrandir|aragorn)\\.aperiodic\\.net|thorin\\.hillmgt\\.com\" ~T !~F !~p !~P"
  662. # #color index J_magent red "~x \"(mithrandir|aragorn)\\.aperiodic\\.net|thorin\\.hillmgt\\.com\" ~F !~p !~P"
  663.  
  664. # # for background in 16 color terminal, valid background colors include:
  665. # # base03, bg, black, any of the non brights
  666.  
  667. # # basic colors ---------------------------------------------------------
  668. # color normal brightyellow default
  669. # color error red default
  670. # color tilde black default
  671. # color message cyan default
  672. # color markers red white
  673. # color attachment white default
  674. # color search brightmagenta default
  675. # #color status J_black J_status
  676. # color status brightyellow black
  677. # color indicator brightblack yellow
  678. # color tree yellow default # arrow in threads
  679.  
  680. # # basic monocolor screen
  681. # mono bold bold
  682. # mono underline underline
  683. # mono indicator reverse
  684. # mono error bold
  685.  
  686. # # index ----------------------------------------------------------------
  687.  
  688. # #color index red default "~D(!~p|~p)" # deleted
  689. # #color index black default ~F # flagged
  690. # #color index brightred default ~= # duplicate messages
  691. # #color index brightgreen default "~A!~N!~T!~p!~Q!~F!~D!~P" # the rest
  692. # #color index J_base default "~A~N!~T!~p!~Q!~F!~D" # the rest, new
  693. # color index red default "~A" # all messages
  694. # color index brightred default "~E" # expired messages
  695. # color index blue default "~N" # new messages
  696. # color index blue default "~O" # old messages
  697. # color index brightmagenta default "~Q" # messages that have been replied to
  698. # color index brightgreen default "~R" # read messages
  699. # color index blue default "~U" # unread messages
  700. # color index blue default "~U~$" # unread, unreferenced messages
  701. # color index brightyellow default "~v" # messages part of a collapsed thread
  702. # color index brightyellow default "~P" # messages from me
  703. # color index cyan default "~p!~F" # messages to me
  704. # color index cyan default "~N~p!~F" # new messages to me
  705. # color index cyan default "~U~p!~F" # unread messages to me
  706. # color index brightgreen default "~R~p!~F" # messages to me
  707. # color index red default "~F" # flagged messages
  708. # color index red default "~F~p" # flagged messages to me
  709. # color index red default "~N~F" # new flagged messages
  710. # color index red default "~N~F~p" # new flagged messages to me
  711. # color index red default "~U~F~p" # new flagged messages to me
  712. # color index black red "~D" # deleted messages
  713. # color index brightcyan default "~v~(!~N)" # collapsed thread with no unread
  714. # color index yellow default "~v~(~N)" # collapsed thread with some unread
  715. # color index green default "~N~v~(~N)" # collapsed thread with unread parent
  716. # # statusbg used to indicated flagged when foreground color shows other status
  717. # # for collapsed thread
  718. # color index red black "~v~(~F)!~N" # collapsed thread with flagged, no unread
  719. # color index yellow black "~v~(~F~N)" # collapsed thread with some unread & flagged
  720. # color index green black "~N~v~(~F~N)" # collapsed thread with unread parent & flagged
  721. # color index green black "~N~v~(~F)" # collapsed thread with unread parent, no unread inside, but some flagged
  722. # color index cyan black "~v~(~p)" # collapsed thread with unread parent, no unread inside, some to me directly
  723. # color index yellow red "~v~(~D)" # thread with deleted (doesn't differentiate between all or partial)
  724. # #color index yellow default "~(~N)" # messages in threads with some unread
  725. # #color index green default "~S" # superseded messages
  726. # #color index red default "~T" # tagged messages
  727. # #color index brightred red "~=" # duplicated messages
  728.  
  729. # # message headers ------------------------------------------------------
  730.  
  731. # #color header brightgreen default "^"
  732. # color hdrdefault brightgreen default
  733. # color header brightyellow default "^(From)"
  734. # color header blue default "^(Subject)"
  735.  
  736. # # body -----------------------------------------------------------------
  737.  
  738. # color quoted blue default
  739. # color quoted1 cyan default
  740. # color quoted2 yellow default
  741. # color quoted3 red default
  742. # color quoted4 brightred default
  743.  
  744. # color signature brightgreen default
  745. # color bold black default
  746. # color underline black default
  747. # color normal default default
  748. # #
  749. # color body brightcyan default "[;:][-o][)/(|]" # emoticons
  750. # color body brightcyan default "[;:][)(|]" # emoticons
  751. # color body brightcyan default "[*]?((N)?ACK|CU|LOL|SCNR|BRB|BTW|CWYL|\
  752. # |FWIW|vbg|GD&R|HTH|HTHBE|IMHO|IMNSHO|\
  753. # |IRL|RTFM|ROTFL|ROFL|YMMV)[*]?"
  754. # color body brightcyan default "[ ][*][^*]*[*][ ]?" # more emoticon?
  755. # color body brightcyan default "[ ]?[*][^*]*[*][ ]" # more emoticon?
  756.  
  757. # ## pgp
  758.  
  759. # color body red default "(BAD signature)"
  760. # color body cyan default "(Good signature)"
  761. # color body brightblack default "^gpg: Good signature .*"
  762. # color body brightyellow default "^gpg: "
  763. # color body brightyellow red "^gpg: BAD signature from.*"
  764. # mono body bold "^gpg: Good signature"
  765. # mono body bold "^gpg: BAD signature from.*"
  766.  
  767. # # yes, an insance URL regex
  768. # 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<>\"]"
  769. # # and a heavy handed email regex
  770. # #color body J_magent default "((@(([0-9a-z-]+\\.)*[0-9a-z-]+\\.?|#[0-9]+|\\[[0-9]?[0-9]?[0-9]\\.[0-9]?[0-9]?[0-9]\\.[0-9]?[0-9]?[0-9]\\.[0-9]?[0-9]?[0-9]\\]),)*@(([0-9a-z-]+\\.)*[0-9a-z-]+\\.?|#[0-9]+|\\[[0-9]?[0-9]?[0-9]\\.[0-9]?[0-9]?[0-9]\\.[0-9]?[0-9]?[0-9]\\.[0-9]?[0-9]?[0-9]\\]):)?[0-9a-z_.+%$-]+@(([0-9a-z-]+\\.)*[0-9a-z-]+\\.?|#[0-9]+|\\[[0-2]?[0-9]?[0-9]\\.[0-2]?[0-9]?[0-9]\\.[0-2]?[0-9]?[0-9]\\.[0-2]?[0-9]?[0-9]\\])"
  771.  
  772. # # Various smilies and the like
  773. # #color body brightwhite default "<[Gg]>" # <g>
  774. # #color body brightwhite default "<[Bb][Gg]>" # <bg>
  775. # #color body yellow default " [;:]-*[})>{(<|]" # :-) etc...
  776. # # *bold*
  777. # #color body blue default "(^|[[:space:][:punct:]])\\*[^*]+\\*([[:space:][:punct:]]|$)"
  778. # #mono body bold "(^|[[:space:][:punct:]])\\*[^*]+\\*([[:space:][:punct:]]|$)"
  779. # # _underline_
  780. # #color body blue default "(^|[[:space:][:punct:]])_[^_]+_([[:space:][:punct:]]|$)"
  781. # #mono body underline "(^|[[:space:][:punct:]])_[^_]+_([[:space:][:punct:]]|$)"
  782. # # /italic/ (Sometimes gets directory names)
  783. # #color body blue default "(^|[[:space:][:punct:]])/[^/]+/([[:space:][:punct:]]|$)"
  784. # #mono body underline "(^|[[:space:][:punct:]])/[^/]+/([[:space:][:punct:]]|$)"
  785.  
  786. # # Border lines.
  787. # #color body blue default "( *[-+=#*~_]){6,}"
  788.  
  789. # #folder-hook . "color status J_black J_status "
  790. # #folder-hook gmail/inbox "color status J_black yellow "
  791. # #folder-hook gmail/important "color status J_black yellow "
  792.  
  793.  
Add Comment
Please, Sign In to add comment