]> git.cworth.org Git - obsolete/notmuch-old/commit
notmuch new: Don't index uuencoded data.
authorCarl Worth <cworth@cworth.org>
Fri, 5 Feb 2010 01:08:11 +0000 (17:08 -0800)
committerCarl Worth <cworth@cworth.org>
Fri, 5 Feb 2010 01:08:11 +0000 (17:08 -0800)
commit3767c6f9f9c4719f36569daa05cd56470b3fd00f
tree3ec528e01314fa5179b7e37e68b42057123f1a85
parentd111c720bad53f98edba958aa605e857036a2bc8
notmuch new: Don't index uuencoded data.

With modern MIME attachments, we're already avoiding indexing the
attachments. But for old-school uuencoded data in the mail, we have
been directly indexing the encoded data as terms, (which is not useful
at all---nobody will ever ytry to search based on the seemingly random
uuencoded data).

Additionally, indexing a modestly large uuencoded file seems to make
Xapian go insane, (consuming *lots* of memory).

We fix both problems by detecting uuencoded content and not performing
any indexing of it.
lib/index.cc