muttrc 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. #
  2. # Configuration file for the Mutt mail client
  3. #
  4. # This is an ongoing study on how to tune it perfectly the way I would like a
  5. # mail client to behave.
  6. #
  7. #-------------------------------------
  8. # Account Hooks
  9. #-------------------------------------
  10. account-hook . 'unset imap_user imap_pass' # unset first!
  11. account-hook 'imaps://mail.riseup.net' "\
  12. set imap_user=vesonoki@riseup.net"
  13. account-hook 'imaps://mail.vivaldi.net' "\
  14. set imap_user=vesonoki@vivaldi.net"
  15. #-------------------------------------
  16. # Folders, mailboxes and folder hooks
  17. #-------------------------------------
  18. # Rise up:
  19. set folder="imaps://vesonoki@mail.riseup.net/"
  20. mailboxes =INBOX =Drafts =Sent
  21. folder-hook 'imaps://vesonoki@mail.riseup.net' " \
  22. set folder = imaps://mail.riseup.net \
  23. imap_user = 'vesonoki@riseup.net' \
  24. spoolfile = '+INBOX' \
  25. smtp_url = 'smtps://vesonoki@mail.riseup.net' \
  26. record = 'imaps://mail.riseup.net/Sent' \
  27. postponed = '+Drafts' \
  28. from = 'vesonoki@riseup.net'"
  29. # Vivaldi2:
  30. set folder="imaps://kzimmermann@mail.vivaldi.net/"
  31. mailboxes =INBOX =Drafts =Sent
  32. folder-hook 'imaps://kzimmermann@mail.vivaldi.net' " \
  33. set folder = imaps://mail.vivaldi.net \
  34. imap_user = 'kzimmermann@vivaldi.net' \
  35. spoolfile = '+INBOX' \
  36. smtp_url = 'smtps://kzimmermann@mail.vivaldi.net' \
  37. record = 'imaps://mail.vivaldi.net/Sent' \
  38. postponed = '+Drafts' \
  39. from = 'Klaus Zimmermann <kzimmermann@vivaldi.net>'"
  40. # Vivaldi:
  41. set folder="imaps://vesonoki@mail.vivaldi.net/"
  42. mailboxes =INBOX =Drafts =Sent
  43. folder-hook 'imaps://vesonoki@mail.vivaldi.net' " \
  44. set folder = imaps://mail.vivaldi.net \
  45. imap_user = 'vesonoki@vivaldi.net' \
  46. spoolfile = '+INBOX' \
  47. smtp_url = 'smtps://vesonoki@mail.vivaldi.net' \
  48. record = 'imaps://mail.vivaldi.net/Sent' \
  49. postponed = '+Drafts' \
  50. from = 'vesonoki@vivaldi.net'"
  51. #
  52. #-------------------------------------
  53. # Macros to make life easier
  54. #-------------------------------------
  55. macro index <esc>1 "y1<return><return>" # ESC+1 takes to first INBOX
  56. macro index <esc>2 "y5<return><return>" # ESC+2 takes to the second
  57. # Common settings:
  58. set timeout = 300
  59. set editor='vim -c "set wrap" -c "set linebreak"'
  60. # PGP setup
  61. set crypt_replyencrypt
  62. set crypt_replysign
  63. set crypt_replysignencrypted
  64. set pgp_show_unusable = no
  65. set pgp_auto_decode = yes