From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id oL9rDGAJgWFbhgEAgWs5BA (envelope-from ) for ; Tue, 02 Nov 2021 10:48:16 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id 0Pn7B2AJgWEYYgAAbx9fmQ (envelope-from ) for ; Tue, 02 Nov 2021 09:48:16 +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 C318D12FF2 for ; Tue, 2 Nov 2021 10:48:15 +0100 (CET) Received: from nmbug.tethera.net (localhost [127.0.0.1]) by mail.notmuchmail.org (Postfix) with ESMTP id 4719D1F96F; Tue, 2 Nov 2021 05:48:11 -0400 (EDT) Received: from fethera.tethera.net (fethera.tethera.net [198.245.60.197]) by mail.notmuchmail.org (Postfix) with ESMTP id 21A911F85C for ; Tue, 2 Nov 2021 05:48:08 -0400 (EDT) Received: by fethera.tethera.net (Postfix, from userid 1001) id 7639B5FC42; Tue, 2 Nov 2021 05:48:07 -0400 (EDT) Received: (nullmailer pid 2358363 invoked by uid 1000); Tue, 02 Nov 2021 09:48:06 -0000 From: David Bremner To: Colin Ramsay , notmuch@notmuchmail.org Subject: Re: notmuch_message_remove_tag & std::length_error In-Reply-To: References: Date: Tue, 02 Nov 2021 06:48:06 -0300 Message-ID: <87sfweyjl5.fsf@tethera.net> MIME-Version: 1.0 Message-ID-Hash: NCDJLU2FPB543FBPH62Q2LCSQL6P6D6Q X-Message-ID-Hash: NCDJLU2FPB543FBPH62Q2LCSQL6P6D6Q X-MailFrom: david@tethera.net 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 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: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1635846496; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to: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; bh=DlMYgA4VIS5GGBhF38R4f36VfvLt71QdcBpxMva/u6Y=; b=lO2Di0AwTduYPji+6WYvZGG0kw973Mn5bZLXHQdFH0asNpKssgxd5inwQYeWWJbErj8w1q UBq2YriVveL2y8UXEw7WkLycSXixpLsaUpaDPb/J2e/dhDEWB/nF/SCxWW6DAb70uv0Dw2 Tbq4bYQkx3Txv0XlXcCogWSRiTWOSVbnzh4Y5ScYeFCFIh6Ss6VdQulVM4YNDi3NGOPiL+ akQ/JU9ItmejcIKgB35pu1ZJUWKulM3fwHrLxBQI8wix1XW7vxsCi11Vol28jVogvYPfjo UEw4eKzcG+pu9U8GwcvWI5VDj70jqSUpZG29OP0W+IJnBVkkqjYpFyFv3+++pQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1635846496; a=rsa-sha256; cv=none; b=WyefFXNplIQu2JdDMMghteL5b3rDYIo345T2Inl0UO1WdHgi4I3LKdLJe2i82E4MqNuZ/n 0TFCFvFKFfAOvWEqwLX2qdehu6PImWQ6/WkBYTQ6K6Sdv9wV8gsYUwK+kFskwY8EO6HeuS MZ9s+bpxcY50tJeXp1R7fQsAlWqmiN37Yg24xnJRUG4ywsfFN92J43m3Mf/nSwKY71RGXH emVGpklHTVLGDsSKzqcaF7uA5ymYDoaQKpYWQbnMkDic7JOzwm7qJFplc01NR6koRS3Gdq 4IBDGP1FStUJe23J783wGIVXWUVVftiirWA/n7n9DKq+nz6n/P9pdIQSJeNsaw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; 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: -2.11 Authentication-Results: aspmx1.migadu.com; dkim=none; 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: C318D12FF2 X-Spam-Score: -2.11 X-Migadu-Scanner: scn0.migadu.com X-TUID: k0NHKG634nZz Colin Ramsay writes: > 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? libnotmuch is a C library (ABI wise), so it should never throw exceptions. Alas, bugs happen. Any chance you can reproduce the problem in C? d