1
0
chezmoi/home/dot_mbsyncrc.tmpl

118 lines
2.6 KiB
Cheetah
Raw Normal View History

2024-03-04 16:01:40 +00:00
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
##########################
# _ _ _ _____ #
# /\ / / / \| ||\ ||(_ #
# /--\\_\_\_/|_|| \||__) #
# #
##########################
2024-03-04 19:02:02 +00:00
{{ range $value := .mail }}
# {{ $value.comment }}
#-------------------------
2024-03-04 19:02:02 +00:00
IMAPAccount {{ $value.account }}
# Address to connect to
2024-03-04 19:02:02 +00:00
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
2024-03-04 19:02:02 +00:00
IMAPStore {{ $value.account }}-remote
Account {{ $value.account }}
2024-03-04 19:02:02 +00:00
MaildirStore {{ $value.account }}-local
SubFolders Verbatim
# The trailing "/" is important
2024-03-04 19:02:02 +00:00
Path ~/Mail/{{ $value.account }}/
Inbox ~/Mail/{{ $value.account }}/inbox
2024-03-04 19:02:02 +00:00
Channel {{ $value.account }}-inbox
Far :{{ $value.account }}-remote:
Near :{{ $value.account }}-local:inbox
Sync PullNew PullDelete Push
SyncState *
# Remove Both
Expunge Both
2024-03-04 19:02:02 +00:00
Channel {{ $value.account }}-sent
Far :{{ $value.account }}-remote:"Sent Items"
Near :{{ $value.account }}-local:sent
Sync PullNew PullDelete Push
SyncState *
Expunge Both
2024-03-04 19:02:02 +00:00
Channel {{ $value.account }}-trash
Far :{{ $value.account }}-remote:"Deleted Items"
Near :{{ $value.account }}-local:trash
Sync PullNew PullDelete Push
SyncState *
Expunge Both
2024-03-04 19:02:02 +00:00
Channel {{ $value.account }}-drafts
Far :{{ $value.account }}-remote:"Drafts"
Near :{{ $value.account }}-local:drafts
Sync PullNew PullDelete Push
SyncState *
Expunge Both
2024-03-04 19:02:02 +00:00
Channel {{ $value.account }}-junk
Far :{{ $value.account }}-remote:"Junk Email"
Near :{{ $value.account }}-local:junk
Sync PullNew PullDelete Push
SyncState *
Expunge Both
2024-03-04 19:02:02 +00:00
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
2024-03-04 19:02:02 +00:00
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
2024-03-04 15:57:09 +00:00
{{ end }}