beagle r3962 - in trunk/beagle: Filters Util beagled tools



Author: dbera
Date: 2007-09-15 19:24:18 +0100 (Sat, 15 Sep 2007)
New Revision: 3962
ViewCVS link: http://svn.gnome.org/viewcvs/beagle?rev=3962&view=rev

Modified:
   trunk/beagle/Filters/FilterMail.cs
   trunk/beagle/Util/Conf.cs
   trunk/beagle/beagled/FilterFactory.cs
   trunk/beagle/beagled/Flavor.cs
   trunk/beagle/tools/Info.cs
Log:
Sometimes beagled (xdgmime) miscomputes the mimetype of maildir files; thus simply adding a maildir directory as a root does not work! Allow adding a path to conf to specifically request files under a subdirectory to be always treated as message/rfc822 files.
NOTE: This isnt a generic mail backend. E.g. if there are non maildir files under that root, those will also be indexed using mailfilter (the conf option takes an wildcarded-extension to allow only files with certain extension to be recognized as mail files, but that does leaves out lots of other cases). Also, if the maildir directories have more mails in subdirectories, they will be indexed, UNLESS, those subdirectories are hidden! Since the files backend crawler does not scan hidden directories, those files will not be indexed. A mail backend is always the best way to handle maildir files.

* Flavor.cs, FilterFactory.cs, Info.cs: Remove some properties. Beautify the string representation. Use a icomparer and return a sortedlist table instead of an unsorted hashtable. The comparer sorts the flavor with the larger wt first.
* Conf.cs: Add options to add/remove/list maildir directories.
* FilterMail.cs: Add the user specified maildir directories to its supported flavors.





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