tracker r2315 - in trunk: . src/tracker-indexer/modules
- From: carlosg svn gnome org
- To: svn-commits-list gnome org
- Subject: tracker r2315 - in trunk: . src/tracker-indexer/modules
- Date: Mon, 6 Oct 2008 15:56:24 +0000 (UTC)
Author: carlosg
Date: Mon Oct 6 15:56:24 2008
New Revision: 2315
URL: http://svn.gnome.org/viewvc/tracker?rev=2315&view=rev
Log:
2008-10-06 Carlos Garnacho <carlos imendio com>
* src/tracker-indexer/modules/evolution.c (extract_message_text): Also
check the mime part doesn't contain raw/binary data before processing
it as text.
Modified:
trunk/ChangeLog
trunk/src/tracker-indexer/modules/evolution.c
Modified: trunk/src/tracker-indexer/modules/evolution.c
==============================================================================
--- trunk/src/tracker-indexer/modules/evolution.c (original)
+++ trunk/src/tracker-indexer/modules/evolution.c Mon Oct 6 15:56:24 2008
@@ -1441,6 +1441,7 @@
gpointer user_data)
{
GString *body = (GString *) user_data;
+ GMimePartEncodingType encoding;
GMimePart *part;
const gchar *content, *disposition, *filename;
gchar *encoding, *part_body;
@@ -1465,6 +1466,13 @@
part = GMIME_PART (object);
filename = g_mime_part_get_filename (part);
disposition = g_mime_part_get_content_disposition (part);
+ encoding = g_mime_part_get_encoding (part);
+
+ if (encoding == GMIME_PART_ENCODING_BINARY ||
+ encoding == GMIME_PART_ENCODING_BASE64 ||
+ encoding == GMIME_PART_ENCODING_UUENCODE) {
+ return;
+ }
if (disposition &&
strcmp (disposition, GMIME_DISPOSITION_ATTACHMENT) == 0) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]