Advertisement
Guest User

Untitled

a guest
Jul 5th, 2017
596
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.07 KB | None | 0 0
  1. set my_pass1=`cat ~/.mutt/passwdOS`
  2. set my_pass2=`cat ~/.mutt/passwdPG`
  3. #-------------------------------------
  4. # Account Hooks
  5. #-------------------------------------
  6. account-hook . 'unset imap_user unset imap_pass' # unset first!
  7. account-hook 'imaps://username@mail.server.com/' "\
  8. set imap_user username imap_pass=$my_pass1 "
  9. account-hook 'imaps://username@googlemail.com@imap.gmail.com' "\
  10. set imap_user username@googlemail.com imap_pass=$my_pass2 "
  11.  
  12. # Setup for second account:
  13. set folder="imaps://username@mail.server.com/"
  14. mailboxes =INBOX =Drafts ='Sent Items' =Junk
  15. folder-hook 'imaps://usernamee@mail.server.com/' " \
  16. set folder=imaps://username@mail.server.com/ \
  17. postponed=+Drafts \
  18. record=+'Sent Items' \
  19. smtp_url=smtps://username@mail.server.com \
  20. smtp_pass=$my_pass1 \
  21. signature=~/.mutt/user1.sig \
  22. from='Real Name <username> ' \
  23. realname='Real Name' "
  24. #
  25. # Setup for user@host.com:
  26. set folder="imaps://username@googlemail.com@imap.gmail.com/"
  27. mailboxes =INBOX =[Gmail]/Drafts =[Gmail]/'Sent Mail' =[Gmail]/Spam
  28. folder-hook 'imaps://username@googlemail.com@imap.gmail.com' " \
  29. set folder=imaps://username@googlemail.com@imap.gmail.com/ \
  30. postponed=+[Gmail]/Drafts \
  31. record=+[Gmail]/'Sent Mail' \
  32. smtp_url=smtps://username@googlemail.com@smtp.gmail.com \
  33. smtp_pass=$my_pass2 \
  34. signature=~/.mutt/user2.sig \
  35. from='Real Name <user@host.com> ' \
  36. realname='Real Name' "
  37. #
  38. #-------------------------------------
  39. # Macros to make life easier
  40. #-------------------------------------
  41. macro index <esc>1 "y1<return><return>" # ESC+1 takes to first INBOX
  42. macro index <esc>2 "y5<return><return>" # ESC+2 takes to the second
  43. #
  44. #-------------------------------------
  45. # Mail-check preferences
  46. #-------------------------------------
  47. set timeout=60 #Check for mail every minute
  48. set mail_check=5
  49. #
  50. # EOF
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement