Comment 2 for bug 594215

Revision history for this message
Mark Tully (markjtully) wrote :

Attached is a first attempt at a Thunderbird add-on for Zeitgeist. It adds entries for new messages to Zeitgeist as follows:
  Event interpretation: EVENT_INTERPRETATION.RECEIVE_EVENT
  Event manifestation: EVENT_MANIFESTATION.SYSTEM_NOTIFICATION
  Actor: application://thunderbird.desktop
  Subject:
   Subject interpretation: MESSAGE.EMAIL
   Subject manifestation: MAILBOX_DATA_OBJECT
   url: Thunderbird's message uri
   mimetype: message/rfc822
   origin: mail sender's address
   title: message subject
   storage: net

The details of the event are also recorded in Thunderbird's error console, for debugging purposes.

There are a few issues with the extension as it stands:
  1: It adds more than one event to Zeitgeist (with different uris) if the message is in more than one folder. This is a particular problem in Gmail, where messages and easily be in several different folders.
  2: It does not yet distinguish between email messages and any of the other types of message that Thunderbird can handle (so newsgroup messages will also get added)
  3: Thunderbird doesn't seem to open a message if it's passed a message uri.