Advertisement
Guest User

muttrc

a guest
Nov 25th, 2017
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.43 KB | None | 0 0
  1. # ------------------------------------------------------------------------
  2. # ~/.mutt/muttrc
  3. # ------------------------------------------------------------------------
  4.  
  5. set mail_check_stats = yes
  6. set mail_check_stats_interval = 60
  7.  
  8. set sidebar_folder_indent = yes
  9. set sidebar_short_path = yes
  10. set sidebar_format = "%B%?F? [%F]?%* %?N?%N/?%S"
  11.  
  12. folder-hook 'imap1' 'source ~/.mutt/account.1'
  13. folder-hook 'imap2' 'source ~/.mutt/account.2'
  14.  
  15. # Default account
  16. source ~/.mutt/account.1
  17.  
  18. account-hook 'imap1' 'set imap_user=$my_account2_user imap_pass=$my_account1_pass'
  19. account-hook 'imap2' 'set imap_user=$my_account1_user imap_pass=$my_account2_pass'
  20.  
  21. macro index,pager <f2> '<sync-mailbox><enter-command>source ~/.mutt/account.1<enter><change-folder>!<enter>'
  22. macro index,pager <f3> '<sync-mailbox><enter-command>source ~/.mutt/account.2<enter><change-folder>!<enter>'
  23.  
  24. # Changing (with c by default) is not contextual, i.e. it will not list the
  25. # folders of the current mailbox, but of the one used the last time the folders
  26. # changed. To make the behaviour more contextual, the trick is to press = or +
  27. # for current mailbox. So let's automate this with a macro:
  28. macro index 'c' '<change-folder>?<change-dir><home>^K=<enter>'
  29.  
  30.  
  31. # ------------------------------------------------------------------------
  32. # ~/.mutt/account.1
  33. # ------------------------------------------------------------------------
  34.  
  35. set imap_user = "..."
  36. set folder = "imaps://$imap_user@..."
  37. set imap_pass = "..."
  38. set smtp_pass = "..."
  39. set smtp_url = "smtp://$imap_user@..."
  40. set spoolfile = +INBOX
  41. set record = +Sent
  42. set postponed = +Drafts
  43. set trash = +Trash
  44.  
  45. unmailboxes *
  46. mailboxes +INBOX \
  47. +INBOX.subfolder1 \
  48. +INBOX.subfolder2 \
  49. +INBOX.subfolder3 \
  50. +Drafts \
  51. +Sent \
  52. +Trash \
  53. +Notes
  54.  
  55.  
  56. # ------------------------------------------------------------------------
  57. # ~/.mutt/account.2
  58. # ------------------------------------------------------------------------
  59.  
  60. set imap_user = "..."
  61. set folder = "imaps://$imap_user@..."
  62. set imap_pass = "..."
  63. set smtp_pass = "..."
  64. set smtp_url = "smtp://$imap_user@..."
  65. set spoolfile = +INBOX
  66. set record = +Sent
  67. set postponed = +Drafts
  68. set trash = +Trash
  69.  
  70. unmailboxes *
  71. mailboxes +INBOX \
  72. +Drafts \
  73. +Sent \
  74. +Trash \
  75. +Archive \
  76. +Some_other_folder
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement