33 lines
645 B
Cheetah
33 lines
645 B
Cheetah
{{ if hasKey . "mail" -}}
|
|
{{ range .mail.accounts -}}
|
|
IMAPAccount {{.name}}
|
|
Host {{.host}}
|
|
User {{.user}}
|
|
PassCmd "gopass show communication/{{.host}}/{{.user}}"
|
|
Port {{ .port }}
|
|
TLSType IMAPS
|
|
AuthMechs Login
|
|
{{ if hasKey . "certificate" -}}
|
|
CertificateFile ~/.cert/email-cert-{{.name}}.pem
|
|
{{- end }}
|
|
|
|
IMAPStore {{.name}}-remote
|
|
Account {{.name}}
|
|
|
|
MaildirStore {{.name}}-local
|
|
Path ~/Mail/{{.name}}/
|
|
Inbox ~/Mail/{{.name}}/INBOX
|
|
SubFolders Verbatim
|
|
|
|
Channel {{.name}}
|
|
Near :{{.name}}-local:
|
|
Far :{{.name}}-remote:
|
|
Patterns {{ range .patterns }}{{.| quote}} {{end}}
|
|
Create Both
|
|
Sync All
|
|
Expunge Both
|
|
Remove Both
|
|
SyncState *
|
|
|
|
{{ end }}
|
|
{{ end }}
|