From 78a9cae9dc3828fdb2ae3cfbaa6ab1539a699abd Mon Sep 17 00:00:00 2001 From: Andreas Gruenbacher Date: Fri, 10 Aug 2007 13:43:29 +0000 Subject: - quilt mail: only add a "-- " at the end of messages if it is actually followed by a signature. --- quilt.changes | 6 ++++++ quilt/mail.in | 7 +++++-- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/quilt.changes b/quilt.changes index 1984631..047c863 100644 --- a/quilt.changes +++ b/quilt.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Fri Aug 10 15:40:31 CEST 2007 - agruen@suse.de + +- quilt mail: only add a "-- " at the end of messages if it is + actually followed by a signature. + ------------------------------------------------------------------- Fri Aug 10 15:16:12 CEST 2007 - agruen@suse.de diff --git a/quilt/mail.in b/quilt/mail.in index fbb42cc..24bbe48 100644 --- a/quilt/mail.in +++ b/quilt/mail.in @@ -465,8 +465,11 @@ introduction="$(gen_tempfile)" echo "$opt_message" echo fi - echo "-- " - [ -r $HOME/.signature ] && cat $HOME/.signature + if [ -r $HOME/.signature ] + then + echo "-- " + cat $HOME/.signature + fi ) | $QUILT_DIR/scripts/edmail --charset $opt_charset > $introduction if [ -z "$opt_message" ] -- cgit