Bug 796754 - Offlineimap bails out on sync if remote folder are not writable
Summary: Offlineimap bails out on sync if remote folder are not writable
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: offlineimap
Version: 16
Hardware: All
OS: All
low
low
Target Milestone: ---
Assignee: Christoph Höger
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-02-23 15:36 UTC by David Kovalsky
Modified: 2014-03-31 23:46 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-03-01 10:15:35 UTC
Type: ---


Attachments (Terms of Use)

Description David Kovalsky 2012-02-23 15:36:35 UTC
I've noticed that offlineimap complains about sync even for folders that I never write into. My expectations is to do one way sync of readonly folders from the remote to local, which I believe should be a valid scenario. 

The remote server is Zimbra:

ERROR: Aborting sync, folder 'Emailed Contacts' [acc: 'RedHatImap']
  Server 'mail.corp.redhat.com' closed connection, error on SELECT 'Emailed Contacts'. Server said: Emailed Contacts is not writable
ERROR: Aborting sync, folder 'Contacts' [acc: 'RedHatImap']
  Server 'mail.corp.redhat.com' closed connection, error on SELECT 'Contacts'. Server said: Contacts is not writable


Is it possible to mark some folders as read-only (in the config file) or even better - for offlineimap to figure this out and handle gracefully? 


offlineimap-6.5.2.1-1.fc16.noarch

Comment 1 Christoph Höger 2012-03-01 10:15:35 UTC
You can use the folderfilter command in your .offlineimaprc to choose which folders to sync. 

Regarding the read-only issue: How should offlineimap sync a folder that it cannot even SELECT ? It seems to me that your imap server's write protection is somewhat too radical here. So I am closing this as NOTABUG. Feel free to reopen if you see a way of how offlineimap could handle those mailboxes.

Comment 2 David Kovalsky 2012-03-06 14:04:10 UTC
Thanks for the response Christoph.

I do see messages in the folders, so I was under the impression that this has worked in the past and something changed wrt how offlineimap reads those folders. On the other hand, changes could have been done on the remote side. And given I don't care for the folder contents, I don't mind this getting closed :)

Thanks for all the work you're doing on offlineimap!

Comment 3 Lukas Zapletal 2012-04-05 14:58:11 UTC
For future googlers trying to realize how to ignore those two "bad" Zimbra folders in Fedora 17+ I am attaching David's solution (thanks!):

folderfilter = lambda foldername: foldername not in ['Contacts', Emailed Contacts' ]

Comment 4 Jeremy Eder 2012-12-24 01:19:10 UTC
Mostly putting this here for my future googler self:

folderfilter = lambda folder: folder not in ['Contacts', 'Emailed Contacts']


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