about summary refs log tree commit diff
path: root/mquote
diff options
context:
space:
mode:
authorLeah Neukirchen <leah@vuxu.org>2018-01-09 17:02:02 +0100
committerLeah Neukirchen <leah@vuxu.org>2018-01-09 17:02:02 +0100
commitde30dce63872a8208c11169cebf9c253d8db226e (patch)
tree45afaca6949b33176d809735cd8d1236f425e6a9 /mquote
parente2c243bc26fb7f98935a0c1e15463982c87d588f (diff)
downloadmblaze-de30dce63872a8208c11169cebf9c253d8db226e.tar.gz
mblaze-de30dce63872a8208c11169cebf9c253d8db226e.tar.xz
mblaze-de30dce63872a8208c11169cebf9c253d8db226e.zip
mquote: fall back to rendering when no plaint text reply was found
Diffstat (limited to 'mquote')
-rwxr-xr-xmquote2
1 files changed, 1 insertions, 1 deletions
diff --git a/mquote b/mquote
index fa8e4a4..31af66b 100755
--- a/mquote
+++ b/mquote
@@ -6,7 +6,7 @@
 : ${from:=Someone}
 
 printf '%s wrote:\n' "$from"
-mshow -R "$1" |
+{ mshow -R "$1" || mshow -h '' -N "$1"; } |
 	sed -n '/^-- $/,$!p'   |                   # strip signature
 	sed -e :a -e '/^\n*$/{$d;N;ba' -e '}' |    # strip empty lines
 	sed 's/^/> /'                              # prefix with >