Getting offlineimap to maintain a specific maildir structure

Thomas Kahle tomka at gentoo.org
Tue Jul 17 10:55:19 BST 2012


Hi,

On 04:28 Tue 17 Jul 2012, Rogério Brito wrote:
[...] 
> | [Repository local]
> | type			= Maildir
> | localfolders		= ~/Maildir

In newer versions your local repository needs a nametrans that is the
inverse of the remote nametrans.  There have been a couple of threads on
this, e.g. here:
http://comments.gmane.org/gmane.mail.imap.offlineimap.general/5410

Also see the documentation on nametrans!

I hope this helps,
Thomas

> | 
> | [Repository remote]
> | type			= Gmail
> | remoteuser		= rbrito at gmail.com
> | remotepass		= mypassword
> | realdelete		= yes
> | nametrans		= lambda name: re.sub('^', '.', re.sub('^(\[Gmail
> \]/|INBOX)', '', name))
> | maxconnections	= 7
> | createfolders		= false
> | sslcacertfile		= /etc/ssl/certs/ca-certificates.crt
> `----
> 
> From what I understand, I disabled the bidirectional syncing with 
> createfolders=false (in an attempt to mimic as much as possible the 
> behavior of 6.3.4), but I get the following error message:
> 
> ,----
> | OfflineIMAP 6.5.4
> |   Licensed under the GNU GPL v2+ (v2 or any later version)
> | *** Processing account email
> | Establishing connection to imap.gmail.com:993
> | Creating folder .[local]
> | ERROR: Aborting sync, folder '.' [acc: 'email']
> |   getfolder() asked for a nonexisting folder '.'.
> (...)
> `----
> 
> I have tried to map the INBOX folder from Gmail to both the '.' directory 
> (which is refused, as seen above) and the empty string, but I get errors 
> in both situations.
> 
> So, how can I restore the functionality/behavior of offlineimap 6.3.4?
> 
> 
> Thanks in advance for any help,
> 
> -- 
> Rogério Brito : rbrito@{ime.usp.br,gmail.com} : GPG key 4096R/BCFCAAAA
> http://rb.doesntexist.org/blog : Projects : https://github.com/rbrito/
> DebianQA: http://qa.debian.org/developer.php?login=rbrito%40ime.usp.br
> 
> 
> _______________________________________________
> OfflineIMAP-project mailing list
> OfflineIMAP-project at lists.alioth.debian.org
> http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/offlineimap-project
> 
> OfflineIMAP homepage: http://software.complete.org/offlineimap

-- 
Thomas Kahle
http://dev.gentoo.org/~tomka/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 316 bytes
Desc: Digital signature
URL: <http://alioth-lists.debian.net/pipermail/offlineimap-project/attachments/20120717/2102dd10/attachment-0001.sig>


More information about the OfflineIMAP-project mailing list