aboutsummaryrefslogtreecommitdiff
path: root/scripts/p7s/mail/mbsync.py
diff options
context:
space:
mode:
authoralex <alex@pdp7.net>2025-09-07 10:43:59 +0200
committeralexpdp7 <alex@corcoles.net>2025-09-20 21:41:13 +0200
commit2a907585e053a56997f013cdf25eaf86f8931a5c (patch)
treefeb210411eec1e2c1fedc39c3ed2bd1f8958843a /scripts/p7s/mail/mbsync.py
parent119dccf3222084f28dc39a6988f18595dbae72cd (diff)
Migrate to Migadu
Diffstat (limited to 'scripts/p7s/mail/mbsync.py')
-rw-r--r--scripts/p7s/mail/mbsync.py27
1 files changed, 27 insertions, 0 deletions
diff --git a/scripts/p7s/mail/mbsync.py b/scripts/p7s/mail/mbsync.py
index bd27893a..50c1e3fb 100644
--- a/scripts/p7s/mail/mbsync.py
+++ b/scripts/p7s/mail/mbsync.py
@@ -55,3 +55,30 @@ def mbsync_yahoo(login, password, store_path):
Expunge Both
SyncState *
""").lstrip()
+
+
+def mbsync_migadu(login, password, store_path):
+ return textwrap.dedent(f"""
+ IMAPAccount {login}
+ Host imap.migadu.com
+ SSLType IMAPS
+ User {login}
+ Pass {password}
+ PipelineDepth 5
+
+ IMAPStore {login}-remote
+ Account {login}
+
+ MaildirStore {login}-local
+ SubFolders Verbatim
+ Path {store_path}/{login}/
+ Inbox {store_path}/{login}/Inbox
+
+ Channel {login}
+ Far :{login}-remote:
+ Near :{login}-local:
+ Patterns *
+ Create Both
+ Expunge Both
+ SyncState *
+ """).lstrip()