diff options
| author | alex <alex@pdp7.net> | 2023-10-19 22:09:54 +0200 |
|---|---|---|
| committer | alex <alex@pdp7.net> | 2023-10-19 22:09:54 +0200 |
| commit | c756cf590ab20ae90979b0a71b43f600dfbd1224 (patch) | |
| tree | eedcdda0652f5d5ba5eff50f19ac30770d0f26e2 /scripts/p7s/mbsync.py | |
| parent | d7437aae5d15f107fdc52dc33f23908449a602c5 (diff) | |
Refactor mbsync stuff
Diffstat (limited to 'scripts/p7s/mbsync.py')
| -rw-r--r-- | scripts/p7s/mbsync.py | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/scripts/p7s/mbsync.py b/scripts/p7s/mbsync.py deleted file mode 100644 index 8c4194e3..00000000 --- a/scripts/p7s/mbsync.py +++ /dev/null @@ -1,29 +0,0 @@ -import pathlib -import textwrap - -from p7s import bitwarden - - -def generate_config(): - gmail_password = bitwarden.get_item("https://bitwarden.pdp7.net", "alex@corcoles.net", "cad137b0-cfd5-4d5c-b167-98a9e792f4cc")["login"]["password"] - (pathlib.Path.home() / (".mbsyncrc")).write_text(textwrap.dedent(f""" - IMAPStore gmail-remote - Host imap.gmail.com - SSLType IMAPS - AuthMechs LOGIN - User koalillo@gmail.com - Pass "{gmail_password}" - - MaildirStore gmail-local - Path ~/Mail/koalillo@gmail.com/ - Inbox ~/Mail/koalillo@gmail.com/INBOX - Subfolders Verbatim - - Channel gmail - Far :gmail-remote: - Near :gmail-local: - Create Both - Expunge Both - Patterns * - SyncState * - """)) |
