From 456c3cedca10fe75f822f9d287e5e4e08282efbb Mon Sep 17 00:00:00 2001 From: Andreas Gruenbacher Date: Thu, 25 Oct 2007 11:59:15 +0000 Subject: - quilt/mail.in: Make sure that shell meta-characters like * in subjects won't get expanded by accident (this was broken). Add test case. - quilt/mail.in: ``formail -x Foo'' will extract all Foo* headers, so use ``formail -x Foo:'' instead. - quilt/mail.in: Recognize sequences of common subject prefixes like Fwd:, Fw:, Re:, Aw:, Tr:, [foo] only at the beginning of subjects. --- test/mail.test | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) (limited to 'test/mail.test') diff --git a/test/mail.test b/test/mail.test index 7812752..a761175 100644 --- a/test/mail.test +++ b/test/mail.test @@ -62,29 +62,36 @@ < Aw: [patch] Fwd: Re: [patch 5/7] Fw: Subject of 5.diff < + $ cat - no-subject > patches/6.diff + < Subject: Must not expand * ? [abc] + < + + $ ls patches/ > series $ quilt mail --mbox mbox --prefix "test" --subject "This is a test" -m "Message" $ sed -nre "s/^(From [^ ]*).*/\\1/p" -e "/^Subject:/p" -e "/^To:/p" -e "/^Cc:/p" -e "/^ /p" mbox > From a@b.c - > Subject: [test 0/5] This is a test + > Subject: [test 0/6] This is a test > From a@b.c > Cc: Dummy - > Subject: [test 1/5] Subject of 1.diff + > Subject: [test 1/6] Subject of 1.diff > From a@b.c > Cc: Dummy - > Subject: [test 2/5] Subject of 2.diff is: split into multiple lines + > Subject: [test 2/6] Subject of 2.diff is: split into multiple lines > From a@b.c > To: "John X. Doe" - > Subject: [test 3/5] Subject of 3.diff + > Subject: [test 3/6] Subject of 3.diff > To: John X. Doe > From a@b.c > Cc: "Joe R. Hacker" , > "John X. Doe" , > =?UTF-8?q?=C3=9C=20is=20an=20umlaut?= - > Subject: [test 4/5] First paragraph used as subject of 4.diff. + > Subject: [test 4/6] First paragraph used as subject of 4.diff. > Cc: "John X. Doe" > Cc: Ü is an umlaut > From a@b.c - > Subject: [test 5/5] Subject of 5.diff + > Subject: [test 5/6] Subject of 5.diff + > From a@b.c + > Subject: [test 6/6] Must not expand * ? [abc] $ cd .. $ rm -rf d -- cgit