diff options
author | Christian Neukirchen <chneukirchen@gmail.com> | 2016-08-08 14:01:33 +0200 |
---|---|---|
committer | Christian Neukirchen <chneukirchen@gmail.com> | 2016-08-08 14:01:33 +0200 |
commit | 0f74f4d06256ffff526b91d7ef5627ff7f0e445b (patch) | |
tree | b8e245d8a82b532e8aa0949ef76dc0392c757050 /mcomp | |
parent | 2a72a341c0444ecf24c9bbb85d7b06636fef2875 (diff) | |
download | mblaze-0f74f4d06256ffff526b91d7ef5627ff7f0e445b.tar.gz mblaze-0f74f4d06256ffff526b91d7ef5627ff7f0e445b.tar.xz mblaze-0f74f4d06256ffff526b91d7ef5627ff7f0e445b.zip |
mrepl: check message has a message-id
Diffstat (limited to 'mcomp')
-rwxr-xr-x | mcomp | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/mcomp b/mcomp index 6fdb433..7c609ae 100755 --- a/mcomp +++ b/mcomp @@ -67,12 +67,15 @@ fi done echo "Subject: Re: $s" cat ~/.mblaze/headers 2>/dev/null - echo -n "References:" - { - mhdr -h references "$1" - mhdr -h message-id "$1" - } | reffmt - echo "In-Reply-To: $(mhdr -h message-id "$1")" + mid=$(mhdr -h message-id "$1") + if [ "$mid" ]; then + echo -n "References:" + { + mhdr -h references "$1" + printf "%s\n" "$mid" + } | reffmt + echo "In-Reply-To: $mid" + fi msgid echo |