1
0
This commit is contained in:
Jeff Lance 2024-03-03 23:12:50 +01:00
parent e7160774a8
commit 0b910634a2

View File

@ -31,12 +31,9 @@ BufferLimit 100M
IMAPAccount {{ $value.name }} IMAPAccount {{ $value.name }}
# Address to connect to # Address to connect to
Host {{- $value.server -}} Host {{ $value.server }}
User {{- $value.username -}} User {{ $value.username }}
# Get the password account through secret-tool PassCmd "pass {{ $value.server }}/{{ $value.username }}"
# I replaced it by a pass command
# PassCmd "secret-tool lookup email jeff.lance@mala.fr service imap"
PassCmd "pass {{- $value.server -}}/{{- $value.username -}}"
# Use SSL # Use SSL
# SSLType IMAPS # SSLType IMAPS
SSLType None SSLType None
@ -46,61 +43,61 @@ SSLType None
CertificateFile /etc/ssl/certs/ca-certificates.crt CertificateFile /etc/ssl/certs/ca-certificates.crt
IMAPStore {{- $value.name -}}-remote IMAPStore {{ $value.name }}-remote
Account {{- $value.name -}} Account {{ $value.name }}
MaildirStore {{- $value.name -}}-local MaildirStore {{ $value.name }}-local
SubFolders Verbatim SubFolders Verbatim
# The trailing "/" is important # The trailing "/" is important
Path ~/Mail/{{- $value.name -}}/ Path ~/Mail/{{ $value.name }}/
Inbox ~/Mail/{{- $value.name -}}/inbox Inbox ~/Mail/{{ $value.name }}/inbox
Channel {{- $value.name -}}-inbox Channel {{ $value.name }}-inbox
Far :{{- $value.name -}}-remote: Far :{{ $value.name }}-remote:
Near :{{- $value.name -}}-local:inbox Near :{{ $value.name }}-local:inbox
Sync PullNew PullDelete Push Sync PullNew PullDelete Push
SyncState * SyncState *
# Remove Both # Remove Both
Expunge Both Expunge Both
Channel {{- $value.name -}}-sent Channel {{ $value.name }}-sent
Far :{{- $value.name -}}-remote:"Sent Items" Far :{{ $value.name }}-remote:"Sent Items"
Near :{{- $value.name -}}-local:sent Near :{{ $value.name }}-local:sent
Sync PullNew PullDelete Push Sync PullNew PullDelete Push
SyncState * SyncState *
Expunge Both Expunge Both
Channel {{- $value.name -}}-trash Channel {{ $value.name }}-trash
Far :{{- $value.name -}}-remote:"Deleted Items" Far :{{ $value.name }}-remote:"Deleted Items"
Near :{{- $value.name -}}-local:trash Near :{{ $value.name }}-local:trash
Sync PullNew PullDelete Push Sync PullNew PullDelete Push
SyncState * SyncState *
Expunge Both Expunge Both
Channel {{- $value.name -}}-drafts Channel {{ $value.name }}-drafts
Far :{{- $value.name -}}-remote:"Drafts" Far :{{ $value.name }}-remote:"Drafts"
Near :{{- $value.name -}}-local:drafts Near :{{ $value.name }}-local:drafts
Sync PullNew PullDelete Push Sync PullNew PullDelete Push
SyncState * SyncState *
Expunge Both Expunge Both
Channel {{- $value.name -}}-junk Channel {{ $value.name }}-junk
Far :{{- $value.name -}}-remote:"Junk Email" Far :{{ $value.name }}-remote:"Junk Email"
Near :{{- $value.name -}}-local:junk Near :{{ $value.name }}-local:junk
Sync PullNew PullDelete Push Sync PullNew PullDelete Push
SyncState * SyncState *
Expunge Both Expunge Both
Channel {{- $value.name -}}-archive Channel {{ $value.name }}-archive
Far :{{- $value.name -}}-remote:"Archive" Far :{{ $value.name }}-remote:"Archive"
Near :{{- $value.name -}}-local:archive Near :{{ $value.name }}-local:archive
Pattern * Pattern *
Create Near Create Near
MaxMessages 1500 MaxMessages 1500
@ -109,12 +106,12 @@ SyncState *
Expunge Both Expunge Both
Group {{- $value.name -}} Group {{ $value.name }}
Channel {{- $value.name -}}-inbox Channel {{ $value.name }}-inbox
Channel {{- $value.name -}}-sent Channel {{ $value.name }}-sent
Channel {{- $value.name -}}-trash Channel {{ $value.name }}-trash
Channel {{- $value.name -}}-drafts Channel {{ $value.name }}-drafts
Channel {{- $value.name -}}-junk Channel {{ $value.name }}-junk
Channel {{- $value.name -}}-archive Channel {{ $value.name }}-archive
{{ end }} {{ end }}