GNOME Bugzilla – Bug 594062
get log from google server
Last modified: 2018-05-22 13:41:01 UTC
My scrollback logs aren't that useful because my conversations occur over a few different machines/devices (phone, computer 1, computer 2, etc). In some cases the logs are very misleading and almost worse than having no log at all. It would be really great if we could pull the logs from the jabber server. I know that at least google chat stores all the logs.
http://xmpp.org/extensions/xep-0136.html#manage-retrieve http://code.google.com/apis/talk/jep_extensions/otr.html Though it seems that google chat doesn't use xep-0136. Personally, I'm most interested in google chat support.
The google talk client for windows has a "View past chats" menu item but it opens up gmail chats folder web page.
It also only shows the history for the current chat session. This may be a reasonable thing to do when the history is likely wrong.
I understand the initial bug summary but then there are the comments where it's discovered that it's not possible to have it for Google Talk. And I don't really understand the last comment, how is it connected to the primary request? If it's different, it would probably be best to limit this bug report to the "add a XEP-0136 log source" feature request, and open loosely related possible improvements in other bug reports.
These are the different steps if we want to implement this feature: 1) telepathy-spec should be extended to offer API to retrieve logs 2) telepathy-gabble should implement this new API 3) Empathy should use this API and display logs to the user This bug if about 3). Feel free to open bugs for 1) and 2) on https://bugs.freedesktop.org/
Sure thing. They are: https://bugs.freedesktop.org/show_bug.cgi?id=23844 https://bugs.freedesktop.org/show_bug.cgi?id=23845
*** Bug 633255 has been marked as a duplicate of this bug. ***
(In reply to comment #1) > http://xmpp.org/extensions/xep-0136.html#manage-retrieve > http://code.google.com/apis/talk/jep_extensions/otr.html > > Though it seems that google chat doesn't use xep-0136. Personally, I'm most > interested in google chat support. Based on discussions at the XMPP Summit: it's unfortunately not possible to retrieve logs from the Google Talk server over XMPP. It was suggested that it might be possible to fetch them over IMAP, but the internet suggests that this is no longer possible, and no way to retrieve them is described on <http://www.dataliberation.org/>. (Sigh.)
IMAP still works for getting logs. But the user has to enable this for the Chats label in Gmail settings: http://i.imgur.com/KIWw1.png
*** Bug 594078 has been marked as a duplicate of this bug. ***
Will, if it's not possible to retrieve those logs, then there's nothing more to be done right? Therefore shouldn't this bug report and associated ones be closed?
(In reply to comment #11) > Will, if it's not possible to retrieve those logs, then there's nothing more to > be done right? Therefore shouldn't this bug report and associated ones be > closed? The 2 related freedesktop bugs are still opened.
*** Bug 681690 has been marked as a duplicate of this bug. ***
A-HA! You /can/ get chat logs from Google Talk over IMAP, if the user ticks the appropriate “Show in IMAP” tickybox in Settings → Labels. They're multipart emails. The first part is text/xml and looks a bit like this (whitespace added for clarity): <con:conversation xmlns:con="google:archive:conversation"> <cli:message xmlns:cli="jabber:client" xmlns:int="google:internal" to="XXX" from="XXX" int:cid="2636195011507991843" int:sequence-no="1" int:time-stamp="1347247538966"> <cli:body>I'm not sure</cli:body> <x xmlns="jabber:x:delay" stamp="20120910T03:25:38"/> <time xmlns="google:timestamp" ms="1347247538994"/> </cli:message> <cli:message xmlns:cli="jabber:client" xmlns:int="google:internal" to="XXX" from="XXX" int:cid="2636195011507991843" int:sequence-no="2" int:time-stamp="1347247553183"> <cli:body>It's not impossible :-)</cli:body> <x xmlns="jabber:x:delay" stamp="20120910T03:25:53"/> <time xmlns="google:timestamp" ms="1347247553209"/> </cli:message> </con:conversation> So those are standard XMPP <message/> stanzas. I wonder what a sensible architecture for getting to these is! Is email done in evolution-data-server these days? If so, maybe the messages can be slurped out of that, run through Gabble's <message/> → Telepathy message code (which could get moved to Wocky or some support library) and exposed alongside on-disk logs (which could be disabled for GMail accounts, actually).
Ah that's great! Indeed, I'm not sure what's the best design for this either. eds is probably the best candidate so we don't have to establish a second IMAP connection. Then it should feed the logs to the logger in some way and it will magically work with Emapthy and the Shell chat bubble.
So I've started implementing this. For now my WIP code lives in Gabble, but ultimately I think it should live in the Logger (and link to Wocky, which should inherit a little bit of <message>-parsing code from Gabble). It just operates on the cache of the Chats folder on-disk. http://cgit.collabora.com/git/user/wjt/telepathy-gabble/commit/?h=gtalk-logs
-- GitLab Migration Automatic Message -- This bug has been migrated to GNOME's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/empathy/issues/112.