-
-
Notifications
You must be signed in to change notification settings - Fork 6
/
config.sample.toml
233 lines (208 loc) · 6.88 KB
/
config.sample.toml
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
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
################################################################################
#### Account configuration #####################################################
################################################################################
[accounts.example]
# Defaultness of the account. The current account will be used by
# default in all commands.
#
default = true
# Synchronize folders according to the given rules
#
#folder.filters = "all"
#folder.filters.exclude = ["All Mails"]
folder.filters.include = ["INBOX"]
# Synchronize envelopes according to the given rules
#
# Only before and after date filters are available.
#
#envelope.filter.before = "1990-12-31T23:59:60Z"
#envelope.filter.after = "1990-12-31T23:59:60Z"
########################################
#### Left/right backend configuration ##
########################################
#
# There is no distinction between left and right. There is no
# "direction" from left to right, backend can be configured in any
# order.
# Left Maildir configuration
#
left.backend.type = "maildir"
# The Maildir root directory. The path should point to the root level
# of the Maildir directory.
#
left.backend.root-dir = "~/.Mail/example"
# Does the Maildir folder follows the Maildir++ standard?
#
# See <https://en.wikipedia.org/wiki/Maildir#Maildir++>.
#
#left.backend.maildirpp = false
# Left Notmuch configuration
#
#left.backend.type = "notmuch"
# The path to the Notmuch database. The path should point to the root
# directory containing the Notmuch database (usually the root Maildir
# directory).
#
#left.backend.db-path = "~/.Mail/example"
# Overrides the default path to the Maildir folder.
#
#left.backend.maildir-path = "~/.Mail/example"
# Overrides the default Notmuch configuration file path.
#
#left.backend.config-path = "~/.notmuchrc"
# Override the default Notmuch profile name.
#
#left.backend.profile = "example"
# Left backend folder aliases
#
# These 4 special folders need an alias, in order to map themselves
# correctly between left and left backend. If your left backend trash
# folder is called "Trash", and your left one "Deleted", you need to
# set up aliases to prevent having both at the same time.
#
left.folder.aliases.inbox = "INBOX"
left.folder.aliases.drafts = "Drafts"
left.folder.aliases.sent = "Sent"
left.folder.aliases.trash = "Trash"
# Left backend permissions
#
# In this example, we set up a full permissive backend (default
# behaviour):
#
left.folder.permissions.create = true
left.folder.permissions.delete = true
left.flag.permissions.update = true
left.message.permissions.create = true
left.message.permissions.delete = true
# Right IMAP configuration
#
right.backend.type = "imap"
# IMAP server host name
#
right.backend.host = "localhost"
# IMAP server port
#
#right.backend.port = 143
right.backend.port = 993
# Defines the number of active IMAP clients during sync. A higher
# number consumes more resource but makes the sync faster.
#
right.backend.clients-pool-size = 4
# IMAP server encryption
#
#right.backend.encryption = "none" # or false
#right.backend.encryption = "start-tls"
right.backend.encryption = "tls" # or true
# IMAP server login
#
right.backend.login = "example@localhost"
# IMAP server password authentication configuration
#
right.backend.auth.type = "password"
#
# Password can be inlined (not recommended).
#
#right.backend.auth.raw = "p@assw0rd"
#
# Password can be stored inside your system global keyring (requires
# the keyring cargo feature). You must run at least once `himalaya
# account configure` to set up the password.
#
#right.backend.auth.keyring = "example-imap"
#
# Password can be retrieved from a shell command.
#
right.backend.auth.cmd = "pass show example-imap"
# IMAP server OAuth 2.0 authorization configuration (requires the
# oauth2 cargo feature)
#
#right.backend.auth.type = "oauth2"
#
# Client identifier issued to the client during the registration
# process described in RFC6749.
# See <https://datatracker.ietf.org/doc/html/rfc6749#section-2.2>.
#
#right.backend.auth.client-id = "client-id"
#
# Client password issued to the client during the registration process
# described in RFC6749.
#
# Defaults to keyring "<account-name>-imap-client-secret".
# See <https://datatracker.ietf.org/doc/html/rfc6749#section-2.2>.
#
#right.backend.auth.client-secret.raw = "<raw-client-secret>"
#right.backend.auth.client-secret.keyring = "example-imap-client-secret"
#right.backend.auth.client-secret.cmd = "pass show example-imap-client-secret"
#
# Method for presenting an OAuth 2.0 bearer token to a service for
# authentication
#
#right.backend.auth.method = "oauthbearer"
#right.backend.auth.method = "xoauth2"
#
# URL of the authorization server's authorization endpoint
#
#right.backend.auth.auth-url = "https://accounts.google.com/o/oauth2/v2/auth"
#
# URL of the authorization server's token endpoint
#
#right.backend.auth.token-url = "https://www.googleapis.com/oauth2/v3/token"
#
# Access token returned by the token endpoint and used to access
# protected resources. It is recommended to use the keyring variant,
# as it will refresh automatically.
#
# Defaults to keyring "<account-name>-imap-access-token".
#
#right.backend.auth.access-token.raw = "<raw-access-token>"
#right.backend.auth.access-token.keyring = "example-imap-access-token"
#right.backend.auth.access-token.cmd = "pass show example-imap-access-token"
#
# Refresh token used to obtain a new access token (if supported by the
# authorization server). It is recommended to use the keyring variant,
# as it will refresh automatically.
#
# Defaults to keyring "<account-name>-imap-refresh-token".
#
#right.backend.auth.refresh-token.raw = "<raw-refresh-token>"
#right.backend.auth.refresh-token.keyring = "example-imap-refresh-token"
#right.backend.auth.refresh-token.cmd = "pass show example-imap-refresh-token"
#
# Enable the protection, as defined in RFC7636.
#
# See <https://datatracker.ietf.org/doc/html/rfc7636>.
#
#right.backend.auth.pkce = true
#
# Access token scope(s), as defined by the authorization server.
#
#right.backend.auth.scope = "unique scope"
#right.backend.auth.scopes = ["multiple", "scopes"]
#
# Host name of the redirect server.
# Defaults to localhost.
#
#right.backend.auth.redirect-host = "localhost"
#
# Port of the redirect server.
# Defaults to the first available one.
#
#right.backend.auth.redirect-port = 9999
# Right backend folder aliases
#
# These 4 special folders need an alias, in order to map themselves
# correctly between left and right backend. If your left backend trash
# folder is called "Trash", and your right one "Deleted", you need to
# set up aliases to prevent having both at the same time.
#
right.folder.aliases.inbox = "INBOX"
right.folder.aliases.drafts = "Drafts"
right.folder.aliases.sent = "Sent"
right.folder.aliases.trash = "Trash"
# Right backend permissions
#
# In this example, we set up safer permissions by denying deletions
# right IMAP side.
#
right.folder.permissions.delete = false
right.message.permissions.delete = false