Re: Mail indexer
OK, I'll try to learn mono by making a licq backend. I'll probably borrow tons of lines of code from the other backends, what do I write on the top of every file I produce. I have checked the source and everything I have seen i copyright novell. Since Im not an employee there I probably should put something else there :) /nisseOn 9/20/05, Joe Shaw [EMAIL PROTECTED] wrote: Hi,On Tue, 2005-09-20 at 20:07 +0200, Nils Erik Svangård wrote: I think I get it. If the fileformat for the licq logs is some strange format I probably have to write a filter for that. And then make a backen who uses that filter?Essentially, yes.If I were you, though, I would start with thebackend, since that's where the data will be coming from to start.I don't know anything about licq, so I'll make up a hypothetical situation.Let's say that licq stores its logs in ~/.licq/logs/icqnumber and that there is a icq number to nickname mapping in~/.licq/buddy.xml.Your backend would look in ~/.licq/logs for new/updated logs, and then look in ~/.licq/buddy.xml to map them to a human readable name.Youthen create an Indexable object and set certain properties on it,including the nickname of the buddy who sent it to you.From there, the filter would take over and parse the logs for more general information if it's there.Now, if the licq logs are veryspecialized (ie, not plain text, but not HTML or some other standardformat) you can skip the filtering process altogether and just do all of the work in the backend.Joe ___ Dashboard-hackers mailing list Dashboard-hackers@gnome.org http://mail.gnome.org/mailman/listinfo/dashboard-hackers
Re: Mail indexer
On Wed, 2005-09-21 at 11:18 +0200, Nils Erik Svangård wrote: OK, I'll try to learn mono by making a licq backend. I'll probably borrow tons of lines of code from the other backends, what do I write on the top of every file I produce. I have checked the source and everything I have seen i copyright novell. Since Im not an employee there I probably should put something else there :) If you're basing your code on existing Novell code, just copy the header, keep the Novell copyright, and add your own, ie: Copyright (C) 2005 Novell, Inc. Copyright (C) 2005 Nils Erik Svangård or whatever. Joe ___ Dashboard-hackers mailing list Dashboard-hackers@gnome.org http://mail.gnome.org/mailman/listinfo/dashboard-hackers
Re: Mail indexer
Hi, I think I get it. If the fileformat for the licq logs is some strange format I probably have to write a filter for that. And then make a backen who uses that filter? /nisseOn 9/20/05, Joe Shaw [EMAIL PROTECTED] wrote: Hi,On Tue, 2005-09-20 at 17:28 +0200, Nils Erik Svangård wrote: I user mozilla-thunderbird as my primary mailreader (I dont like the filtering in Evolution). I have played around with beagle (and browsed the Evolution indexer source). If I want to index my mail do I have to make a Thunderbird indexer or is it better to write a IMAP interface and index my mail directly on the server. This question applies to LICQ also, I use LICQ and Gaim parallel. LICQ handles ICQ much better than Gaim. Do I have to write a indexer for LICQ aswell.Writing a Thunderbird backend is the best way to go for this.Thisprobably also applies for LICQ, but I don't know how its data is stored. What is the diffrence between indexer and filters?What you call the indexer we call a backend.A backend isessentially a data source.For example, the file system is a data source: all of the files in your home directory.The Evolution mailbackend is a data source: it pulls structured data from your~/.evolution directory and GConf.The Gaim backend pulls data from~/.gaim, and knows how to parse the Gaim buddy list and log files. A filter, on the other hand, knows how to process a specific piece ofdata, regardless of its data source.So the HTML filter can processHTML files on disk, HTML attachments in your mail, or the HTML logs from Gaim.For your two examples, you probably want to write backends and havethose use existing filters is possible.For example, if you extract themessage data with the Thunderbird backend, the mail filter will process it and extract info like From, To, Subject, etc.Joe ___ Dashboard-hackers mailing list Dashboard-hackers@gnome.org http://mail.gnome.org/mailman/listinfo/dashboard-hackers