Disable remote repo folder creation feature

Sebastian Spaeth Sebastian at SSpaeth.de
Tue May 8 16:00:06 BST 2012


On Mon, 16 Apr 2012 11:55:09 +0200, SK <sk.list at gmail.com> wrote:
> Hi all,
> 
> I have been using offlineimap for some time now but not the 6.5.x.y
> version. As expected, when I upgraded to 6.5.3.1, I ran into issues
> related to bidirectional nametrans issue (aka creation of folders on
> the remote repository). I have been struggling to understand the
> syntax/logic and find it a bit irritating mainly because I don't need
> this feature. Is there any way to disable this remote repo folder
> creation feature completely in offlineimap and just keep using the
> older version of offlineimaprc? My cpu has only so many cycles! :)

This is commit: 0752c123f518a10b0dfe0786248dfe2af1c8f603

The next branch now contains the feature to disable folder creation on
any remote. Please test and if it works I will push out a new release
soonish.

Implement the "createfolders" setting for repositories

By default OfflineImap propagates new folders in both
directions. Sometimes this is not what you want. E.g. you might want
new folders on your IMAP server to propagate to your local MailDir,
but not the other way around. The 'readonly' setting on a repository
will not help here, as it prevents any change from occuring on that
repository. This is what the `createfolders` setting is for. By
default it is `True`, meaning that new folders can be created on this
repository. To prevent folders from ever being created on a
repository, set this to `False`. If you set this to False on the
REMOTE repository, you will not have to create the `Reverse
nametrans`_ rules on the LOCAL repository.

Also implement a test for this

Signed-off-by: Sebastian Spaeth <Sebastian at SSpaeth.de>

Sebastian
> 
> Thanks,
> skn
> 
> _______________________________________________
> 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




More information about the OfflineIMAP-project mailing list