On Tue, Aug 21, 2007 at 08:21:40AM -0500, John Goerzen wrote:
> I am not sure what a workaround would be on OfflineIMAP's side, short of 
> removing support for read-only folders.  I don't want to put something in 
> the config file saying "if you run Courier, turn this option on or it won't 
> work."

Could you avoid caching the UIDVALIDITY until the first time you've
done something likely to stabilize it?  Hmm, doesn't look easy.
Possibly try SELECT and fall back to EXAMINE only if imapobj.readonly?
Will this break \Recent somehow?

I assume this is the cause:

Wed Jul  4 09:19:06 EDT 2007  John Goerzen <[EMAIL PROTECTED]>
  * Correct readonly handling
  Upstream imaplib now issues EXAMINE when readonly != None
  offlineimap/imaplib.py's version always used SELECT

It's compliant with the RFC and I can see some practical reasons for
this; you have asked Courier to open the folder read-only, so there is
nowhere that it can save the UIDVALIDITY value without writing to the
folder.

-- 
Daniel Jacobowitz
CodeSourcery


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to