From a53b3b9165a811347f51fef640108aedcc0db5f3 Mon Sep 17 00:00:00 2001 From: Christian Neukirchen Date: Thu, 28 Jul 2016 13:23:36 +0200 Subject: [PATCH] mrepl: reply-all by default, respect reply-to --- mcomp | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/mcomp b/mcomp index 66980f4..b9cb20b 100755 --- a/mcomp +++ b/mcomp @@ -1,6 +1,14 @@ #!/bin/sh # mcomp [TO] - compose mail +commajoin() { + sed ':a;N;s/\n/, /;$!b a' +} + +reffmt() { + sed 's/^[^<]*//g;s/[^>]*$//g;s/>[^<]*\n]*$//g;s/>[^<]*\n