Advertisement
Guest User

Untitled

a guest
Feb 21st, 2016
189
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.03 KB | None | 0 0
  1. # Read & decrypt password file
  2. source "gpg --no-tty -d -q $HOME/.mail-pw/pw-inbox.gpg |"
  3.  
  4. # Tell mutt login names
  5. account-hook user1%40domain.com@imap.mailserver.com 'set imap_user=user1@domain.com'
  6. account-hook user2%40domain.com@imap.mailserver.com 'set imap_user=user2@domain.com'
  7. account-hook another.user@imap.gmail.com 'set imap_user=another.user@gmail.com'
  8.  
  9. # Update config whan changing folders
  10. folder-hook user1%40domain.com@imap.mailserver.com 'source ~/.mutt/user1-conf'
  11. folder-hook user2%40domain.com@imap.mailserver.com 'source ~/.mutt/user2-conf'
  12. folder-hook another.user@imap.gmail.com 'source ~/.mutt/gmail-conf'
  13.  
  14. # Set macros to be able to change between mailboxes using shortcuts
  15. macro index <esc>1 "<change-folder>imaps://user1%40domain.com@imap.mailserver.com<enter>"
  16. macro index <esc>2 "<change-folder>imaps://user2%40domain.com@imap.mailserver.com<enter>"
  17. macro index <esc>3 "<change-folder>imaps://another.user@imap.gmail.com<enter>"
  18. macro index t "c=<tab><tab><tab>" # press t to navigate between folders of mailbox
  19.  
  20. # define mailboxes
  21. mailboxes imaps://user1%40domain.com@imap.mailserver.com/
  22. mailboxes imaps://user2%40domain.com@imap.mailserver.com/
  23. mailboxes imaps://another.user@imap.gmail.com/
  24.  
  25. # use this mailbox when starting mutt
  26. source ~/.mutt/user1-conf
  27.  
  28. # general config
  29. set sendmail="/usr/bin/msmtp" # path to application for sending e-mails
  30. set envelope_from=yes # use correct sender
  31. set edit_hdrs # enable changing receiver etc.
  32. # set signature ="~/.mutt/signatur" # path to signature (not yet used)
  33. set attribution="%f schrieb am %d:" # quoting in German
  34. set sort=threads # sort e-mails using conversation & date
  35. set sort_aux=date-sent
  36. unset allow_8bit # avoid problems with Umlauten
  37. set date_format="%a, %d. %b %H:%M" # date format
  38. set index_format="%4C %Z %D %-22.22F (%?l?%4l&%4c?) %s" # e-mail overview format
  39. set folder_format="%2C %8s %d %t %N %f" # file browser format
  40. set pager_index_lines=10 # number of mails shown in overview
  41.  
  42. # mail editor settings
  43. set editor="vim -c 'startinsert' -c 'set tw=70 et' -c 'set wrap' '+/^$'"
  44.  
  45. # Mutt config file for user1@domain.com
  46.  
  47. set from="user1@domain.com"
  48. set hostname="imap.mailserver.com"
  49. set imap_login="user1@domain.com"
  50. set imap_pass="$my_pw_user1"
  51. set folder="imaps://user1%40domain.com@imap.mailserver.com/"
  52. set postponed="=Drafts"
  53. set record="=Sent"
  54. set spoolfile="=INBOX"
  55.  
  56. monika@virtdeb:~$ less .muttdebug0 | grep -B 1 -A 19 Lese
  57. [2016-02-22 01:30:05] Reading configuration file '/home/monika/.mutt/user1-conf'.
  58. [2016-02-22 01:30:05] Lese imaps://user1@domain.com@imap.mailserver.com/INBOX...
  59. [2016-02-22 01:30:05] Schlage imap.mailserver.com nach...
  60. [2016-02-22 01:30:05] Verbinde zu imap.mailserver.com...
  61. [2016-02-22 01:30:05] SSL/TLS Verbindung unter Verwendung von TLS1.2 (ECDHE-RSA/AES-128-GCM/AEAD)
  62. [2016-02-22 01:30:06] Connected to imap.mailserver.com:993 on fd=5
  63. [2016-02-22 01:30:06] imap_cmd_step: grew buffer to 512 bytes
  64. [2016-02-22 01:30:06] 5< * OK [CAPABILITY IMAP4rev1 CHILDREN ENABLE ID IDLE LIST-EXTENDED LIST-STATUS LITERAL+ MOVE NAMESPACE QUOTA SASL-IR SORT SPECIAL-USE THREAD=ORDEREDSUBJECT UIDPLUS UNSELECT WITHIN AUTH=LOGIN AUTH=PLAIN] IMAP server ready H .........
  65. [2016-02-22 01:30:06] Handling CAPABILITY
  66. [2016-02-22 01:30:06] IMAP queue drained
  67. [2016-02-22 01:30:06] imap_authenticate: Using any available method.
  68. [2016-02-22 01:30:06] SASL local ip: xxx.xxx.xxx.xxx;56206, remote ip:xxx.xxx.xxx.xxx;993
  69. [2016-02-22 01:30:06] External SSF: 128
  70. [2016-02-22 01:30:06] External authentication name: user1@domain.com
  71. [2016-02-22 01:30:06] Authentifiziere (LOGIN)...
  72. [2016-02-22 01:30:06] 5> a0000 AUTHENTICATE LOGIN
  73. [2016-02-22 01:30:06] 5< + xxxxxxxxxxxx
  74. [2016-02-22 01:30:06] mutt_sasl_cb_authname: getting authname for imap.mailserver.com:993
  75. [2016-02-22 01:30:06] mutt_sasl_cb_pass: getting password for user1@domain.com@imap.mailserver.com:993
  76. [2016-02-22 01:30:06] 5> xxxxxxxxxxxxxxxxx
  77. [2016-02-22 01:30:06] 5< + xxxxxxxxxxxxxxxxxx
  78. --
  79. [2016-02-22 01:30:16] Mailbox unverändert.
  80. [2016-02-22 01:30:17] Lese imaps://user2@domain.com@imap.mailserver.com/...
  81. [2016-02-22 01:30:17] Schlage imap.mailserver.com nach...
  82. [2016-02-22 01:30:17] Verbinde zu imap.mailserver.com...
  83. [2016-02-22 01:30:18] SSL/TLS Verbindung unter Verwendung von TLS1.2 (ECDHE-RSA/AES-128-GCM/AEAD)
  84. [2016-02-22 01:30:19] Connected to imap.mailserver.com:993 on fd=6
  85. [2016-02-22 01:30:19] imap_cmd_step: grew buffer to 512 bytes
  86. [2016-02-22 01:30:19] 6< * OK [CAPABILITY IMAP4rev1 CHILDREN ENABLE ID IDLE LIST-EXTENDED LIST-STATUS LITERAL+ MOVE NAMESPACE QUOTA SASL-IR SORT SPECIAL-USE THREAD=ORDEREDSUBJECT UIDPLUS UNSELECT WITHIN AUTH=LOGIN AUTH=PLAIN] IMAP server ready H ........
  87. [2016-02-22 01:30:19] Handling CAPABILITY
  88. [2016-02-22 01:30:19] IMAP queue drained
  89. [2016-02-22 01:30:19] imap_authenticate: Using any available method.
  90. [2016-02-22 01:30:19] SASL local ip: xxx.xxx.xxx.xxx;56207, remote ip:xxx.xxx.xxx.xxx;993
  91. [2016-02-22 01:30:19] External SSF: 128
  92. [2016-02-22 01:30:19] External authentication name: user2@domain.com
  93. [2016-02-22 01:30:19] Authentifiziere (LOGIN)...
  94. [2016-02-22 01:30:19] 6> a0000 AUTHENTICATE LOGIN
  95. [2016-02-22 01:30:19] 6< + xxxxxxxxxx
  96. [2016-02-22 01:30:19] mutt_sasl_cb_authname: getting authname for imap.mailserver.com:993
  97. [2016-02-22 01:30:19] mutt_sasl_cb_pass: getting password for user1@domain.com@imap.mailserver.com:993
  98. [2016-02-22 01:30:19] 6> xxxxxxxxxxxxxx
  99. [2016-02-22 01:30:19] 6< + xxxxxxxxxxxxx
  100. --
  101. [2016-02-22 01:30:22] Reading configuration file '/home/monika/.mutt/gmail-conf'.
  102. [2016-02-22 01:30:22] Lese imaps://another.user@imap.gmail.com/...
  103. [2016-02-22 01:30:22] Schlage imap.gmail.com nach...
  104. [2016-02-22 01:30:22] Verbinde zu imap.gmail.com...
  105. [2016-02-22 01:30:23] SSL/TLS Verbindung unter Verwendung von TLS1.2 (ECDHE-RSA/AES-128-GCM/AEAD)
  106. [2016-02-22 01:30:24] Connected to imap.gmail.com:993 on fd=7
  107. [2016-02-22 01:30:24] imap_cmd_step: grew buffer to 512 bytes
  108. [2016-02-22 01:30:24] 7< * OK Gimap ready for requests from xxx.xxx.xxx.xxx xxxxxxxxxx
  109. [2016-02-22 01:30:24] IMAP queue drained
  110. [2016-02-22 01:30:24] 7> a0000 CAPABILITY
  111. [2016-02-22 01:30:24] 7< * CAPABILITY IMAP4rev1 UNSELECT IDLE NAMESPACE QUOTA ID XLIST CHILDREN X-GM-EXT-1 XYZZY SASL-IR AUTH=XOAUTH2 AUTH=PLAIN AUTH=PLAIN-CLIENTTOKEN AUTH=OAUTHBEARER AUTH=XOAUTH
  112. [2016-02-22 01:30:24] Handling CAPABILITY
  113. [2016-02-22 01:30:24] 7< a0000 OK Thats all she wrote! xxxxxxxxxxxxx
  114. [2016-02-22 01:30:24] IMAP queue drained
  115. [2016-02-22 01:30:24] imap_authenticate: Using any available method.
  116. [2016-02-22 01:30:24] SASL local ip: xxx.xxx.xxx.xxx;47603, remote ip:xxx.xxx.xxx.xxx;993
  117. [2016-02-22 01:30:24] External SSF: 128
  118. [2016-02-22 01:30:24] External authentication name: another.user
  119. [2016-02-22 01:30:24] mutt_sasl_cb_authname: getting authname for imap.gmail.com:993
  120. [2016-02-22 01:30:24] mutt_sasl_cb_authname: getting user for imap.gmail.com:993
  121. [2016-02-22 01:30:24] mutt_sasl_cb_pass: getting password for another.user@gmail.com@imap.gmail.com:993
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement