From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id 4JloBAQIgWEthgEAgWs5BA (envelope-from ) for ; Tue, 02 Nov 2021 10:42:28 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id +AsaAAQIgWEsYQAA1q6Kng (envelope-from ) for ; Tue, 02 Nov 2021 09:42:28 +0000 Received: from mail.notmuchmail.org (nmbug.tethera.net [144.217.243.247]) (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 16CD235E45 for ; Tue, 2 Nov 2021 10:42:26 +0100 (CET) Received: from nmbug.tethera.net (localhost [127.0.0.1]) by mail.notmuchmail.org (Postfix) with ESMTP id 3F9EC1F85E; Tue, 2 Nov 2021 05:42:18 -0400 (EDT) Received: from mail-io1-xd2a.google.com (mail-io1-xd2a.google.com [IPv6:2607:f8b0:4864:20::d2a]) by mail.notmuchmail.org (Postfix) with ESMTPS id 330691F56E for ; Tue, 2 Nov 2021 04:58:47 -0400 (EDT) Received: by mail-io1-xd2a.google.com with SMTP id z206so59258iof.0 for ; Tue, 02 Nov 2021 01:58:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=colinramsay-co-uk.20210112.gappssmtp.com; s=20210112; h=mime-version:from:date:message-id:subject:to; bh=lqyA+9sO3ClXdNayKHsr0DDgh9ZuYxYKVwnfwB6DrEs=; b=LbuBbq0+Nv0L7awjl0TWbRGlKWBZQL2tpwJJ/EPNnXo7/iWKyHOZTsmbo9pvQ/fSk8 QzaZwaK6MQMF5R/tdiKvhXfYEU5AKuKzOGAAIzwLkemSvu+0wrvLt5WzdhdjSYhx9CVm YE/o/FDOy+fg3Ag8NeCW6VV+VdezchIzAk6LoD+/BR7duhAhIh9ZLoDK40NhV9kjQ7KB t+HNHBQVQ5u5iG/ph/OS8zEHxfMaZisPd8G7MRdm4H/83x/x/K7vK6GInYX2TXdiZTmp Buxae/7W5JHYhIqpkxyK3u1nfhasgSrH9MHQL9Emttt2jWWECXg3ik1ExscDqAxK1fDz pAeg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=lqyA+9sO3ClXdNayKHsr0DDgh9ZuYxYKVwnfwB6DrEs=; b=VJ3ThGZh5xISq5ARwVB6YExKfZv+wtlf8DUjgYuMzxVjNTO/f2e5TJgqGBeb283Gcb ZaHpaSTUjkaqHCrIRc2/2ZbtcL4MtJrsliGY2U/oJt1DQx7AARGjxZJYaX2RbqIUBMNi PUUos2idv5TXWtm3Zczdyf+8/6fACetIr96uSKle3Xrwd6qWj2B72T+HCjKBYVjuuE5L CZ5yAi9ag8+lrlxkSjGSusL7/sO/s7f89qIWgJ0rVzpG2ej9K6Oh6ATd2JUq1uUP6Z0x TcgZ3SRpDMilJNlHIkphfkq1V4ZYm3vGyJof942q12uMNFzkifmHdyJD9kyGa9soK3F5 uyqA== X-Gm-Message-State: AOAM5312efdRZ65jWMW5cjgoIYHcgPYlC0mApfHIUCLqsI1Hx4cnYQRP 21JMyTx4kKkhmHIlcyIaOKdK+SnjOuf3rUQuzs8vWY7SWvT0Rq77 X-Google-Smtp-Source: ABdhPJylPHmz0CAPYcSy88tpE6h5NVsTrNbdQSpcUHnfBH5OWkpE/K9V1xI9al5Xp/HAzEsxYYSKuDhK1JCZS3UO5BA= X-Received: by 2002:a5e:c80c:: with SMTP id y12mr24344547iol.16.1635843525829; Tue, 02 Nov 2021 01:58:45 -0700 (PDT) MIME-Version: 1.0 From: Colin Ramsay Date: Tue, 2 Nov 2021 08:58:35 +0000 Message-ID: Subject: notmuch_message_remove_tag & std::length_error To: notmuch@notmuchmail.org X-MailFrom: info@colinramsay.co.uk X-Mailman-Rule-Hits: nonmember-moderation X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-notmuch.notmuchmail.org-0 Message-ID-Hash: 32C77GPDQ5SO6POOPY3HCKCPIML6A6DE X-Message-ID-Hash: 32C77GPDQ5SO6POOPY3HCKCPIML6A6DE X-Mailman-Approved-At: Tue, 02 Nov 2021 05:42:16 -0400 X-Mailman-Version: 3.3.3 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: Content-Type: multipart/mixed; boundary="===============4206952869110954428==" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1635846146; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type:list-id: list-help:list-owner:list-unsubscribe:list-subscribe:list-post: dkim-signature; bh=0UirOSydcWQlQGKrgEjFjiTYFbiy6N5saXxTL6e3nLM=; b=uqJb5texVgokNFKJsEbQ5+vluiPG5ELyD8oCSbwndVxQxQlJ6BPCFHJJ+CjSlTd5IwCIYo OxAt6buMz0/loGkqUfhth6AQ/vdf0cBepAjsdU/t4d/+jIt1YDGwwVhwvUhp4XUsMRVO++ ZEmCCvH+5cj160TzZw/EdUTt9ksLPZ9dQ9/0OVXEKSij088k1XGzzMmqUQB411YS6w+7Fw 2wNJ+/kNlzHkqRzGurHLhefgSLiQ+RLALjaA+kvO6HX3JNDDtkquQKXaOCcX2KVmfZl+R9 9dJ5BeWbuQHiNF+TIdLAlU+RhATwmBOd+2FKaF/hRg6wrdQmRykV8E7uN9+qRQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1635846146; a=rsa-sha256; cv=none; b=PNvkPRPiZQMmaC2a1kd5QDwljMnh0o2wYvqmRfqZwVLtXMSfa+0F3aDjGrdP4dfqIdVwN9 Pn7gdkz4h+ypRASIJ6IvlDcXDaHPsc/2rAaStklU6OCfSiuEZH+QXp5iHM/AmRT/iVh9sI b8LR8jqYTR4IyX0rlVqgsp8zWWtuF3gJ1BRku5GGxZtJwuWyvP0tLGSomgSMNl+l5oEhzy /VWteC4bg9m0i4Uu8MfLXBNVuFN4pjPhNwxnLBdxm5bvWG58boHXhwKmMm9OQvw+y9LBcd 3PDXile/GRbKpoCF8SWzvkr4FOuY9WFpFcWYthV3iYUrgw8dAjiN0VzULoRPiQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=colinramsay-co-uk.20210112.gappssmtp.com header.s=20210112 header.b=LbuBbq0+; dmarc=none; spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 144.217.243.247 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Migadu-Spam-Score: 0.16 Authentication-Results: aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=colinramsay-co-uk.20210112.gappssmtp.com header.s=20210112 header.b=LbuBbq0+; dmarc=none; spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 144.217.243.247 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Migadu-Queue-Id: 16CD235E45 X-Spam-Score: 0.16 X-Migadu-Scanner: scn0.migadu.com X-TUID: 6X6K2bDlEGz4 --===============4206952869110954428== Content-Type: multipart/alternative; boundary="00000000000043fd9905cfca8002" --00000000000043fd9905cfca8002 Content-Type: text/plain; charset="UTF-8" Hi, I'm using Dart to work with libnotmuch and when calling notmuch_message_remove_tag a std::length_error is thrown. I'm out of my comfort zone here so there's been a bit of fumbling to get to this point. I have tried doing the same tag removal with both alot and the notmuch commandline tools and it works, and I've checked that the arguments I'm passing are valid, so I'm at a bit of a loss. I just wondered if anyone could shed any light on when notmuch_message_remove_tag would throw a length_error? Thanks, Colin --00000000000043fd9905cfca8002 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi, I'm using Dart to work with libnotmuch and wh= en calling notmuch_message_remove_tag a std::length_error is thrown.
<= div>
I'm out of my comfort zone here so there's been = a bit of fumbling to get to this point. I have tried doing the same tag rem= oval with both alot and the notmuch commandline tools and it works, and I&#= 39;ve checked that the arguments I'm passing are valid, so I'm at a= bit of a loss.

I just wondered if anyone cou= ld shed any light on when notmuch_message_remove_tag would throw a length_e= rror?

Thanks,
Colin
--00000000000043fd9905cfca8002-- --===============4206952869110954428== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline --===============4206952869110954428==--