Push locally-created folders to IMAP server?

Dmitrijs Ledkovs xnox at debian.org
Wed Oct 3 14:26:11 UTC 2012


On 3 October 2012 15:09, seanh <snhmnd at gmail.com> wrote:
> On Thu, Sep 27, 2012 at 08:00:28PM +0200, seanh wrote:
>> On Tue, Sep 25, 2012 at 10:17:02AM +0400, Eygene Ryabinkin wrote:
>> > Hi.
>> >
>> > Mon, Sep 24, 2012 at 01:18:33PM +0200, seanh wrote:
>> > > Hey, is there any way to push locally-created maildir folders up to the
>> > > imap server? They don't seem to get created on the server, and when I
>> > > manually created the empty folder on the server then offlineimap tried
>> > > to create the folder locally but stopped with an error saying the folder
>> > > already exists.
>> > >
>> > > I have offlineimap 6.5.4
>> >
>> > 6.5.4 does that for me on a daily basis.  Perhaps output from
>> > 'offlineimap -d ALL' and your offlineimaprc will help here.
>>
>> Thanks, it's good to know that the feature is supported in principle. I
>> definitely have folders in my maildirs that are not getting synced up to
>> gmail though.
>>
>> Here's my config:
>>
>> https://gist.github.com/3795376
>>
>> The folders in question are Archives/* folders, so they should be caught
>> by my folderfilter setting. The folderfilter setting is probably the
>> prime suspect here though.
>>
>> The output of offlineimap -d ALL is an 11MB file, so I didn't post it.
>>
>> I tried adding the folders to my folderincludes, but then I got this:
>>
>> ERROR: Exceptions occurred during the run!
>> ERROR: Invalid folderinclude:
>>   Error SELECTing mailbox 'Archives/data.gv.at', server reply:
>> ('NO', ['[NONEXISTENT] Unknown Mailbox: Archives/data.gv.at (now in authenticated state) (Failure)'])
>> ERROR: Invalid folderinclude:
>>   Error SELECTing mailbox 'Archives/register.data.overheid.nl', server reply:
>> ('NO', ['[NONEXISTENT] Unknown Mailbox: Archives/register.data.overheid.nl (Failure)'])
>> ERROR: Invalid folderinclude:
>>   Error SELECTing mailbox 'Archives/tanzania', server reply:
>> ('NO', ['[NONEXISTENT] Unknown Mailbox: Archives/tanzania (Failure)'])
>>
>> When I run offlineimap without these folders in my folderincludes, then
>> there are no errors and nothing about those folders in the output, it
>> certainly looks like they get filtered out by the folderfilter.
>
> I couldn't get it to work so in the end I moved the local folders out of
> the way then recreated them remotely. I'll just try to remember to
> create new folders remotely and then sync them, rather than creating
> them locally.
>

Did you add nametrans rules to map Remote->Local and Local->Remote folder names?
Without those, it will not be able to create folders on the remove repository.

http://docs.offlineimap.org/en/latest/nametrans.html#reverse-nametrans

Regards,

Dmitrijs.



More information about the OfflineIMAP-project mailing list