mblaze

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

commit 45176425e3c11657ce3abb02dcc4162e190990b2
parent c9eba354ab9f2e962bbc8609acd6aec4371d5ad7
Author: Christian Neukirchen <chneukirchen@gmail.com>
Date:   Mon,  8 Aug 2016 14:01:56 +0200

mcomp: use mdate

Diffstat:
mcomp | 8+++++++-
1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/mcomp b/mcomp @@ -12,6 +12,10 @@ reffmt() { msgid() { mgenmid 2>/dev/null | sed 's/^/Message-Id: /' } + +msgdate() { + echo -n "Date: " + mdate } outbox=$(mhdr -h outbox ~/.mblaze/profile) @@ -47,6 +51,7 @@ fi [ "$from" ] && echo "From: $from" cat ~/.mblaze/headers 2>/dev/null msgid + msgdate echo echo ;; @@ -78,6 +83,7 @@ fi echo "In-Reply-To: $mid" fi msgid + msgdate echo mquote "$1" @@ -88,7 +94,7 @@ fi printf '%s\n' '-- ' cat ~/.signature fi -} | msed '/date/a' /dev/stdin >$draft +} >$draft c=e while :; do