Bug 835688 - offline fails to sync with 'new' folder in tree created by dovecot
Summary: offline fails to sync with 'new' folder in tree created by dovecot
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: offlineimap
Version: 17
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Dodji Seketeli
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-06-26 20:28 UTC by Jes Sorensen
Modified: 2013-01-24 14:41 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-01-16 17:26:58 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
Dodji's patch for problem with empty folder names (1.81 KB, patch)
2012-06-26 20:28 UTC, Jes Sorensen
no flags Details | Diff

Description Jes Sorensen 2012-06-26 20:28:39 UTC
Created attachment 594593 [details]
Dodji's patch for problem with empty folder names

Description of problem:
offlineimap in F17 suffers from the problem that it refuses to sync when you
run dovecot on top of a Maildir tree. dovecot creates three directories: 'new',
'cur',  and 'tmp'. offlineimap for some reason fails with the 'new' one in the
root of your imap tree.

This problem is present in 6.5.2.1 but not in 6.3.4 shipped with Fedora 16.

Dodji Seketeli posted a patch to fix it to the upstream list, which I am
attaching.

The error message one gets looks as follows:

[jes@red-feather ~]$ offlineimap
OfflineIMAP 6.5.2.1
  Licensed under the GNU GPL v2+ (v2 or any later version)
Account sync RedHat:
 *** Processing account RedHat
 Establishing connection to mail.corp.redhat.com:993
 Creating new IMAP folder '/' on server RemoteRedHat
 ERROR: Creating folder  on repository RemoteRedHat
  Folder '/'[RemoteRedHat] could not be created. Server responded:
('NO', ['CREATE failed: invalid mailbox name'])
 ERROR: Folder '/'[RemoteRedHat] could not be created. Server responded:
('NO', ['CREATE failed: invalid mailbox name'])
 *** Finished account 'RedHat' in 0:03
ERROR: Exceptions occurred during the run!
ERROR: Creating folder  on repository RemoteRedHat
  Folder '/'[RemoteRedHat] could not be created. Server responded:
('NO', ['CREATE failed: invalid mailbox name'])
ERROR: Folder '/'[RemoteRedHat] could not be created. Server responded:
('NO', ['CREATE failed: invalid mailbox name'])
[jes@red-feather ~]$

Comment 1 Christoph Höger 2012-06-27 11:32:59 UTC
Thanks for the report. I am going to push an update whenever I find the time. Currently I am a little bit busy, so if you need that patch urgently, please try to install offlineimap from source (setup.py).

Comment 2 Dodji Seketeli 2012-07-06 13:05:29 UTC
Indeed.  For the record, I posted the patch upstream at http://permalink.gmane.org/gmane.mail.imap.offlineimap.general/5699

Comment 3 Dodji Seketeli 2012-08-24 08:27:37 UTC
Hello Christoph,

Now that we are reaching interesting times for Fedora 18, it would *really* be useful to have this patch in the package.  Without it, offlineimap is just useless for many of us.  So it would be nice to have the patch be in Rawhide (F19) at least.  So that we can at least test it for a couple of days before folding it into F18 and F17.

I have had some private discussions with Nicolas Sebrecht (an offlineimap maintainer) and he is planning to apply the patch.  They are still in flux with respect to the internal organization of offlineimap maintainership so things are taking time.  But that shouldn't prevent us from going ahead and including this kind of patches that have been proposed upstream, should it?

If you are too busy, I can help with co-maintaining this package in Fedora, if you wish.

Cheers.

Comment 4 Dodji Seketeli 2012-08-25 08:49:24 UTC
FYI, the patch now appears in the upstream git directory in the 'pu' (a.k.a proposed updates)  branch at https://github.com/OfflineIMAP/offlineimap/commit/35bccdc7dfab8ec0c8f176b5c8ffd34e74284479.

Comment 5 Dodji Seketeli 2012-08-25 10:26:21 UTC
I am currently testing a scratch build with that patch applied, on the zimbra server where I was having the issue.  This is going to take several hours.  I'll keep you posted.  http://koji.fedoraproject.org/koji/taskinfo?taskID=4421643.

Comment 6 Dodji Seketeli 2012-08-26 10:03:53 UTC
I have tested the package in Rawhide (F19) and it works for me on a Zimbra server and on a dovecot server.  We can at least roll out a Rawhide build now.

I'll test it on F17 a bit later and let you know.

Comment 7 Dodji Seketeli 2012-08-27 11:09:30 UTC
http://koji.fedoraproject.org/koji/buildinfo?buildID=350596 has the fix for Rawhide.  I'll wait until the end of this week to push it to update-testsing for F18 and F17, if it doesn't break anything in Rawhide.

Comment 8 Jes Sorensen 2012-09-11 10:25:52 UTC
I am just testing the rawhide rpm on F17, and it seems to work fine for me
here.

Thanks for fixing this.

Jes

Comment 9 Fedora Admin XMLRPC Client 2012-11-20 15:10:47 UTC
This package has changed ownership in the Fedora Package Database.  Reassigning to the new owner of this component.

Comment 10 Fedora Update System 2012-12-19 08:18:36 UTC
offlineimap-6.5.2.1-3.el6 has been submitted as an update for Fedora EPEL 6.
https://admin.fedoraproject.org/updates/offlineimap-6.5.2.1-3.el6

Comment 11 Fedora Update System 2012-12-19 18:34:22 UTC
Package offlineimap-6.5.2.1-3.el6:
* should fix your issue,
* was pushed to the Fedora EPEL 6 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=epel-testing offlineimap-6.5.2.1-3.el6'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-EPEL-2012-13807/offlineimap-6.5.2.1-3.el6
then log in and leave karma (feedback).

Comment 12 Fedora Update System 2013-01-16 17:27:00 UTC
offlineimap-6.5.2.1-3.el6 has been pushed to the Fedora EPEL 6 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 13 Laszlo Ersek 2013-01-24 14:41:20 UTC
(In reply to comment #12)
> offlineimap-6.5.2.1-3.el6 has been pushed to the Fedora EPEL 6 stable
> repository.  If problems still persist, please make note of it in this bug
> report.

This update breaks existing config files on RHEL-6, see bug 903667.


Note You need to log in before you can comment on or make changes to this bug.