From 4cb6580e0605fd65bd94130d40a022da230f4657 Mon Sep 17 00:00:00 2001 From: jgoerzen Date: Fri, 12 Jul 2002 14:20:09 +0100 Subject: [PATCH] /head: changeset 115 Upadates all over --- head/ChangeLog | 129 ++++++++++++++++++++++++++++++++ head/debian/changelog | 12 ++- head/offlineimap/folder/IMAP.py | 14 +++- head/offlineimap/ui/Tk.py | 3 + 4 files changed, 154 insertions(+), 4 deletions(-) diff --git a/head/ChangeLog b/head/ChangeLog index 9b2d828..29bf6e8 100644 --- a/head/ChangeLog +++ b/head/ChangeLog @@ -1,3 +1,132 @@ +2002-07-11 22:20 jgoerzen + + * debian/changelog, offlineimap/folder/IMAP.py, + offlineimap/ui/Tk.py: Upadates all over + +2002-07-11 20:46 jgoerzen + + * offlineimap.py: Added workaround for UW IMAPd + +2002-07-11 16:51 jgoerzen + + * offlineimap.py, debian/changelog, debian/rules: Added the new + command-line options + +2002-07-11 16:46 jgoerzen + + * offlineimap.py, debian/docs, offlineimap/version.py: Added + support for command-line arguments + +2002-07-11 15:52 jgoerzen + + * README: Added a placeholder README + +2002-07-11 15:43 jgoerzen + + * Makefile, README, manual.html, manual.pdf, manual.ps, manual.txt, + offlineimap.1: Updated documentation; absorbed readme into new + manual + +2002-07-11 13:08 jgoerzen + + * offlineimap.1, offlineimap.conf, offlineimap.py, + offlineimap/ui/__init__.py, offlineimap/ui/detector.py: Initial + documentation added; more updates + +2002-07-11 11:04 jgoerzen + + * offlineimap/folder/IMAP.py: Another go at dealing with weird + STORE responses. + +2002-07-11 10:58 jgoerzen + + * offlineimap/ui/detector.py: Added detector + +2002-07-11 10:58 jgoerzen + + * offlineimap.conf, offlineimap/ui/Tk.py, + offlineimap/ui/__init__.py: More work on the UIs + +2002-07-11 10:38 jgoerzen + + * offlineimap/ui/: TTY.py, UIBase.py: More work with the UIs + +2002-07-11 09:48 jgoerzen + + * offlineimap.py, offlineimap/ui/TTY.py: Updated and enhanced the + TTY display to use thread names as well. + +2002-07-11 08:41 jgoerzen + + * TODO, debian/changelog, offlineimap/version.py: Added some more + todos + +2002-07-11 08:35 jgoerzen + + * offlineimap/folder/IMAP.py: Updated with a fix for when an IMAP + server does not return message data from a STORE + +2002-07-10 22:25 jgoerzen + + * offlineimap.py, offlineimap/version.py, offlineimap/ui/Tk.py: + More bugfixes; removed some debug code + +2002-07-10 19:55 jgoerzen + + * offlineimap.py, offlineimap/folder/Base.py, offlineimap/ui/Tk.py: + Updated more Tk stuff + +2002-07-10 19:02 jgoerzen + + * offlineimap/ui/Tk.py: Added window title + +2002-07-10 18:59 jgoerzen + + * offlineimap/ui/Tk.py: Touched up password entry + +2002-07-10 18:57 jgoerzen + + * offlineimap/ui/Tk.py: Added the idle vacuum code + +2002-07-10 18:42 jgoerzen + + * offlineimap/: threadutil.py, ui/Tk.py, ui/UIBase.py: Updated with + some more bug fixes + +2002-07-10 18:14 jgoerzen + + * offlineimap/ui/Tk.py: Updated. + +2002-07-10 16:51 jgoerzen + + * offlineimap/ui/Tk.py: More work on the Tk UI. + +2002-07-10 16:15 jgoerzen + + * offlineimap.py, offlineimap/ui/Tk.py: More work with the Tk UI + +2002-07-10 15:53 jgoerzen + + * offlineimap.py, offlineimap/threadutil.py, offlineimap/ui/Tk.py, + offlineimap/ui/__init__.py: Initial Tk work. + +2002-07-10 14:38 jgoerzen + + * offlineimap/ui/Tk.py: Updated + +2002-07-10 14:38 jgoerzen + + * offlineimap/ui/: Tk.py, __init__.py: Added Tk + +2002-07-10 14:37 jgoerzen + + * offlineimap/ui/TTY.py: Added copyright notice + +2002-07-10 13:06 jgoerzen + + * ChangeLog, debian/changelog, offlineimap/version.py: Updated for + 2.0.8 + 2002-07-10 12:51 jgoerzen * debian/changelog, offlineimap/imapserver.py: Optimized diff --git a/head/debian/changelog b/head/debian/changelog index 0890160..577dccf 100644 --- a/head/debian/changelog +++ b/head/debian/changelog @@ -2,6 +2,9 @@ offlineimap (3.0.0) unstable; urgency=low * Introduced a new graphical user interface written with Tkinter. It features a nice view of multi-threaded displays. + * The TTY user interface now also displays thread names. + * Program-wide, new threads are given descriptive names to aid in + debugging and status messages. * Made IMAP folder addmessagesflags() resiliant to a server refusing to return a full set of new message flags. Closes: #152587. * Completely rewrote documentation. OfflineIMAP now has an @@ -12,8 +15,15 @@ offlineimap (3.0.0) unstable; urgency=low -u to force a particular UI -a to specify which accounts to sync -h to print help + -c to specify an alternate config file + * Added a workaround for UW IMAP problem wherein the server loses + uidvalidity whenever a folder is emptied. Now, the program + will not consider it a problem if uidvalidity is lost when a folder + and the local status cache are both completely empty, since we do + not really need to preserve uidvalidity in that case anyway. + Closes: #152079. - -- John Goerzen Thu, 11 Jul 2002 08:35:42 -0500 + -- John Goerzen Thu, 11 Jul 2002 22:35:42 -0500 offlineimap (2.0.8) unstable; urgency=low diff --git a/head/offlineimap/folder/IMAP.py b/head/offlineimap/folder/IMAP.py index 3dd2b91..5f4f32f 100644 --- a/head/offlineimap/folder/IMAP.py +++ b/head/offlineimap/folder/IMAP.py @@ -127,11 +127,19 @@ class IMAPFolder(BaseFolder): try: imapobj.select(self.getfullname()) result = imapobj.uid('store', '%d' % uid, 'FLAGS', - imaputil.flagsmaildir2imap(flags))[1][0] + imaputil.flagsmaildir2imap(flags)) + assert result[0] == 'OK', 'Error with store: ' + r[1] finally: self.imapserver.releaseconnection(imapobj) - flags = imaputil.flags2hash(imaputil.imapsplit(result)[1])['FLAGS'] - self.messagelist[uid]['flags'] = imaputil.flagsimap2maildir(flags) + result = result[1][0] + if not result: + self.messagelist[uid]['flags'] = flags + else: + flags = imaputil.flags2hash(imaputil.imapsplit(result)[1])['FLAGS'] + self.messagelist[uid]['flags'] = imaputil.flagsimap2maildir(flags) + + def addmessageflags(self, uid, flags): + self.addmessagesflags([uid], flags) def addmessagesflags(self, uidlist, flags): imapobj = self.imapserver.acquireconnection() diff --git a/head/offlineimap/ui/Tk.py b/head/offlineimap/ui/Tk.py index ac52e88..c5b44fc 100644 --- a/head/offlineimap/ui/Tk.py +++ b/head/offlineimap/ui/Tk.py @@ -236,6 +236,9 @@ class TkUI(UIBase): s.top = None TextOKDialog("Main Program Exception", msg) + def warn(s, msg): + TextOKDialog("OfflineIMAP Warning", msg) + def init_banner(s): s._createTopWindow() s._msg(version.productname + " " + version.versionstr + ", " +\