Re: Null snippets

2009-06-20 Thread D Bera
> There is a SnippetMode, but alas it's already set to true. However, in
> FilterMail.cs I found
>
>                             // If this is the richest part we found for
> multipart emails, add its content to textcache
>                             if (this.depth == 1 && this.count == 0)
>                                 child.CacheContent = true;
>                             else
>                                 child.CacheContent = false;
>
> If I make child.CacheContent unconditionally true (and then re-index of
> course) the results are just what I want for attachments. Snippet is still
> null for phrase searches but perhaps that's inevitable? I'm ok with my
> hacked solution, but a command-line option to turn this on would be really
> nice! Or does the logic need re-visiting?

Some of the beagle hackers has HUGE volumes of emails which was the
main motivation behind disabling snippets for emails :-). Snippets
requires caching the data which basically means a lot of storage.
Later the main email body was cached but attachments were left out ...
again fearing space problem.
So setting  "child.CacheContent = true" is ok.

I propose a Config option to enable snippets for emails (and warn
about the storage in the settings GUI) and turn on/off snippets for
emails (attachment included). Hopefully not too late on this one 
:-)

- dBera
___
Dashboard-hackers mailing list
Dashboard-hackers@gnome.org
http://mail.gnome.org/mailman/listinfo/dashboard-hackers


Re: beagle-query and uri's with spaces

2009-06-20 Thread D Bera
> > Thanks for your advice, but regrettably it just doesn't work: Total hits: 0.
> > So is this a bug? (I haven't actually found any documentation on what should
> > work).
> >
> > Can someone tell me how to use beagle-query with the search-term being a
> > uri: with spaces (or other funny characters) in it? For example,
> > beagle-query actually returns a hit like
> > "file:///var/SDRFiles/COMMON/Suppliers/MCS/Price List.xls" - and I want pass
> > this back again to beagle-query as a uri: query. Tried many combinations of
> > " and \ and %20 but not getting anywhere!
>
> Double fault!
> I was wrong about escaping and there is an extra bug.
>
> I will try to get a patch ready in a few days.

I feel like an aged person - a few days became a few weeks. :)
Nevertheless, the patch is now in git head. This problem should should
be fixed now.

- dBera

--
-
Debajyoti Bera @ http://dtecht.blogspot.com
beagle / KDE fan
Mandriva / Inspiron-1100 user
___
Dashboard-hackers mailing list
Dashboard-hackers@gnome.org
http://mail.gnome.org/mailman/listinfo/dashboard-hackers