After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 594062 - get log from google server
get log from google server
Status: RESOLVED OBSOLETE
Product: empathy
Classification: Core
Component: Archives
unspecified
Other Linux
: Low enhancement
: ---
Assigned To: empathy-maint
empathy-maint
: 594078 633255 681690 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2009-09-03 17:48 UTC by William Jon McCann
Modified: 2018-05-22 13:41 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description William Jon McCann 2009-09-03 17:48:21 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.
Comment 1 William Jon McCann 2009-09-03 20:29:33 UTC
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.
Comment 2 William Jon McCann 2009-09-03 20:43:25 UTC
The google talk client for windows has a "View past chats" menu item but it opens up gmail chats folder web page.
Comment 3 William Jon McCann 2009-09-03 20:46:42 UTC
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.
Comment 4 Frederic Peters 2009-09-03 21:00:15 UTC
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.
Comment 5 Guillaume Desmottes 2009-09-10 16:54:36 UTC
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/
Comment 7 Guillaume Desmottes 2010-10-27 14:52:36 UTC
*** Bug 633255 has been marked as a duplicate of this bug. ***
Comment 8 Will Thompson 2011-02-07 09:58:02 UTC
(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.)
Comment 9 Tobias Wolf 2011-11-22 16:50:48 UTC
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
Comment 10 Jean-François Fortin Tam 2012-08-26 03:25:13 UTC
*** Bug 594078 has been marked as a duplicate of this bug. ***
Comment 11 Jean-François Fortin Tam 2012-08-26 03:26:27 UTC
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?
Comment 12 Bastien Nocera 2012-08-28 08:28:30 UTC
(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.
Comment 13 Guillaume Desmottes 2012-09-11 09:49:16 UTC
*** Bug 681690 has been marked as a duplicate of this bug. ***
Comment 14 Will Thompson 2012-09-12 01:30:32 UTC
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).
Comment 15 Guillaume Desmottes 2012-09-12 09:27:41 UTC
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.
Comment 16 Will Thompson 2012-09-22 00:39:55 UTC
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
Comment 17 GNOME Infrastructure Team 2018-05-22 13:41:01 UTC
-- 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.