gnome-zeitgeist team mailing list archive
-
gnome-zeitgeist team
-
Mailing list archive
-
Message #00911
[Bug 788776] [NEW] EMail messages appear as plain text files
Public bug reported:
So events for received email messages are going into Zeitgeist, they do
show up in the Activity Journal. But they show up as text files, which
isn't user-friendly.
I wrote the code inserting the events, so it's possible that I did
something wrong and I would greatly appreciate pointing out any flaws.
So the event insertation is this snippet:
var log = new Zeitgeist.Log ();
var event = new Zeitgeist.Event.full (Zeitgeist.ZG_RECEIVE_EVENT,
Zeitgeist.ZG_SYSTEM_NOTIFICATION, "app://postler.desktop",
new Zeitgeist.Subject.full (message.uri,
Zeitgeist.NMO_EMAIL, Zeitgeist.NMO_MAILBOX_DATA_OBJECT,
"text/plain", GLib.File.new_for_uri (message.uri).get_parent ().get_uri (),
message.sender, ""));
log.insert_events_no_reply (event);
The file here is a full email message in raw form.
** Affects: gnome-activity-journal
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of GNOME
Zeitgeist Team, which is the registrant for GNOME Activity Journal.
https://bugs.launchpad.net/bugs/788776
Title:
EMail messages appear as plain text files
Status in GNOME Activity Journal:
New
Bug description:
So events for received email messages are going into Zeitgeist, they
do show up in the Activity Journal. But they show up as text files,
which isn't user-friendly.
I wrote the code inserting the events, so it's possible that I did
something wrong and I would greatly appreciate pointing out any flaws.
So the event insertation is this snippet:
var log = new Zeitgeist.Log ();
var event = new Zeitgeist.Event.full (Zeitgeist.ZG_RECEIVE_EVENT,
Zeitgeist.ZG_SYSTEM_NOTIFICATION, "app://postler.desktop",
new Zeitgeist.Subject.full (message.uri,
Zeitgeist.NMO_EMAIL, Zeitgeist.NMO_MAILBOX_DATA_OBJECT,
"text/plain", GLib.File.new_for_uri (message.uri).get_parent ().get_uri (),
message.sender, ""));
log.insert_events_no_reply (event);
The file here is a full email message in raw form.
Follow ups
References