Sanitize "Subject:" and "Author:" fields to not contain control characters in notmuch...
authorAndreas Amann <a.amann@ucc.ie>
Sun, 8 May 2011 21:14:33 +0000 (23:14 +0200)
committerCarl Worth <cworth@cworth.org>
Thu, 2 Jun 2011 04:41:24 +0000 (21:41 -0700)
commitf954b692517237cb0d4779ca95002b2c896cc62d
treeb6ebd637c4edb9af4e939451ec2fb99e44042565
parent09793b61324514b9691af36e19e6f124d54559e4
Sanitize "Subject:" and "Author:" fields to not contain control characters in notmuch-search

When a Subject field contained encoded CRLF sequences, these sequences
would appear unfiltered in the output of notmuch search. This confused
the notmuch emacs interface leading to "Unexpected Output"
messages. This is now fixed by replacing all characters with ASCII
code less than 32 with a question mark.

Signed-off-by: Jameson Graef Rollins <jrollins@finestructure.net>
notmuch-search.c