diff options
author | Leah Neukirchen <leah@vuxu.org> | 2017-08-05 20:13:16 +0200 |
---|---|---|
committer | Leah Neukirchen <leah@vuxu.org> | 2017-08-05 20:13:16 +0200 |
commit | 8a9825596b0cff53d3cf1475ad540f23273442bb (patch) | |
tree | 32944467e9dc91935bc85ac33da7eb7a8e24d1dc | |
parent | 470d7f85a0aebe2e3bb6ef18006977fb2dfc379b (diff) | |
download | mblaze-8a9825596b0cff53d3cf1475ad540f23273442bb.tar.gz mblaze-8a9825596b0cff53d3cf1475ad540f23273442bb.tar.xz mblaze-8a9825596b0cff53d3cf1475ad540f23273442bb.zip |
mverify: use 0+x to force number
+x does not work in nawk/*BSD awk.
-rwxr-xr-x | contrib/mverify | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/contrib/mverify b/contrib/mverify index 740ce83..0edf234 100755 --- 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 |