Skip to content

Instantly share code, notes, and snippets.

@tlvince
Created March 26, 2011 06:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tlvince/c8d4429596f55a1eadeb to your computer and use it in GitHub Desktop.
Save tlvince/c8d4429596f55a1eadeb to your computer and use it in GitHub Desktop.
Copy message 423 from inbox:
DEBUG[imap]: 09:18.81 Copy message 423 from inbox [sync] EXAMINE ('INBOX',)
DEBUG[imap]: 09:18.81 Copy message 423 from inbox _request_push(KHKP34, EXAMINE, {})
DEBUG[imap]: 09:18.81 Copy message 423 from inbox data=KHKP34 EXAMINE INBOX
pod51002.outlook.com writer:
DEBUG[imap]: 09:18.81 pod51002.outlook.com writer > KHKP34 EXAMINE INBOX\r\n
Folder sync [outlook]:
Syncing Journal: IMAP -> Maildir
pod51002.outlook.com reader:
DEBUG[imap]: 09:19.12 pod51002.outlook.com reader poll => [(4, 1)]
DEBUG[imap]: 09:19.12 pod51002.outlook.com reader SSL reading 32768 from <ssl.SSLSocket object at 0xa11d454>, decompressor None, tail None
DEBUG[imap]: 09:19.12 pod51002.outlook.com reader rcvd 266
DEBUG[imap]: 09:19.12 pod51002.outlook.com reader < * 5 EXISTS\r\n
DEBUG[imap]: 09:19.12 pod51002.outlook.com reader < * 0 RECENT\r\n
DEBUG[imap]: 09:19.12 pod51002.outlook.com reader < * FLAGS (\Seen \Answered \Flagged \Deleted \Draft $MDNSent)\r\n
DEBUG[imap]: 09:19.12 pod51002.outlook.com reader < * OK [PERMANENTFLAGS ()] Permanent flags\r\n
DEBUG[imap]: 09:19.12 pod51002.outlook.com reader < * OK [UIDVALIDITY 91719] UIDVALIDITY value\r\n
DEBUG[imap]: 09:19.12 pod51002.outlook.com reader < * OK [UIDNEXT 436] The next unique identifier value\r\n
DEBUG[imap]: 09:19.12 pod51002.outlook.com reader < KHKP34 OK [READ-ONLY] EXAMINE completed.\r\n
pod51002.outlook.com handler:
DEBUG[imap]: 09:19.12 pod51002.outlook.com handler untagged_responses[EXISTS] 0 += ["5"]
DEBUG[imap]: 09:19.12 pod51002.outlook.com handler untagged_responses[RECENT] 0 += ["0"]
DEBUG[imap]: 09:19.12 pod51002.outlook.com handler untagged_responses[FLAGS] 0 += ["(\Seen \Answered \Flagged \Deleted \Draft $MDNSent)"]
DEBUG[imap]: 09:19.12 pod51002.outlook.com handler untagged_responses[OK] 0 += ["[PERMANENTFLAGS ()] Permanent flags"]
DEBUG[imap]: 09:19.12 pod51002.outlook.com handler untagged_responses[PERMANENTFLAGS] 0 += ["()"]
DEBUG[imap]: 09:19.12 pod51002.outlook.com handler untagged_responses[OK] 0 += ["[UIDVALIDITY 91719] UIDVALIDITY value"]
DEBUG[imap]: 09:19.12 pod51002.outlook.com handler untagged_responses[UIDVALIDITY] 0 += ["91719"]
DEBUG[imap]: 09:19.12 pod51002.outlook.com handler untagged_responses[OK] 0 += ["[UIDNEXT 436] The next unique identifier value"]
DEBUG[imap]: 09:19.14 pod51002.outlook.com handler untagged_responses[UIDNEXT] 0 += ["436"]
DEBUG[imap]: 09:19.14 pod51002.outlook.com handler _request_pop(KHKP34, ('OK', ['[READ-ONLY] EXAMINE completed.']))
DEBUG[imap]: 09:19.14 pod51002.outlook.com handler untagged_responses[READ-ONLY] 0 += [""]
Copy message 423 from inbox:
DEBUG[imap]: 09:19.14 Copy message 423 from inbox state => SELECTED
DEBUG[imap]: 09:19.14 Copy message 423 from inbox _get_untagged_response(READ-ONLY) => ['']
DEBUG[imap]: 09:19.14 Copy message 423 from inbox _get_untagged_response(EXISTS) => ['5']
DEBUG[imap]: 09:19.14 Copy message 423 from inbox [async] UID ('FETCH', '423', '(BODY.PEEK[])')
DEBUG[imap]: 09:19.14 Copy message 423 from inbox _get_untagged_response(OK) => ['[PERMANENTFLAGS ()] Permanent flags']
DEBUG[imap]: 09:19.14 Copy message 423 from inbox _get_untagged_response(READ-ONLY) => ['']
DEBUG[imap]: 09:19.14 Copy message 423 from inbox _request_push(KHKP35, UID, {})
DEBUG[imap]: 09:19.14 Copy message 423 from inbox data=KHKP35 UID FETCH 423 (BODY.PEEK[])
pod51002.outlook.com writer:
DEBUG[imap]: 09:19.14 pod51002.outlook.com writer > KHKP35 UID FETCH 423 (BODY.PEEK[])\r\n
pod51002.outlook.com reader:
DEBUG[imap]: 09:20.86 pod51002.outlook.com reader poll => [(4, 1)]
DEBUG[imap]: 09:20.86 pod51002.outlook.com reader SSL reading 32768 from <ssl.SSLSocket object at 0xa11d454>, decompressor None, tail None
DEBUG[imap]: 09:21.73 pod51002.outlook.com reader rcvd 16384
DEBUG[imap]: 09:21.73 pod51002.outlook.com reader < * 1 FETCH (BODY[] {15454189}\r\n
# Body
DEBUG[imap]: 09:21.74 pod51002.outlook.com reader < ------=_NextPart_000_0016_01CBE58A.BA39D170\r\n
DEBUG[imap]: 09:21.74 pod51002.outlook.com reader < Content-Type: audio/mpeg; name="2010.MP3"\r\n
DEBUG[imap]: 09:21.74 pod51002.outlook.com reader < Content-Transfer-Encoding: base64\r\n
DEBUG[imap]: 09:21.74 pod51002.outlook.com reader < Content-Disposition: attachment; filename="2010.MP3"\r\n
# Get attachments
DEBUG[imap]: 09:21.74 pod51002.outlook.com reader < \r\n
DEBUG[imap]: 09:21.74 pod51002.outlook.com reader < //NIAAAAEAEcAAAAAAAgAjgAAAAA////////////////////////////////////////////////\r\n
DEBUG[imap]: 09:21.74 pod51002.outlook.com reader < ////////////////////////////////////////////////////////////////////////////\r\n
DEBUG[imap]: 09:21.74 pod51002.outlook.com reader < //////////////////////////////////////////NIAHoAEAEcAAAAAAAgAjgAAAAA////////\r\n
DEBUG[imap]: 09:21.74 pod51002.outlook.com reader < ////////////////////////////////////////////////////////////////////////////\r\n
DEBUG[imap]: 09:21.74 pod51002.outlook.com reader < ////////////////////////////////////////////////////////////////////LAEUF2QJ\r\n
DEBUG[imap]: 10:06.48 pod51002.outlook.com reader poll => [(4, 1)]
DEBUG[imap]: 10:06.48 pod51002.outlook.com reader SSL reading 32768 from <ssl.SSLSocket object at 0xa11d454>, decompressor None, tail None
DEBUG[imap]: 10:06.48 pod51002.outlook.com reader rcvd 0
DEBUG[imap]: 10:06.58 pod51002.outlook.com reader poll => [(4, 1)]
DEBUG[imap]: 10:06.58 pod51002.outlook.com reader SSL reading 32768 from <ssl.SSLSocket object at 0xa11d454>, decompressor None, tail None
DEBUG[imap]: 10:06.58 pod51002.outlook.com reader rcvd 0
DEBUG[imap]: 10:06.69 pod51002.outlook.com reader poll => [(4, 1)]
DEBUG[imap]: 10:06.69 pod51002.outlook.com reader SSL reading 32768 from <ssl.SSLSocket object at 0xa11d454>, decompressor None, tail None
DEBUG[imap]: 10:06.69 pod51002.outlook.com reader rcvd 0
DEBUG[imap]: 10:06.79 pod51002.outlook.com reader poll => [(4, 1)]
DEBUG[imap]: 10:06.79 pod51002.outlook.com reader SSL reading 32768 from <ssl.SSLSocket object at 0xa11d454>, decompressor None, tail None
DEBUG[imap]: 10:06.79 pod51002.outlook.com reader rcvd 0
DEBUG[imap]: 10:06.89 pod51002.outlook.com reader poll => [(4, 1)]
DEBUG[imap]: 10:06.89 pod51002.outlook.com reader SSL reading 32768 from <ssl.SSLSocket object at 0xa11d454>, decompressor None, tail None
DEBUG[imap]: 10:06.89 pod51002.outlook.com reader rcvd 0
DEBUG[imap]: 10:06.99 pod51002.outlook.com reader poll => [(4, 1)]
DEBUG[imap]: 10:06.99 pod51002.outlook.com reader SSL reading 32768 from <ssl.SSLSocket object at 0xa11d454>, decompressor None, tail None
DEBUG[imap]: 10:06.99 pod51002.outlook.com reader rcvd 0
DEBUG[imap]: 10:06.99 pod51002.outlook.com reader last 20 log messages:
DEBUG[imap]: 10:06.99 pod51002.outlook.com reader socket error: <type 'exceptions.IOError'> - Too many read 0
DEBUG[imap]: 10:06.99 pod51002.outlook.com reader finished
pod51002.outlook.com handler:
DEBUG[imap]: 10:06.99 pod51002.outlook.com handler terminating: "socket error: <type 'exceptions.IOError'> - Too many read 0"
DEBUG[imap]: 10:06.99 pod51002.outlook.com handler finished
pod51002.outlook.com writer:
DEBUG[imap]: 10:06.99 pod51002.outlook.com writer finished
Copy message 423 from inbox:
DEBUG[imap]: 10:06.99 Copy message 423 from inbox state => LOGOUT
DEBUG[imap]: 10:06.99 Copy message 423 from inbox [sync] LOGOUT ()
DEBUG[imap]: 10:06.99 Copy message 423 from inbox _get_untagged_response(OK) => ['[UIDVALIDITY 91719] UIDVALIDITY value']
DEBUG[imap]: 10:06.99 Copy message 423 from inbox _get_untagged_response(READ-ONLY) => ['']
DEBUG[imap]: 10:06.99 Copy message 423 from inbox ["<class 'offlineimap.imaplib2.abort'>: connection closed"]
DEBUG[imap]: 10:06.99 Copy message 423 from inbox _close_threads
DEBUG[imap]: 10:06.99 Copy message 423 from inbox call shutdown
DEBUG[imap]: 10:06.99 Copy message 423 from inbox connection closed
Folder sync [outlook]:
Establishing connection to pod51002.outlook.com:993.
DEBUG[imap]: 10:07.00 Folder sync [outlook] imaplib2 version 2.20
DEBUG[imap]: 10:07.00 Folder sync [outlook] imaplib2 debug level 5
Copy message 423 from inbox:
WARNING: ERROR attempting to copy message 423 for account outlook:Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/offlineimap/folder/Base.py", line 332, in copymessageto
message = self.getmessage(uid)
File "/usr/lib/python2.7/site-packages/offlineimap/folder/IMAP.py", line 215, in getmessage
initialresult = imapobj.uid('fetch', '%d' % uid, '(BODY.PEEK[])')
File "/usr/lib/python2.7/site-packages/offlineimap/imaplib2.py", line 1067, in uid
return self._simple_command('UID', command, *args, **kw)
File "/usr/lib/python2.7/site-packages/offlineimap/imaplib2.py", line 1485, in _simple_command
return self._command_complete(self._command(name, *args), kw)
File "/usr/lib/python2.7/site-packages/offlineimap/imaplib2.py", line 1261, in _command_complete
typ, dat = rqb.get_response('command: %s => %%s' % rqb.name)
File "/usr/lib/python2.7/site-packages/offlineimap/imaplib2.py", line 161, in get_response
raise typ(exc_fmt % str(val))
abort: command: UID => socket error: <type 'exceptions.IOError'> - Too many read 0
Thread 'Copy message 423 from inbox' terminated with exception:
Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/offlineimap/threadutil.py", line 159, in run
Thread.run(self)
File "/usr/lib/python2.7/threading.py", line 483, in run
self.__target(*self.__args, **self.__kwargs)
File "/usr/lib/python2.7/site-packages/offlineimap/folder/Base.py", line 332, in copymessageto
message = self.getmessage(uid)
File "/usr/lib/python2.7/site-packages/offlineimap/folder/IMAP.py", line 215, in getmessage
initialresult = imapobj.uid('fetch', '%d' % uid, '(BODY.PEEK[])')
File "/usr/lib/python2.7/site-packages/offlineimap/imaplib2.py", line 1067, in uid
return self._simple_command('UID', command, *args, **kw)
File "/usr/lib/python2.7/site-packages/offlineimap/imaplib2.py", line 1485, in _simple_command
return self._command_complete(self._command(name, *args), kw)
File "/usr/lib/python2.7/site-packages/offlineimap/imaplib2.py", line 1261, in _command_complete
typ, dat = rqb.get_response('command: %s => %%s' % rqb.name)
File "/usr/lib/python2.7/site-packages/offlineimap/imaplib2.py", line 161, in get_response
raise typ(exc_fmt % str(val))
abort: command: UID => socket error: <type 'exceptions.IOError'> - Too many read 0
Last 19 debug messages logged for Copy message 423 from inbox prior to exception:
imap: 09:18.81 Copy message 423 from inbox [sync] EXAMINE ('INBOX',)
imap: 09:18.81 Copy message 423 from inbox _request_push(KHKP34, EXAMINE, {})
imap: 09:18.81 Copy message 423 from inbox data=KHKP34 EXAMINE INBOX
imap: 09:19.14 Copy message 423 from inbox state => SELECTED
imap: 09:19.14 Copy message 423 from inbox _get_untagged_response(READ-ONLY) => ['']
imap: 09:19.14 Copy message 423 from inbox _get_untagged_response(EXISTS) => ['5']
imap: 09:19.14 Copy message 423 from inbox [async] UID ('FETCH', '423', '(BODY.PEEK[])')
imap: 09:19.14 Copy message 423 from inbox _get_untagged_response(OK) => ['[PERMANENTFLAGS ()] Permanent flags']
imap: 09:19.14 Copy message 423 from inbox _get_untagged_response(READ-ONLY) => ['']
imap: 09:19.14 Copy message 423 from inbox _request_push(KHKP35, UID, {})
imap: 09:19.14 Copy message 423 from inbox data=KHKP35 UID FETCH 423 (BODY.PEEK[])
imap: 10:06.99 Copy message 423 from inbox state => LOGOUT
imap: 10:06.99 Copy message 423 from inbox [sync] LOGOUT ()
imap: 10:06.99 Copy message 423 from inbox _get_untagged_response(OK) => ['[UIDVALIDITY 91719] UIDVALIDITY value']
imap: 10:06.99 Copy message 423 from inbox _get_untagged_response(READ-ONLY) => ['']
imap: 10:06.99 Copy message 423 from inbox ["<class 'offlineimap.imaplib2.abort'>: connection closed"]
imap: 10:06.99 Copy message 423 from inbox _close_threads
imap: 10:06.99 Copy message 423 from inbox call shutdown
imap: 10:06.99 Copy message 423 from inbox connection closed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment