Bugs item #1749512, was opened at 2007-07-07 09:52 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1749512&group_id=5470
Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: Extension Modules Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: Florian Friesdorf (chaoflow) Assigned to: Nobody/Anonymous (nobody) Summary: imaplib cannot handle mailboxes with ACL: lrs Initial Comment: The imaplib in python 2.4 and 2.5 is not able to handle a mailbox with ACL set to lrs correctly, as it treats it the same as a mailbox opened with EXAMINE. A mailbox with lrs can save \Seen flags, a mailbox opened with EXAMINE cannot. The attached patch is giving a proposal on how to fix it. The current select raises an exception, in case the server tells READ-ONLY in a response. However, for lrs this is the case, but nevertheless, it is possible to save per-use state information. With the patch this is not the case anymore. A readonly exception is only raised in case of an lr mailbox, as that is an equivalent to a mailbox opened with EXAMINE, i.e. select(..., readonly=True). A READ-ONLY in the response to a select is saved in self.is_readonly. Programs who relied on an exception being raised during select, would now need to query that variable. In case the state was not READ-ONLY during select, but becomes at some later point during command execution, still a readonly exception is raised. The patched imaplib was tested successfully with a slightly adapted offlineimap. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1749512&group_id=5470 _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com