mblaze

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

commit 8a9825596b0cff53d3cf1475ad540f23273442bb
parent 470d7f85a0aebe2e3bb6ef18006977fb2dfc379b
Author: Leah Neukirchen <leah@vuxu.org>
Date:   Sat,  5 Aug 2017 20:13:16 +0200

mverify: use 0+x to force number

+x does not work in nawk/*BSD awk.

Diffstat:
contrib/mverify | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/contrib/mverify b/contrib/mverify @@ -8,9 +8,9 @@ mshow -t "$1" | awk -v "msg=$1" ' { match($0, "^ *"); indent = RLENGTH } $2 == "text/plain" { plain++ } -$2 == "multipart/signed" { signed = +$1; si = indent; next } -signed && !content && indent == si+2 { content = +$1; next } -signed && content && !signature && indent == si+2 { signature = +$1; type = $2 } +$2 == "multipart/signed" { signed = 0+$1; si = indent; next } +signed && !content && indent == si+2 { content = 0+$1; next } +signed && content && !signature && indent == si+2 { signature = 0+$1; type = $2 } function q(a) { gsub("\\47", "\47\\\47\47", a); return "\47"a"\47" } END { if (type == "" && plain) { // guess plain text armored signature