From cf464889bf5f7fa77473832ca4f587e8d8dc7f35 Mon Sep 17 00:00:00 2001 From: jgoerzen Date: Mon, 2 Aug 2004 03:49:16 +0100 Subject: [PATCH] /offlineimap/head: changeset 591 Added additional debugging for IMAP download --- offlineimap/head/debian/changelog | 7 +++++++ offlineimap/head/offlineimap/folder/IMAP.py | 8 ++++++-- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/offlineimap/head/debian/changelog b/offlineimap/head/debian/changelog index 262c624..7db8ebc 100644 --- a/offlineimap/head/debian/changelog +++ b/offlineimap/head/debian/changelog @@ -1,3 +1,10 @@ +offlineimap (4.0.7) unstable; urgency=low + + * Added additional debug logging when downloading messages in an attempt to + get the info needed to address #199452. + + -- John Goerzen Sun, 1 Aug 2004 16:48:15 -0500 + offlineimap (4.0.6) unstable; urgency=low * Corrected check for Curses.Blinkenlights hotkey press. Closes: #256336. diff --git a/offlineimap/head/offlineimap/folder/IMAP.py b/offlineimap/head/offlineimap/folder/IMAP.py index 1f36ece..97711ef 100644 --- a/offlineimap/head/offlineimap/folder/IMAP.py +++ b/offlineimap/head/offlineimap/folder/IMAP.py @@ -1,5 +1,5 @@ # IMAP folder support -# Copyright (C) 2002 John Goerzen +# Copyright (C) 2002-2004 John Goerzen # # # This program is free software; you can redistribute it and/or modify @@ -107,7 +107,11 @@ class IMAPFolder(BaseFolder): imapobj = self.imapserver.acquireconnection() try: imapobj.select(self.getfullname(), readonly = 1) - return imapobj.uid('fetch', '%d' % uid, '(BODY.PEEK[])')[1][0][1].replace("\r\n", "\n") + initialresult = imapobj.uid('fetch', '%d' % uid, '(BODY.PEEK[])') + ui.debug('imap', 'Returned object from fetching %d: %s' % \ + (uid, str(initialresult))) + return initialresult[1][0][1].replace("\r\n", "\n") + finally: self.imapserver.releaseconnection(imapobj)