mblaze

Unix utilities to deal with Maildir - my mirror
git clone https://pi.duncano.de/git/mblaze.git
Log | Files | Refs | README | COPYING

commit e34e3dc9ea6a1e24960a084d2137e5e7c450e2dd
parent b4df49565fad59748e05bda5cd186d8cc1792ffa
Author: Christian Neukirchen <chneukirchen@gmail.com>
Date:   Wed, 10 Aug 2016 17:50:04 +0200

mcom: simplify subject generation

Diffstat:
mcom | 11+----------
1 file changed, 1 insertion(+), 10 deletions(-)

diff --git a/mcom b/mcom @@ -58,16 +58,7 @@ fi echo "To: $to" echo "Cc: $(mhdr -d -A -h to:cc: "$1" | commajoin)" echo "Bcc: " - s=$(mhdr -d -h subject "$1") - os= - while [ "$os" != "$s" ]; do - os=$s - s=${s# } - s=${s#[Rr][Ee]:} - s=${s#[Aa][Ww]:} - s=${s#[Ff][Ww][Dd]:} - done - echo "Subject: Re: $s" + echo "Subject: Re: $(mscan -f '%S' "$1")" cat ~/.mblaze/headers 2>/dev/null mid=$(mhdr -h message-id "$1") if [ "$mid" ]; then