[Tracker] Initial email indexing support



Hello,

this is a patch for an initial email indexing support with Evolution. It
extracts content of sent and received emails: text + attachments.

Currently, tracker_db_save_email() tries to save text and header infos
but it is missing some DB stuff... (Jamie...)

For email bodies in HTML, there is nothing done and I don't know exactly
how it will be done.  :-)

Attachments have their metadatas/content extracted but that's all, and
they have their uri in something like /tmp/pid/attachment...
Currently, parent directories of treated files won't be deleted! So,
check your /tmp directory regularly.

Now, I'm waiting for DB things in:
* tracker_db_get_last_mbox_offset
* tracker_db_update_mbox_offset
* tracker_db_save_email

(Since tracker_db_get_last_mbox_offset() isn't implemented it always
returns 0 which it makes indexing to always start from the beginning of
the mbox to treat.)


I will take a look at KMail.
In thunderbird, there is a stupid file to parse to find profiles then
directories for mboxes...



Note: this patch isn't intended for real use...


Laurent.

Attachment: email-indexing-support.diff
Description: Text Data



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]