From: martin f. krafft Date: Tue, 27 Oct 2009 18:43:37 +0000 (+0100) Subject: deal with single quotes in from/to headers X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ian/git?p=topgit.git;a=commitdiff_plain;h=10d5b7b5e2fe2aa35f8b946be15536045aa73dfe;ds=sidebyside deal with single quotes in from/to headers Signed-off-by: martin f. krafft --- diff --git a/tg-mail.sh b/tg-mail.sh index f5c0cf4..6a008b4 100644 --- a/tg-mail.sh +++ b/tg-mail.sh @@ -38,7 +38,7 @@ patchfile="$(mktemp -t tg-mail.XXXXXX)" $tg patch "$name" >"$patchfile" -header="$(sed -e '/^$/,$d' "$patchfile")" +header="$(sed -e '/^$/,$d' -e "s,','\\\\'',g" "$patchfile")"