1
0
This commit is contained in:
Jeff Lance 2024-03-04 13:40:01 +01:00
parent 112ea6cd86
commit 5700a78e7e
2 changed files with 12 additions and 8 deletions

View File

@ -6,14 +6,18 @@
[data]
email = {{ $email | quote }}
mbsyncAccountNumber = {{ $mbsyncAccountNumber }}
{{- if gt $mbsyncAccountNumber 0 -}}
{{- range $i, $e := until $mbsyncAccountNumber -}}
{{ $mbsyncAccountName := promptString "MbSync account name " }}
{{ $mbsyncAccountMail := promptString "MbSync account mail " }}
{{ $mbsyncAccountUser := promptString "MbSync account user " }}
{{ $mbsyncAccountHost := promptString "MbSync account host " }}
[[data.mbsync]]
name = {{ promptString "MbSync account name " }}
email = "accountEmail"
username = "accountUserName"
server = "accountServer"
name = {{ $mbsyncAccountName | quote }}
mail = {{ $mbsyncAccountMail | quote }}
user = {{ $mbsyncAccountUser | quote }}
host = {{ $mbsyncAccountHost | quote }}
{{- end -}}
{{- end -}}

View File

@ -31,9 +31,9 @@ BufferLimit 100M
IMAPAccount {{ $value.name }}
# Address to connect to
Host {{ $value.server }}
User {{ $value.username }}
PassCmd "pass {{ $value.server }}/{{ $value.username }}"
Host {{ $value.host }}
User {{ $value.user }}
PassCmd "pass {{ $value.host }}/{{ $value.user }}"
# Use SSL
# SSLType IMAPS
SSLType None