When sending a mail message with a newline character (LF) in the
subject, one gets garbage.
For instance:
echo test | mutt -s foo$'\n'bar $USER@localhost
One gets a mail with just "foo" in the subject and a body that starts
with "bar" and continues with some of the headers. I don't know how
this should be handled, but this shouldn't give garbage.
This can even be used to inject headers:
echo test | mutt -s foo$'\n'Injected:\ bar $USER@localhost
Note: I don't think that the caller is required to sanitize the
subject. At least, this is not documented, so that this should not
be assumed.