From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id 6EIQBsiSG2SunQAASxT56A (envelope-from ) for ; Thu, 23 Mar 2023 00:44:08 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id kMrgBciSG2Q0YQAA9RJhRA (envelope-from ) for ; Thu, 23 Mar 2023 00:44:08 +0100 Received: from mail.notmuchmail.org (yantan.tethera.net [135.181.149.255]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id DA3A56455 for ; Thu, 23 Mar 2023 00:44:07 +0100 (CET) Authentication-Results: aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=gmail.com header.s=20210112 header.b=TDDkPWf4; spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 135.181.149.255 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1679528647; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-owner:list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=J3jnfehQb+U0FeU/RNTOjngYGEhaUTXxy8oKEDtffvM=; b=FStchOy5lKi2MUJzjxhoEzO/0IQb3VUh1dvb5Kpl0Y2w88at/3m+NznjGrpeN38/AeUMrh fx+BYYB1L2/rkm/Zsjs0MABeBkLY5ZM1XJhGFlXKaFizV2uR2JFlu21eSdd2KOKAazy9cF pxYKLGDMpQH2GYMNUaonirOtfHD2GYDTIOLek4bqRMhSWeuIjWO08L1bisrRCaBw17g+LN R+yPMN8EQOOsZMFl3DvujGKWrOeMQzLJhtjG6k2/zLOpnl5GVIYpNFzkiSNdNOOvM9eSq3 TROb37flzFO3YFP/4KIZdJr/LLEV9XEC36Wx6aZUWHki2BL8UySntSts1wbkTw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1679528647; a=rsa-sha256; cv=none; b=S5XsXvlJlngJP4xivzD2x1sMv3VSYqizj+SVtO0gYuhLDsDqrdKPYrT+cZWCjk11xGnXQW L6NNBKDeDTW7jqv+SyTbLZMf1RkdROYlI3QEAKHTEseLSRTXDKcKhZ3TnAlx9swldShz8y K4dQjkMfXgqKAtYTJh1nnV7lNrPBgE1bs/SS4UY6wRfO8ZOGNsf00sN2/EV3TX3aZNKBlW kW+SFXNVI9yoA+LZu3STOjGVHBAdWpwHtfxXPyUxzssf4yGww1CGCIfYk0tOZA75by2VH3 cjxuTautffjg2Rmknwe6JjJsjq3gU4bSTjwQF7FdqxEpQbF9CL8qHI9+MvGi3Q== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=gmail.com header.s=20210112 header.b=TDDkPWf4; spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 135.181.149.255 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none) Received: from yantan.tethera.net (localhost [127.0.0.1]) by mail.notmuchmail.org (Postfix) with ESMTP id 2A0305F7EF; Wed, 22 Mar 2023 23:43:56 +0000 (UTC) Received: from mail-ot1-x330.google.com (mail-ot1-x330.google.com [IPv6:2607:f8b0:4864:20::330]) by mail.notmuchmail.org (Postfix) with ESMTPS id 03AFF5F70D for ; Wed, 22 Mar 2023 23:43:52 +0000 (UTC) Received: by mail-ot1-x330.google.com with SMTP id cw13-20020a05683068cd00b0069f8c4eecb5so3487355otb.7 for ; Wed, 22 Mar 2023 16:43:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1679528631; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=MIrlWqzERW8o1O3V9sz87yRETw2L1ZIeTsGq+94JObU=; b=TDDkPWf46BnhZ+qkybyVNKcdSVBlheu+rWmun7Ba7HMNYGrFxAXK5TlzERkIgnXLDZ 2ttsmw4A+BNiCAEQR1BnPMFj7aNepX/+dtoKJbrizV0yWqdfYvA1ktHtc0CnELzN4eDp bNXwqT06LB12vZAbcvVltNnY7dJNlTvdsuUtaJcRCPkrFCYFbfrpxGSOe0nCXn2LPFxM hm3aZmL6r6GS2OeK9w169RurcP3ELviSRRDd+bXIYJ2QkIvpB1jd1benMBYlReCQWYuE EFWrQzamJvsvX23PVZGurv9glLPERCMcoD2Zo6+adHWuvDcqMKRcBvLs/Kf7vzyJKpmm cW4w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679528631; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=MIrlWqzERW8o1O3V9sz87yRETw2L1ZIeTsGq+94JObU=; b=KVnU6x9zuW65HAUBmgzHr9Typ0wLxpWkEbLo71D7yiATA05W38PCZmg6KNloV8t8p2 osSKYGR+KigAEAvxddmrjWABoRZZI5DvpCM0omHYoKsUUw/NbANYPFSGGON72WyMwRF5 E70O+hLvPTVdN80op3dH8BGtJlLEgx0JmC13uciBAOt3fm4EvP/tNiH8wkjXTeMx/EAz F0K8wOXyGCPUtAe2Lf1y55ROUrSx3A6KOED4p4dG8BeEZ/KwNPpUBVZoRhpSjgcfpee5 sK+4+00khr2veJ6I/x+PjwDu5xyDC0UULok6S0L7bMVj23WdJjPhqt7a8C67tBwL/faQ MzUQ== X-Gm-Message-State: AO0yUKUnxOG5y743y5BClCbwNxRyl0/V013V7Tp77HUvR8Biw8l27mF9 hlfe82BdJdTJAD1OBwh4FMYosUanORI= X-Google-Smtp-Source: AK7set+xyNP+KyuLAY8aKous8A2oE3TXUzHUBRSIB1c8XFq0oumbw/72+0rgwt6TuZCD+I2PgLdIPQ== X-Received: by 2002:a9d:7544:0:b0:69d:a5c4:6469 with SMTP id b4-20020a9d7544000000b0069da5c46469mr2067891otl.23.1679528631370; Wed, 22 Mar 2023 16:43:51 -0700 (PDT) Received: from localhost ([2806:2f0:4060:fff1:4ae7:daff:fe31:3285]) by smtp.gmail.com with ESMTPSA id i18-20020a056830011200b0069fa6ca584bsm664818otp.40.2023.03.22.16.43.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Mar 2023 16:43:50 -0700 (PDT) From: Felipe Contreras To: notmuch@notmuchmail.org Subject: [PATCH 2/3] ruby: tags: return string array directly Date: Wed, 22 Mar 2023 17:43:45 -0600 Message-Id: <20230322234346.70537-3-felipe.contreras@gmail.com> X-Mailer: git-send-email 2.39.2.13.g1fb56cf030 In-Reply-To: <20230322234346.70537-1-felipe.contreras@gmail.com> References: <20230322234346.70537-1-felipe.contreras@gmail.com> MIME-Version: 1.0 Message-ID-Hash: Y2WY3RUFUHU2OYTHGG5C6B3IQBMK72YV X-Message-ID-Hash: Y2WY3RUFUHU2OYTHGG5C6B3IQBMK72YV X-MailFrom: felipe.contreras@gmail.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-notmuch.notmuchmail.org-0; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header CC: arcnmx X-Mailman-Version: 3.3.3 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Help: List-Owner: List-Post: X-Migadu-Queue-Id: DA3A56455 X-Spam-Score: -0.63 X-Migadu-Spam-Score: -0.63 X-Migadu-Scanner: scn0.migadu.com List-Subscribe: List-Unsubscribe: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Migadu-Country: DE X-Migadu-Flow: FLOW_IN X-TUID: Vhs/tx4sT0+G Signed-off-by: Felipe Contreras --- bindings/ruby/tags.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/bindings/ruby/tags.c b/bindings/ruby/tags.c index cc6ea59e..cad17d4c 100644 --- a/bindings/ruby/tags.c +++ b/bindings/ruby/tags.c @@ -23,7 +23,12 @@ VALUE notmuch_rb_tags_get (notmuch_tags_t *tags) { - return Data_Wrap_Notmuch_Object (notmuch_rb_cTags, ¬much_rb_tags_type, tags); + VALUE rb_array = rb_ary_new(); + for (; notmuch_tags_valid (tags); notmuch_tags_move_to_next (tags)) { + const char *tag = notmuch_tags_get (tags); + rb_ary_push (rb_array, rb_str_new2 (tag)); + } + return rb_array; } /* -- 2.39.2.13.g1fb56cf030