Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Read & decrypt password file
- source "gpg --no-tty -d -q $HOME/.mail-pw/pw-inbox.gpg |"
- # Tell mutt login names
- account-hook user1%40domain.com@imap.mailserver.com 'set imap_user=user1@domain.com'
- account-hook user2%40domain.com@imap.mailserver.com 'set imap_user=user2@domain.com'
- account-hook another.user@imap.gmail.com 'set imap_user=another.user@gmail.com'
- # Update config whan changing folders
- folder-hook user1%40domain.com@imap.mailserver.com 'source ~/.mutt/user1-conf'
- folder-hook user2%40domain.com@imap.mailserver.com 'source ~/.mutt/user2-conf'
- folder-hook another.user@imap.gmail.com 'source ~/.mutt/gmail-conf'
- # Set macros to be able to change between mailboxes using shortcuts
- macro index <esc>1 "<change-folder>imaps://user1%40domain.com@imap.mailserver.com<enter>"
- macro index <esc>2 "<change-folder>imaps://user2%40domain.com@imap.mailserver.com<enter>"
- macro index <esc>3 "<change-folder>imaps://another.user@imap.gmail.com<enter>"
- macro index t "c=<tab><tab><tab>" # press t to navigate between folders of mailbox
- # define mailboxes
- mailboxes imaps://user1%40domain.com@imap.mailserver.com/
- mailboxes imaps://user2%40domain.com@imap.mailserver.com/
- mailboxes imaps://another.user@imap.gmail.com/
- # use this mailbox when starting mutt
- source ~/.mutt/user1-conf
- # general config
- set sendmail="/usr/bin/msmtp" # path to application for sending e-mails
- set envelope_from=yes # use correct sender
- set edit_hdrs # enable changing receiver etc.
- # set signature ="~/.mutt/signatur" # path to signature (not yet used)
- set attribution="%f schrieb am %d:" # quoting in German
- set sort=threads # sort e-mails using conversation & date
- set sort_aux=date-sent
- unset allow_8bit # avoid problems with Umlauten
- set date_format="%a, %d. %b %H:%M" # date format
- set index_format="%4C %Z %D %-22.22F (%?l?%4l&%4c?) %s" # e-mail overview format
- set folder_format="%2C %8s %d %t %N %f" # file browser format
- set pager_index_lines=10 # number of mails shown in overview
- # mail editor settings
- set editor="vim -c 'startinsert' -c 'set tw=70 et' -c 'set wrap' '+/^$'"
- # Mutt config file for user1@domain.com
- set from="user1@domain.com"
- set hostname="imap.mailserver.com"
- set imap_login="user1@domain.com"
- set imap_pass="$my_pw_user1"
- set folder="imaps://user1%40domain.com@imap.mailserver.com/"
- set postponed="=Drafts"
- set record="=Sent"
- set spoolfile="=INBOX"
- monika@virtdeb:~$ less .muttdebug0 | grep -B 1 -A 19 Lese
- [2016-02-22 01:30:05] Reading configuration file '/home/monika/.mutt/user1-conf'.
- [2016-02-22 01:30:05] Lese imaps://user1@domain.com@imap.mailserver.com/INBOX...
- [2016-02-22 01:30:05] Schlage imap.mailserver.com nach...
- [2016-02-22 01:30:05] Verbinde zu imap.mailserver.com...
- [2016-02-22 01:30:05] SSL/TLS Verbindung unter Verwendung von TLS1.2 (ECDHE-RSA/AES-128-GCM/AEAD)
- [2016-02-22 01:30:06] Connected to imap.mailserver.com:993 on fd=5
- [2016-02-22 01:30:06] imap_cmd_step: grew buffer to 512 bytes
- [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 .........
- [2016-02-22 01:30:06] Handling CAPABILITY
- [2016-02-22 01:30:06] IMAP queue drained
- [2016-02-22 01:30:06] imap_authenticate: Using any available method.
- [2016-02-22 01:30:06] SASL local ip: xxx.xxx.xxx.xxx;56206, remote ip:xxx.xxx.xxx.xxx;993
- [2016-02-22 01:30:06] External SSF: 128
- [2016-02-22 01:30:06] External authentication name: user1@domain.com
- [2016-02-22 01:30:06] Authentifiziere (LOGIN)...
- [2016-02-22 01:30:06] 5> a0000 AUTHENTICATE LOGIN
- [2016-02-22 01:30:06] 5< + xxxxxxxxxxxx
- [2016-02-22 01:30:06] mutt_sasl_cb_authname: getting authname for imap.mailserver.com:993
- [2016-02-22 01:30:06] mutt_sasl_cb_pass: getting password for user1@domain.com@imap.mailserver.com:993
- [2016-02-22 01:30:06] 5> xxxxxxxxxxxxxxxxx
- [2016-02-22 01:30:06] 5< + xxxxxxxxxxxxxxxxxx
- --
- [2016-02-22 01:30:16] Mailbox unverändert.
- [2016-02-22 01:30:17] Lese imaps://user2@domain.com@imap.mailserver.com/...
- [2016-02-22 01:30:17] Schlage imap.mailserver.com nach...
- [2016-02-22 01:30:17] Verbinde zu imap.mailserver.com...
- [2016-02-22 01:30:18] SSL/TLS Verbindung unter Verwendung von TLS1.2 (ECDHE-RSA/AES-128-GCM/AEAD)
- [2016-02-22 01:30:19] Connected to imap.mailserver.com:993 on fd=6
- [2016-02-22 01:30:19] imap_cmd_step: grew buffer to 512 bytes
- [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 ........
- [2016-02-22 01:30:19] Handling CAPABILITY
- [2016-02-22 01:30:19] IMAP queue drained
- [2016-02-22 01:30:19] imap_authenticate: Using any available method.
- [2016-02-22 01:30:19] SASL local ip: xxx.xxx.xxx.xxx;56207, remote ip:xxx.xxx.xxx.xxx;993
- [2016-02-22 01:30:19] External SSF: 128
- [2016-02-22 01:30:19] External authentication name: user2@domain.com
- [2016-02-22 01:30:19] Authentifiziere (LOGIN)...
- [2016-02-22 01:30:19] 6> a0000 AUTHENTICATE LOGIN
- [2016-02-22 01:30:19] 6< + xxxxxxxxxx
- [2016-02-22 01:30:19] mutt_sasl_cb_authname: getting authname for imap.mailserver.com:993
- [2016-02-22 01:30:19] mutt_sasl_cb_pass: getting password for user1@domain.com@imap.mailserver.com:993
- [2016-02-22 01:30:19] 6> xxxxxxxxxxxxxx
- [2016-02-22 01:30:19] 6< + xxxxxxxxxxxxx
- --
- [2016-02-22 01:30:22] Reading configuration file '/home/monika/.mutt/gmail-conf'.
- [2016-02-22 01:30:22] Lese imaps://another.user@imap.gmail.com/...
- [2016-02-22 01:30:22] Schlage imap.gmail.com nach...
- [2016-02-22 01:30:22] Verbinde zu imap.gmail.com...
- [2016-02-22 01:30:23] SSL/TLS Verbindung unter Verwendung von TLS1.2 (ECDHE-RSA/AES-128-GCM/AEAD)
- [2016-02-22 01:30:24] Connected to imap.gmail.com:993 on fd=7
- [2016-02-22 01:30:24] imap_cmd_step: grew buffer to 512 bytes
- [2016-02-22 01:30:24] 7< * OK Gimap ready for requests from xxx.xxx.xxx.xxx xxxxxxxxxx
- [2016-02-22 01:30:24] IMAP queue drained
- [2016-02-22 01:30:24] 7> a0000 CAPABILITY
- [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
- [2016-02-22 01:30:24] Handling CAPABILITY
- [2016-02-22 01:30:24] 7< a0000 OK Thats all she wrote! xxxxxxxxxxxxx
- [2016-02-22 01:30:24] IMAP queue drained
- [2016-02-22 01:30:24] imap_authenticate: Using any available method.
- [2016-02-22 01:30:24] SASL local ip: xxx.xxx.xxx.xxx;47603, remote ip:xxx.xxx.xxx.xxx;993
- [2016-02-22 01:30:24] External SSF: 128
- [2016-02-22 01:30:24] External authentication name: another.user
- [2016-02-22 01:30:24] mutt_sasl_cb_authname: getting authname for imap.gmail.com:993
- [2016-02-22 01:30:24] mutt_sasl_cb_authname: getting user for imap.gmail.com:993
- [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