blob: 28540df71b0d6c8ce346824a898a0a18ca7cd34a (
plain)
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
|
import textwrap
def mbsync_gmail(login, password, store_path):
return textwrap.dedent(f"""
IMAPAccount {login}
Host imap.gmail.com
SSLType IMAPS
User {login}
Pass {password}
IMAPStore {login}-remote
Account {login}
MaildirStore {login}-local
SubFolders Verbatim
Path {store_path}/{login}/
Inbox {store_path}/{login}/INBOX
Channel {login}
Far :{login}-remote:
Near :{login}-local:
Patterns *
Create Both
Expunge Both
SyncState *
""").lstrip()
def mbsync_yahoo(login, password, store_path):
return textwrap.dedent(f"""
IMAPAccount {login}
Host imap.mail.yahoo.com
SSLType IMAPS
User {login}
Pass {password}
PipelineDepth 5
IMAPStore {login}-remote
Account {login}
MaildirStore {login}-local
SubFolders Verbatim
Path {store_path}/{login}/
Inbox {store_path}/{login}/Inbox
Channel {login}
Far :{login}-remote:
Near :{login}-local:
Patterns *
Create Both
Expunge Both
SyncState *
""").lstrip()
|