Re: notmuch_message_remove_tag & std::length_error

Subject: Re: notmuch_message_remove_tag & std::length_error

Date: Tue, 02 Nov 2021 06:48:06 -0300

To: Colin Ramsay,


From: David Bremner

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?

notmuch mailing list --
To unsubscribe send an email to