mcomp: use mdate

pull/2/head
Christian Neukirchen 8 years ago
parent c9eba354ab
commit 45176425e3

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

Loading…
Cancel
Save