What about encoding in notmuch the elements composing the line, print the elements with a separator that would be encoded if it appears in an element, then do the reverse in emacs. One such encoding might be URL-encoding. Servilio
Subject: Re: [PATCH v2] emacs: bad regexp @ `notmuch-search-process-filter'
Date: Wed, 20 Jul 2011 00:50:53 -0400
To: Austin Clements
Cc: Notmuch Mail, David Edmondson
From: servilio
What about encoding in notmuch the elements composing the line, print the elements with a separator that would be encoded if it appears in an element, then do the reverse in emacs. One such encoding might be URL-encoding. Servilio