Up.
This commit is contained in:
parent
6ead18b352
commit
6d1124f671
@ -1,18 +0,0 @@
|
||||
[data]
|
||||
email = {{ promptString "Git main email address " "" | quote }}
|
||||
{{- with promptInt "How many mail accounts would you like to configure " 0 -}}{{- $count := . | int }}
|
||||
{{- if gt $count 0 -}}
|
||||
{{- range $i, $e := until $count }}
|
||||
[[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 | int }}
|
||||
smtpaut = {{ promptChoice "Mail smtp auth " (list "on" "plain") "on" }}
|
||||
autofro = {{ promptChoice "Auto from " (list "on" "off") "off" }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
{{- end }}
|
@ -1,117 +0,0 @@
|
||||
chezmoi:template:missing-key=zero
|
||||
#####################
|
||||
# __ _ _ #
|
||||
# /__| / \|_) /\ | #
|
||||
# \_||_\_/|_)/--\|_ #
|
||||
# #
|
||||
#####################
|
||||
|
||||
# Attempt to keep the time-stamp based
|
||||
# sorting intact
|
||||
CopyArrivalDate yes
|
||||
# Automatically create missing mailboxes,
|
||||
# both locally and on the server
|
||||
Create Near
|
||||
# The per-Channel, per-direction instantaneous
|
||||
# memory usage above which mbsync will refrain
|
||||
# from using more memory.
|
||||
BufferLimit 100M
|
||||
|
||||
|
||||
##########################
|
||||
# _ _ _ _____ #
|
||||
# /\ / / / \| ||\ ||(_ #
|
||||
# /--\\_\_\_/|_|| \||__) #
|
||||
# #
|
||||
##########################
|
||||
|
||||
{{ range $value := .mail }}
|
||||
# {{ $value.comment }}
|
||||
#-------------------------
|
||||
|
||||
IMAPAccount {{ $value.account }}
|
||||
# Address to connect to
|
||||
Host {{ $value.imapsrv }}
|
||||
User {{ $value.usrname }}
|
||||
PassCmd "pass {{ $value.host }}/{{ $value.usrname }}"
|
||||
# Use SSL
|
||||
# SSLType IMAPS
|
||||
SSLType None
|
||||
# The following line should work.
|
||||
# If get certificate errors, uncomment the two
|
||||
# following lines and read the "Troubleshooting" section.
|
||||
CertificateFile /etc/ssl/certs/ca-certificates.crt
|
||||
|
||||
|
||||
IMAPStore {{ $value.account }}-remote
|
||||
Account {{ $value.account }}
|
||||
|
||||
|
||||
MaildirStore {{ $value.account }}-local
|
||||
SubFolders Verbatim
|
||||
# The trailing "/" is important
|
||||
Path ~/Mail/{{ $value.account }}/
|
||||
Inbox ~/Mail/{{ $value.account }}/inbox
|
||||
|
||||
|
||||
Channel {{ $value.account }}-inbox
|
||||
Far :{{ $value.account }}-remote:
|
||||
Near :{{ $value.account }}-local:inbox
|
||||
Sync PullNew PullDelete Push
|
||||
SyncState *
|
||||
# Remove Both
|
||||
Expunge Both
|
||||
|
||||
|
||||
Channel {{ $value.account }}-sent
|
||||
Far :{{ $value.account }}-remote:"Sent Items"
|
||||
Near :{{ $value.account }}-local:sent
|
||||
Sync PullNew PullDelete Push
|
||||
SyncState *
|
||||
Expunge Both
|
||||
|
||||
|
||||
Channel {{ $value.account }}-trash
|
||||
Far :{{ $value.account }}-remote:"Deleted Items"
|
||||
Near :{{ $value.account }}-local:trash
|
||||
Sync PullNew PullDelete Push
|
||||
SyncState *
|
||||
Expunge Both
|
||||
|
||||
|
||||
Channel {{ $value.account }}-drafts
|
||||
Far :{{ $value.account }}-remote:"Drafts"
|
||||
Near :{{ $value.account }}-local:drafts
|
||||
Sync PullNew PullDelete Push
|
||||
SyncState *
|
||||
Expunge Both
|
||||
|
||||
|
||||
Channel {{ $value.account }}-junk
|
||||
Far :{{ $value.account }}-remote:"Junk Email"
|
||||
Near :{{ $value.account }}-local:junk
|
||||
Sync PullNew PullDelete Push
|
||||
SyncState *
|
||||
Expunge Both
|
||||
|
||||
|
||||
Channel {{ $value.account }}-archive
|
||||
Far :{{ $value.account }}-remote:"Archive"
|
||||
Near :{{ $value.account }}-local:archive
|
||||
Pattern *
|
||||
Create Near
|
||||
MaxMessages 1500
|
||||
Sync New Delete Push
|
||||
SyncState *
|
||||
Expunge Both
|
||||
|
||||
|
||||
Group {{ $value.account }}
|
||||
Channel {{ $value.account }}-inbox
|
||||
Channel {{ $value.account }}-sent
|
||||
Channel {{ $value.account }}-trash
|
||||
Channel {{ $value.account }}-drafts
|
||||
Channel {{ $value.account }}-junk
|
||||
Channel {{ $value.account }}-archive
|
||||
|
||||
{{ end }}
|
@ -1,22 +0,0 @@
|
||||
# Set default values for all following accounts.
|
||||
defaults
|
||||
auto_from on
|
||||
tls_trust_file /etc/ssl/certs/ca-certificates.crt
|
||||
syslog on
|
||||
# logfile /var/log/msmtp.log
|
||||
|
||||
{{ range $value := .mail }}
|
||||
# {{ $value.comment }}
|
||||
account {{ $value.account }}
|
||||
host {{ $value.smtpsrv }}
|
||||
port {{ $value.smtport }}
|
||||
auth {{ $value.smtpaut }}
|
||||
tls on
|
||||
tls_starttls off
|
||||
user {{ $value.usrname }}
|
||||
passwordeval "echo $(pass {{ $value.smtpsrv }}/{{ $value.usrname }})"
|
||||
auto_from {{ $value.autofro }}
|
||||
from {{ $value.address }}
|
||||
#
|
||||
{{ end }}
|
||||
|
Loading…
x
Reference in New Issue
Block a user