excluded folder are synced?

Rainer M Krug R.M.Krug at gmail.com
Tue Dec 13 09:16:47 GMT 2011


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi
I am using offlineimap to backup my gmail account, and planning to
acces it via an imap server, but this is another step.

What I would like to do, is to exclude at the moment the folders Spam
All, Spam and Trash. I included a folderfilter (see the config file
below), but these folders get synced anyway. Any ideas how I can avoid
this?

Should I delete them locally and try again?

offlineimap version 6.3.3, Ubuntu Oneiric

Thanks,

Rainer

[general]
accounts = Gmail
maxsyncaccounts = 1

[Account Gmail]
localrepository = LocalRMKruggmailcom
remoterepository = RMKruggmailcom
postsynchook = notmuch new
status_backend = sqlite

[Repository Local]
type = IMAP
remotehost = localhost
port = 143
remoteuser = rkrug
remotepass = Renoster

[Repository LocalRMKruggmailcom]
type = Maildir
localfolders = ~/Maildir/R_M_Krug__gmail_com

[Repository RMKruggmailcom]
type = IMAP
remotehost = imap.gmail.com
remoteuser = MYUSERNAME
remotepass = MYPASSWORD
ssl = yes
maxconnections = 8
realdelete = no
# folderfilter = lambda foldername: foldername in ['INBOX']
folderfilter = lambda foldername: foldername not in ['[Gmail]/All
Mail','[Gmail]/Trash','[Gmail]/Spam]']
# actually in one line!

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk7nF/4ACgkQoYgNqgF2egoklACfSEAwWfPhx9J4w4fB9tZudTyL
PCoAn3MOu4vmyKIunN/YLicC2eRnpjHq
=QIkg
-----END PGP SIGNATURE-----





More information about the OfflineIMAP-project mailing list