-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy path.muttrc-accounts
100 lines (90 loc) · 3.97 KB
/
.muttrc-accounts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
#### mailbox names ####
mailboxes 'imaps://USER@GAPPS1.com@imap.gmail.com:993/INBOX' \
'imaps://USER@GAPPS2.com@imap.gmail.com:993/INBOX' \
'imaps://USER@imap.gmail.com:993/INBOX'
#### f key macros for direct mailbox access
macro generic,index,pager <F5> "c imaps://USER@GAPPS1.com@imap.gmail.com:993/INBOX/\n"
macro generic,index,pager <F6> "c imaps://USER@GAPPS2.com@imap.gmail.com:993/INBOX/\n"
macro generic,index,pager <F7> "c imaps://USER@imap.gmail.com:993/INBOX/\n"
#########################
#### account configs ####
#########################
account-hook . 'unset preconnect imap_user imap_authenticators'
#### passwords ####
set my_tmp=`gpg -q --no-verbose -o /tmp/.passwords.tmp -d ~/.passwords.gpg`
set my_pass_acct1=`cat /tmp/.passwords.tmp | grep acct1 | awk '{ print $2 }'`
set my_pass_acct2=`cat /tmp/.passwords.tmp | grep acct2 | awk '{ print $2 }'`
set my_pass_acct3=`cat /tmp/.passwords.tmp | grep acct3 | awk '{ print $2 }'`
set my_del=`rm -f /tmp/.passwords.tmp`
#### end passwords ####
#### account1 ####
account-hook 'imaps://USER@GAPPS1.com@imap.gmail.com:993/' \
' set imap_user = "USER@GAPPS1.com" \
imap_pass = $my_pass_acct1 '
folder-hook 'imaps://USER@GAPPS1.com@imap.gmail.com:993/INBOX' \
' set imap_user = "USER@GAPPS1.com" \
imap_pass = $my_pass_acct1 \
smtp_url = "smtp://USER@GAPPS1.com@smtp.gmail.com:587/" \
smtp_pass = $my_pass_acct1 \
from = "USER@GAPPS1.com" \
realname = "USER" \
spoolfile = "+INBOX" \
postponed="+[Gmail]/Drafts" \
mail_check=30 \
timeout=15 \
imap_keepalive=300 \
signature="" '
#### end account1 ####
#### account2 ####
account-hook 'imaps://USER@GAPPS2.com@imap.gmail.com:993/' \
' set imap_user = "USER@GAPPS2.com" \
imap_pass = $my_pass_acct2 '
folder-hook 'imaps://USER@GAPPS2.com@imap.gmail.com:993/INBOX' \
' set imap_user = "USER@GAPPS2.com" \
imap_pass = $my_pass_acct2 \
smtp_url = "smtp://USER@GAPPS2.com@smtp.gmail.com:587/" \
smtp_pass = $my_pass_acct2 \
from = "USER@GAPPS2.com" \
realname = "USER" \
folder = "imaps://imap.gmail.com:993" \
spoolfile = "+INBOX" \
postponed="+[Gmail]/Drafts" \
mail_check=60 \
imap_keepalive=300 \
signature="" \
pgp_decode_command="gpg %?p?--passphrase-fd 0? --no-verbose --batch --output - %f" \
pgp_verify_command="gpg --no-verbose --batch --output - --verify %s %f" \
pgp_decrypt_command="gpg --passphrase-fd 0 --no-verbose --batch --output - %f" \
pgp_sign_command="gpg --no-verbose --batch --output - --passphrase-fd 0 --armor --detach-sign --textmode %?a?-u %a? %f" \
pgp_clearsign_command="gpg --no-verbose --batch --output - --passphrase-fd 0 --armor --textmode --clearsign %?a?-u %a? %f" \
pgp_encrypt_only_command="pgpewrap gpg --batch --quiet --no-verbose --output - --encrypt --textmode --armor --always-trust --encrypt-to 0xDEADBEEF -- -r %r -- %f" \
pgp_encrypt_sign_command="pgpewrap gpg --passphrase-fd 0 --batch --quiet --no-verbose --textmode --output - --encrypt --sign %?a?-u %a? --armor --always-trust --encrypt-to 0xDEADBEEF -- -r %r -- %f" \
pgp_import_command="gpg --no-verbose --import -v %f" \
pgp_export_command="gpg --no-verbose --export --armor %r" \
pgp_verify_key_command="gpg --no-verbose --batch --fingerprint --check-sigs %r" \
pgp_list_pubring_command="gpg --no-verbose --batch --with-colons --list-keys %r" \
pgp_list_secring_command="gpg --no-verbose --batch --with-colons --list-secret-keys %r" \
pgp_autosign=yes \
pgp_sign_as=0xDEADBEEF \
pgp_replyencrypt=yes \
pgp_timeout=1800 \
pgp_good_sign="^gpg: Good signature from" '
#### end account2 ####
#### account 3 gmail ####
account-hook 'imaps://USER@imap.gmail.com:993/' \
' set imap_user = "USER@gmail.com" \
imap_pass = $my_pass_acct3 '
folder-hook 'imaps://USER@imap.gmail.com:993/INBOX' \
' set imap_user = "USER@gmail.com" \
imap_pass = $my_pass_acct3 \
smtp_url = "smtp://USER@smtp.gmail.com:587/" \
smtp_pass = $my_pass_acct3 \
from = "USER@gmail.com" \
realname = "USER" \
folder = "imaps://imap.gmail.com:993" \
spoolfile = "+INBOX" \
postponed="+[Gmail]/Drafts" \
mail_check=60 \
imap_keepalive=300 \
signature="" '
#### end account 3 gmail ####