The sender domain has a DMARC Reject/Quarantine policy which disallows
sending mailing list messages using the original "From" header.

To mitigate this problem, the original message has been wrapped
automatically by the mailing list software.
--- Begin Message ---
From: Philip Prindeville <phil...@redfish-solutions.com>

Add convenience function to add anonymous strings to arrays.

---
 sh/jshn.sh | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/sh/jshn.sh b/sh/jshn.sh
index 
c10ff3f154353c9a39b6b8ea9646464211450d86..d961926d3bc72c842bb841220bfd17d429d2fc6c
 100644
--- a/sh/jshn.sh
+++ b/sh/jshn.sh
@@ -150,6 +150,17 @@ json_add_string() {
        _json_add_generic string "$1" "$2" "$cur"
 }
 
+json_push_string() {
+       local cur
+       _json_get_var cur JSON_CUR
+       [ "${cur%%[0-9]*}" = "J_A" ] || {
+               [ -n "$_json_no_warning" ] || \
+                       echo "WARNING: Not in an array" >&2
+               return 1
+       }
+       _json_add_generic string "" "$2" "$cur"
+}
+
 json_add_int() {
        local cur
        _json_get_var cur JSON_CUR
-- 
2.43.0



--- End Message ---
_______________________________________________
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel

Reply via email to