beagle r3857 - in trunk/beagle: Filters beagled



Author: joeshaw
Date: 2007-08-15 20:20:37 +0100 (Wed, 15 Aug 2007)
New Revision: 3857
ViewCVS link: http://svn.gnome.org/viewcvs/beagle?rev=3857&view=rev

Modified:
   trunk/beagle/Filters/FilterMail.cs
   trunk/beagle/beagled/BuildIndex.cs
   trunk/beagle/beagled/ExtractContent.cs
Log:
Fix a problem where processing large number of maildir files on the file
system would cause file descriptors to run out.  The glib-sharp binding
(at least up until 2.10) batches and unrefs disposed managed wrappers in
a glib timeout, which requires that a main loop be running.  While
beagled has one, beagle-build-index and beagle-extract-content do not.
So work around the problem by running "while
(GLib.MainContext.Pending()) GLib.MainContext.Iteration();" after
processing a batch of files, to ensure that wrappers are collected.
This fixes bgo #466891.

In the mail filter, log GMime initialization error messages better and
don't continuously retry to reinitialize.  If it's broken, it's going to
stay broken and we don't need to flood the logs with this.





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