1
0
chezmoi/home/dot_mbsyncrc.tmpl

123 lines
2.5 KiB
Cheetah
Raw Normal View History

#####################
# __ _ _ #
# /__| / \|_) /\ | #
# \_||_\_/|_)/--\|_ #
# #
#####################
# 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 15:57:47 +00:00
{{- if (ne (len .mbsync) 0) -}}
2024-03-04 15:54:47 +00:00
longueur 0
2024-03-04 15:10:50 +00:00
{{ range $value := .mbsync }}
2024-03-03 21:59:30 +00:00
# {{ $value.name }}
#-------------------------
2024-03-03 21:59:30 +00:00
IMAPAccount {{ $value.name }}
# Address to connect to
2024-03-04 12:40:01 +00:00
Host {{ $value.host }}
User {{ $value.user }}
PassCmd "pass {{ $value.host }}/{{ $value.user }}"
# 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-03 22:12:50 +00:00
IMAPStore {{ $value.name }}-remote
Account {{ $value.name }}
2024-03-03 22:12:50 +00:00
MaildirStore {{ $value.name }}-local
SubFolders Verbatim
# The trailing "/" is important
2024-03-03 22:12:50 +00:00
Path ~/Mail/{{ $value.name }}/
Inbox ~/Mail/{{ $value.name }}/inbox
2024-03-03 22:12:50 +00:00
Channel {{ $value.name }}-inbox
Far :{{ $value.name }}-remote:
Near :{{ $value.name }}-local:inbox
Sync PullNew PullDelete Push
SyncState *
# Remove Both
Expunge Both
2024-03-03 22:12:50 +00:00
Channel {{ $value.name }}-sent
Far :{{ $value.name }}-remote:"Sent Items"
Near :{{ $value.name }}-local:sent
Sync PullNew PullDelete Push
SyncState *
Expunge Both
2024-03-03 22:12:50 +00:00
Channel {{ $value.name }}-trash
Far :{{ $value.name }}-remote:"Deleted Items"
Near :{{ $value.name }}-local:trash
Sync PullNew PullDelete Push
SyncState *
Expunge Both
2024-03-03 22:12:50 +00:00
Channel {{ $value.name }}-drafts
Far :{{ $value.name }}-remote:"Drafts"
Near :{{ $value.name }}-local:drafts
Sync PullNew PullDelete Push
SyncState *
Expunge Both
2024-03-03 22:12:50 +00:00
Channel {{ $value.name }}-junk
Far :{{ $value.name }}-remote:"Junk Email"
Near :{{ $value.name }}-local:junk
Sync PullNew PullDelete Push
SyncState *
Expunge Both
2024-03-03 22:12:50 +00:00
Channel {{ $value.name }}-archive
Far :{{ $value.name }}-remote:"Archive"
Near :{{ $value.name }}-local:archive
Pattern *
Create Near
MaxMessages 1500
Sync New Delete Push
SyncState *
Expunge Both
2024-03-03 22:12:50 +00:00
Group {{ $value.name }}
Channel {{ $value.name }}-inbox
Channel {{ $value.name }}-sent
Channel {{ $value.name }}-trash
Channel {{ $value.name }}-drafts
Channel {{ $value.name }}-junk
Channel {{ $value.name }}-archive
2024-03-04 15:57:09 +00:00
{{ end }}
{{ end }}