Advertisement
Guest User

Untitled

a guest
Nov 16th, 2018
427
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.92 KB | None | 0 0
  1. ###
  2. ### Main imap.cfg file
  3. ###
  4.  
  5. # Source default account to be loaded when NeoMutt starts
  6. source ./imap_acc1.cfg
  7.  
  8. # Macros to switch between accounts
  9. macro index <F5> ":unmailboxes *<enter>:source ~/.config/neomutt/imap_acc1.cfg<enter>"
  10. macro index <F6> ":unmailboxes *<enter>:source ~/.config/neomutt/imap_acc2.cfg<enter>"
  11. macro index <F7> ":unmailboxes *<enter>:source ~/.config/neomutt/imap_acc3.cfg<enter>"
  12.  
  13. # Common IMAP configuration
  14. set imap_check_subscribed = yes
  15. set imap_authenticators = plain
  16.  
  17. # Mark this file as sourced
  18. set my_imap_done = true
  19.  
  20. ###
  21. ### imap_acc1.cfg
  22. ###
  23.  
  24. # This is used by the IMAP post-config file
  25. set my_imap = imaps://example.com
  26.  
  27. # Account-specific configuration
  28. set imap_user = foo
  29. set imap_pass = bar
  30. set folder    = "$my_imap"
  31. set spoolfile = +INBOX
  32. set postponed = +Drafts
  33. set record    = +Sent
  34. set trash     = +Trash
  35. set move      = no
  36.  
  37. # Source post-config file
  38. source ./imap_post.cfg
  39.  
  40. ###
  41. ### imap_acc2.cfg
  42. ###
  43.  
  44. # This is used by the IMAP post-config file
  45. set my_imap = imaps://gmail.com
  46.  
  47. # Account-specific configuration
  48. set imap_user = my_gmail_user
  49. set imap_pass = my_gmail_pass
  50. set folder    = "$my_imap"
  51. set spoolfile = +INBOX
  52. set postponed = +[GMail]/Drafts
  53. set record    = "+[GMail]/Sent Mail"
  54. set trash     = +[GMail]/Trash
  55. set move      = no
  56.  
  57. # Source post-config file
  58. source ./imap_post.cfg
  59.  
  60. ###
  61. ### imap_acc3.cfg
  62. ###
  63.  
  64. # This is used by the IMAP post-config file
  65. set my_imap = imaps://fastmail.com
  66.  
  67. # Account-specific configuration
  68. set imap_user = fastuser
  69. set imap_pass = fastpass
  70. set folder    = "$my_imap"
  71. set spoolfile = +INBOX
  72. set postponed = +Drafts
  73. set record    = +Sent
  74. set trash     = +Trash
  75. set move      = no
  76.  
  77. # Source post-config file
  78. source ./imap_post.cfg
  79.  
  80. ###
  81. ### imap_post.cfg
  82. ###
  83.  
  84. # Change folder to the newly selected account, if we're not just starting up
  85. ifdef my_imap_done "push <change-folder>$my_imap<enter>"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement