1
0
This commit is contained in:
2024-03-04 20:02:02 +01:00
parent 09cea8065a
commit dcb8e7ea88
3 changed files with 59 additions and 88 deletions

View File

@@ -1,13 +1,18 @@
[data]
email = {{ promptString "Git main email address " "" | quote }}
{{- with promptInt "How many mbsync accounts would you generate " 0 -}}{{- $count := . | int }}
{{- with promptInt "How many mail accounts would you like to configure " 0 -}}{{- $count := . | int }}
{{- if gt $count 0 -}}
{{- range $i, $e := until $count }}
[[data.mbsync]]
name = {{ promptString "MbSync account name " | quote }}
mail = {{ promptString "MbSync account mail " | quote }}
user = {{ promptString "MbSync account user " | quote }}
host = {{ promptString "MbSync account host " | quote }}
[[data.mail]]
comment = {{ promptString "Mail description " | quote }}
account = {{ promptString "Mail account name " | quote }}
address = {{ promptString "Mail address " | quote }}
usrname = {{ promptString "Mail username " | quote }}
imapsrv = {{ promptString "Mail imap host " | quote }}
smtpsrv = {{ promptString "Mail smtp host " | quote }}
smtport = {{ promptInt "Mail smtp port " 465 }}
smtpaut = {{ promptChoice "Mail smtp auth " (list "on" "plain") "on" }}
autofro = {{ promptChoice "Auto from " (list "on" "off") "off" }}
{{- end }}
{{- end }}
{{- end }}