Antoine Beaupré found a bug when notmuch-saved-searches contains newlines: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=737496 We can remove newlines with something like (mapcar (lambda (arg) (replace-regexp-in-string "\n" " " arg)) args) I wonder if we should do some other sanitization at the same time? d