gmail -> gmail: required special treatment?

Dr. D. P. Kreil (Boku) David.Kreil at boku.ac.at
Sun Jan 8 19:12:30 GMT 2012


Dear Sebastian,

Thank you so much for your fast response!

This was fixed in the commit by me from yesterday:
> commit 3e28073f98632f35fb46e96c3f5bda21fc36cb12
> Date:   Thu Jan 5 14:05:51 2012 +0100
>    Do not create folders on readonly repositories
> and is contained in the just released 6.4.4.
> (I fixed this without having read your email though :-))
>

Excellent! I just got the latest (v6.5.1.2-1-gb5a1315) and tried it and it
indeed does not create the folders on the "remote" side anymore - yeah!

I now get some "new" error messages about UIDs not mapping though. What can
I do to help debug this? I have copied the tty output of the process below.
What else can I do?

 > I have read comments on some forums that it might be feasible to allow a
> > "gmail" type Local Repository reasonably easily. Is this true? Is this a
> > change that I can help make?
>
> Gmail is a descendent of the IMAPRepository class. Local IMAPs require
> the MappedIMAP class which takes care of the UID mapping between the
> local and the remote server. In order to get a 'Gmail' type on the local
> side, one would need to subclass the MappedIMAP class and add the Gmail
> specific stuff (I wonder if we could that that with a Gmail mixin
> class instead). HTH
>

Ok! Will I need to read into the current way of doing things at length
before I can touch anything without breaking things, or should I just start
fiddling? If you think I should read up before touching anything, are there
any key documents / code regions I should start with that you can recommend?
If you think I am more likely to cause harm than help by poking around in
the code myself, would anyone else perhaps be interested in giving this a
go? I would be most enthusiastic about helping try/test/validate this at
least.

Many thanks again for everything
and best wishes,
David


*** Processing account dpk
Establishing connection to imap.gmail.com:993
Establishing connection to imap.googlemail.com:993
Syncing PhDprogramme: Gmail -> MappedIMAP
Syncing INBOX: Gmail -> MappedIMAP
Syncing Templates: Gmail -> MappedIMAP
Copy message 91730 (1 of 473) dpkreil:INBOX -> 0509kreil
Copy message 91731 (2 of 473) dpkreil:INBOX -> 0509kreil
Syncing Zattach: Gmail -> MappedIMAP
Copy message 91732 (3 of 473) dpkreil:INBOX -> 0509kreil
Copy message 91735 (4 of 473) dpkreil:INBOX -> 0509kreil
Copy message 91737 (5 of 473) dpkreil:INBOX -> 0509kreil
Syncing Zattach/ZA05: Gmail -> MappedIMAP
Copy message 91739 (6 of 473) dpkreil:INBOX -> 0509kreil
Copy message 91741 (7 of 473) dpkreil:INBOX -> 0509kreil
Copy message 91751 (8 of 473) dpkreil:INBOX -> 0509kreil
Copy message 91756 (9 of 473) dpkreil:INBOX -> 0509kreil
Syncing Zattach/ZA06: Gmail -> MappedIMAP
Copy message 91757 (10 of 473) dpkreil:INBOX -> 0509kreil
Copy message 91758 (11 of 473) dpkreil:INBOX -> 0509kreil
Copy message 91759 (12 of 473) dpkreil:INBOX -> 0509kreil
Copy message 91762 (13 of 473) dpkreil:INBOX -> 0509kreil
Copy message 91767 (14 of 473) dpkreil:INBOX -> 0509kreil
Copy message 91770 (15 of 473) dpkreil:INBOX -> 0509kreil
Syncing Zattach/ZA07: Gmail -> MappedIMAP
Copy message 91772 (16 of 473) dpkreil:INBOX -> 0509kreil
Copy message 91774 (17 of 473) dpkreil:INBOX -> 0509kreil
Copy message 91777 (18 of 473) dpkreil:INBOX -> 0509kreil
Server supports UIDPLUS but got no APPENDUID appending a message.
ERROR: Backend could not find uid for message
Copy message 91779 (19 of 473) dpkreil:INBOX -> 0509kreil
Thread 'Copy message from dpkreil:INBOX' terminated with exception:
Traceback (most recent call last):
  File "/usr/local/lib/python2.6/dist-packages/offlineimap/threadutil.py",
line 155, in run
    Thread.run(self)
  File "/usr/lib/python2.6/threading.py", line 484, in run
    self.__target(*self.__args, **self.__kwargs)
  File "/usr/local/lib/python2.6/dist-packages/offlineimap/folder/Base.py",
line 288, in copymessageto
    new_uid = dstfolder.savemessage(uid, message, flags, rtime)
  File
"/usr/local/lib/python2.6/dist-packages/offlineimap/folder/UIDMaps.py",
line 194, in savemessage
    raise ValueError("Backend could not find uid for message")
ValueError: Backend could not find uid for message


Last 4 debug messages logged for Copy message from dpkreil:INBOX prior to
exception:
thread: Register new thread 'Copy message from dpkreil:INBOX' (account
'dpk')
imap: Returned object from fetching 91772: 'Delivered-To: dpkreil at gmail.com
Received: by 10.213.4.200 with SMTP id 8cs43321ebs;
        Tue, 13 Dec 2011 03:01:32 -0800 (PST)
Received: by 10.180....nfo/bioconductor

--===============0022820545==--
'
imap: savemessage: called
imap: savemessage: date: "13-Dec-2011 12:00:04 +0000", content:
'Delivered-To: dpkreil at gmail.com
Received: by 10.213.4.200 with SMTP id 8cs43321ebs;
        Tue, 13 Dec 2011 03:01:32 -0800 (PST)
Received: by 10.1.../bioconductor

--===============0022820545==--
'
ERROR: Exceptions occurred during the run!
ERROR: Backend could not find uid for message
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/offlineimap-project/attachments/20120108/c31da39b/attachment-0003.html>


More information about the OfflineIMAP-project mailing list