Use whole-word matching for attachment detection: Bug #713610

Old algorithm did internal-word searching which triggers false
positives.  This introduces full-word matching (as well as suffix
matching of document file extensions, which the old algorithm got
for free) and a wider vocabulary of words to search for.

We lost "cover letter" due to limitations of this algorithm.