Fix getuidvalidity crash (UIDVALIDITY returning None)

Rename getuidvalidity -> get_uidvalidity and cache the IMAP result.

1) Start modernizing our function names using more underscores
2) IMAPs implementation of get_uidvalidity was removing the UIDVALIDITY result
   from the imaplib2 result stack, so subsequent calls would return "None".
   As various functions can invoke this, this led to some errors that we
   avoid by caching the current UIDVALIDITY value in the Folder instance.

There are more simplifications and improvements to be made.

Signed-off-by: Sebastian Spaeth <Sebastian@SSpaeth.de>
This commit is contained in:
Sebastian Spaeth
2012-01-19 11:24:16 +01:00
parent 075c1d2cdc
commit d2f8504757
7 changed files with 34 additions and 20 deletions

View File

@ -21,3 +21,4 @@ Bug Fixes
* Fix python2.6 compatibility with the TTYUI backend (crash)
* Fix TTYUI regression from 6.5.2 in refresh loop (crash)
* Fix crashes related to UIDVALIDITY returning "None"