hi,

sorry for the excessive delay ...

On Tue, Jun 18, 2019 at 01:28:47AM +0000, Luis Chamberlain wrote:
If you're using gmail for development you may often have tons of
mailing lists for one project, and so may use nested labels. This
shows how to use them, and how to try to avoid goin[g] over gmail's
quota.
---
src/mbsyncrc.sample | 42 ++++++++++++++++++++++++++++++++++++++++++
1 file changed, 42 insertions(+)

diff --git a/src/mbsyncrc.sample b/src/mbsyncrc.sample
index ef842fe..e6e63e0 100644
--- a/src/mbsyncrc.sample
+++ b/src/mbsyncrc.sample
@@ -100,3 +100,45 @@ Channel inbox
Master :server:INBOX
Slave :mirror:server
Patterns *
+
+# A gmail example
+#
+# First generic defaults
+Create Slave
+SyncState *
+
i see the intent, but you can't just append that to the sample file. instead, add it commented out to the existing header.

+IMAPAccount gmail

+CertificateFile /etc/ssl/certs/ca-certificates.crt

drop that.

+SSLType IMAPS
+Host imap.gmail.com
+User u...@gmail.com

+# Must be an application specific password, otherwise google will deny access.

... unless you enable insecure access.
anyway, i'd like to see a pointer to a page that contains clear instructions how to obtain such a password.

+Pass example

+# Throttle mbsync so we don't go over gmail's quota: OVERQUOTA error would
+# eventually be returned otherwise. For more details see:
+# https://sourceforge.net/p/isync/mailman/message/35458365/
+PipelineDepth 50
+
+MaildirStore gmail-local
+# The trailing "/" is important
+Path ~/Mail/
+Inbox ~/Mail/Inbox

+Subfolders Verbatim

that's pointless, as you flatten the hierarchy anyway.

+
+IMAPStore gmail-remote
+Account gmail
+
+# An example of nested labels on gmail, useful for large projects with
+# many mailing lists. We have to flatten out the structure locally.
+Channel linux-xfs
+Master :gmail-remote:"linux-kernel/linux-xfs"
+Slave :gmail-local:linux-kernel.linux-xfs

have you tried mbsync's Flatten option? then you could just use Patterns and would need no Group.

+
+Channel linux-fsdevel
+Master :gmail-remote:"linux-kernel/linux-fsdevel"
+Slave :gmail-local:linux-kernel.linux-fsdevel
+
+# Get all the gmail channels together into a group.
+Group googlemail
+Channel linux-xfs
+Channel linux-fsdevel
--
2.20.1


_______________________________________________
isync-devel mailing list
isync-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/isync-devel

Reply via email to