aboutsummaryrefslogtreecommitdiff
path: root/.mbsyncrc
diff options
context:
space:
mode:
authorMiquel Sabaté Solà <msabate@suse.com>2022-03-04 15:54:15 +0100
committerMiquel Sabaté Solà <msabate@suse.com>2022-03-04 15:54:15 +0100
commit78ce1a96dc54356f5be8c0801090488635a192ed (patch)
tree4c9283d7c8d92bae9016339541cef7c3aac36b5e /.mbsyncrc
parenteb692c1bccee482258f89614dcacc99424fc46aa (diff)
downloaddotfiles-78ce1a96dc54356f5be8c0801090488635a192ed.tar.gz
dotfiles-78ce1a96dc54356f5be8c0801090488635a192ed.zip
email: well, restrictions are stupid
The 'ajuntament' maildir has to be handled separately and manually because resources there are scarce, and after 2GiB of space consumed, it does not allow to proceed further. Therefore, I am nuking everything on the server while preserving things locally with a 'Pull New Flags' mode on mbsync. This has the side-effect that now emails that have been already handled on the website and moved into archive are no longer perceived to be moved, and the 'inbox' folder might keep on growing. That is why I have set up a hook before mu4e's update so these emails are removed every time. Again, restrictions are stupid and I should not have to do this. Signed-off-by: Miquel Sabaté Solà <msabate@suse.com>
Diffstat (limited to '.mbsyncrc')
-rw-r--r--.mbsyncrc12
1 files changed, 8 insertions, 4 deletions
diff --git a/.mbsyncrc b/.mbsyncrc
index d903691..006aa9d 100644
--- a/.mbsyncrc
+++ b/.mbsyncrc
@@ -119,7 +119,11 @@ Expunge Both
SyncState *
##
-# ajuntament
+# ajuntament: notice that in this case the mailbox is configured to 'Pull' only
+# and that deletions are not propagated. This is done to workaround the
+# shamefully-low capacity given on this service, in a way that I have to
+# periodically *remove everything* on the server. This is hence manually backed
+# up.
IMAPAccount ajuntament
Host mail.diba.cat
@@ -142,9 +146,9 @@ Channel ajuntament
Master :ajuntament-remote:
Slave :ajuntament-local:
Patterns * !Calendar
-Create Both
-Sync All
-Expunge Both
+Create None
+Sync Pull New Flags
+Expunge None
SyncState *
##