diff options
author | Christian Neukirchen <chneukirchen@gmail.com> | 2016-08-08 14:01:56 +0200 |
---|---|---|
committer | Christian Neukirchen <chneukirchen@gmail.com> | 2016-08-08 14:01:56 +0200 |
commit | 45176425e3c11657ce3abb02dcc4162e190990b2 (patch) | |
tree | 30c9ec9755fe9d38d7d2152a7dfcabb7191e3f03 | |
parent | c9eba354ab9f2e962bbc8609acd6aec4371d5ad7 (diff) | |
download | mblaze-45176425e3c11657ce3abb02dcc4162e190990b2.tar.gz mblaze-45176425e3c11657ce3abb02dcc4162e190990b2.tar.xz mblaze-45176425e3c11657ce3abb02dcc4162e190990b2.zip |
mcomp: use mdate
-rwxr-xr-x | mcomp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/mcomp b/mcomp index d6bec82..a98aa93 100755 --- 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 |