[PATCH] Increase compatability with Gmail

Alexander Skwar alexanders.mailinglists+nospam at gmail.com
Fri Mar 25 11:21:11 GMT 2011


Hallo!

On Fri, Mar 25, 2011 at 10:51, Sebastian Spaeth <Sebastian at sspaeth.de> wrote:
> On Fri, 25 Mar 2011 10:34:15 +0100, Alexander Skwar wrote:
>> Thanks for the patch!
>
> Welcome, it would be a pity to lose all you Gmail users :-)
>

Yep. Appreciated ;)

>> Does this work only with repositories of type "Gmail" , or
>> also with IMAP?
>
> It works with both Gmail and IMAP as it changes the generic
> IMAP.savemessage() case.
>
> Let me know if it helps.

Works MUCH better now!

Don't know if this is important, but I see something like this:

New msg sync from ! WICHTIG &AKE-:
 Copy message -1 MappedIMAP[! WICHTIG &AKE-] -> Gmail[! WICHTIG &AKE-]
 Copy message -2 MappedIMAP[! WICHTIG &AKE-] -> Gmail[! WICHTIG &AKE-]

What's interesting is, that it copies message "-1" and "-2"! Ie.
the ID is < 0! Is that right?


And when I was running offlineimap normally (ie. without
-1 and -d imap and with no log…), I got http://nopaste.info/7878159ed3.html :

Copy message 780 from &ALsAuwC7- Archiv &AKsAqwCr-:
 Copy message 780 Gmail[&ALsAuwC7- Archiv &AKsAqwCr-] ->
MappedIMAP[&ALsAuwC7- Archiv &AKsAqwCr-]
 Thread 'New msg sync from ! WICHTIG &AKE-/Termine' terminated with exception:
Traceback (most recent call last):
  File "/home/i/Src/oi/offlineimap/offlineimap/threadutil.py", line 159, in run
    Thread.run(self)
  File "/usr/lib/python2.6/threading.py", line 484, in run
    self.__target(*self.__args, **self.__kwargs)
  File "/home/i/Src/oi/offlineimap/offlineimap/folder/Base.py", line
243, in syncmessagesto_neguid_msg
    message = self.getmessage(uid)
  File "/home/i/Src/oi/offlineimap/offlineimap/folder/UIDMaps.py",
line 136, in getmessage
    return self._mb.getmessage(self, self.r2l[uid])
  File "/home/i/Src/oi/offlineimap/offlineimap/folder/IMAP.py", line
218, in getmessage
    return initialresult[1][0][1].replace("\r\n", "\n")
TypeError: 'NoneType' object is unsubscriptable


Last 1 debug messages logged for New msg sync from ! WICHTIG
&AKE-/Termine prior to exception:
imap: Returned object from fetching 3: ('OK', [None])

I also saw such an error message http://no-paste.ch/show_325.html :

Folder sync [gmail2skwar]:
 Deleting 1 messages (0) in MappedIMAP[! WICHTIG &AKE-]
Copy message 530 from ! WICHTIG &AKE-/Passw&APY-rter:
 Copy message 530 Gmail[! WICHTIG &AKE-/Passw&APY-rter] ->
MappedIMAP[! WICHTIG &AKE-/Passw&APY-rter]
Folder sync [gmail2skwar]:
 WARNING: ERROR attempting to sync flags for account
gmail2skwar:Traceback (most recent call last):
  File "/home/i/Src/oi/offlineimap/offlineimap/folder/Base.py", line
486, in syncmessagesto
    action(dstfolder, statusfolder)
  File "/home/i/Src/oi/offlineimap/offlineimap/folder/Base.py", line
397, in syncmessagesto_delete
    folder.deletemessages(deletelist)
  File "/home/i/Src/oi/offlineimap/offlineimap/folder/UIDMaps.py",
line 221, in deletemessages
    self._mb.deletemessages(self, self._uidlist(self.r2l, uidlist))
  File "/home/i/Src/oi/offlineimap/offlineimap/folder/UIDMaps.py",
line 77, in _uidlist
    return [mapping[x] for x in items]
KeyError: 0L


I'm now running offlineimap with -1 -d imap and having it create a log
file.

"Of course", up to now, no error occured… :) I'll let you know.

Alexander
--
↯    Lifestream (Twitter, Blog, …) ↣ http://alexs77.soup.io/     ↯
↯ Chat (Jabber/Google Talk) ↣ a.skwar at gmail.com , AIM: alexws77  ↯




More information about the OfflineIMAP-project mailing list