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] [data]
email = {{ $email | quote }} email = {{ $email | quote }}
mbsyncAccountNumber = {{ $mbsyncAccountNumber }}
{{- if gt $mbsyncAccountNumber 0 -}} {{- if gt $mbsyncAccountNumber 0 -}}
{{- range $i, $e := until $mbsyncAccountNumber -}} {{- 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]] [[data.mbsync]]
name = {{ promptString "MbSync account name " }} name = {{ $mbsyncAccountName | quote }}
email = "accountEmail" mail = {{ $mbsyncAccountMail | quote }}
username = "accountUserName" user = {{ $mbsyncAccountUser | quote }}
server = "accountServer" host = {{ $mbsyncAccountHost | quote }}
{{- end -}} {{- end -}}
{{- end -}} {{- end -}}

View File

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