From: Jeremy Nickurak <not-much@trk.nickurak.ca>
To: notmuch@notmuchmail.org
Subject: Re: [ANNOUNCE] mutt with notmuch support
Date: Mon, 9 Jan 2012 16:26:18 -0700 [thread overview]
Message-ID: <CA+eQo_2pE9J-8PwJfiU1XhxO=L5qijb_9L7imzOmApq9bg3QXw@mail.gmail.com> (raw)
In-Reply-To: <20120103184546.GB27894@fernseed.info>
FWIW, here's the patch I ended up using to play with this:
diff --git a/mutt_notmuch.c b/mutt_notmuch.c
index 2f21407..a07b1ba 100644
--- a/mutt_notmuch.c
+++ b/mutt_notmuch.c
@@ -636,11 +636,15 @@ char *nm_uri_from_query(CONTEXT *ctx, char *buf,
size_t bufsz)
static notmuch_message_t *get_nm_message(notmuch_database_t *db, HEADER *hdr)
{
notmuch_message_t *msg;
+ notmuch_status_t r;
+
char *id = nm_header_get_id(hdr);
dprint(2, (debugfile, "nm: find message (%s)\n", id));
- msg = id && db ? notmuch_database_find_message(db, id) : NULL;
+ if (id && db) {
+ r = notmuch_database_find_message(db, id, &msg);
+ }
FREE(&id);
return msg;
next prev parent reply other threads:[~2012-01-09 23:26 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-01-03 12:39 [ANNOUNCE] mutt with notmuch support Karel Zak
2012-01-03 14:46 ` Tim Gray
2012-01-03 18:45 ` Darren McGuicken
2012-01-03 19:59 ` Karel Zak
2012-01-03 21:17 ` Jameson Graef Rollins
2012-01-03 22:18 ` Darren McGuicken
2012-01-03 22:11 ` Darren McGuicken
2012-01-04 18:07 ` Jameson Graef Rollins
2012-01-05 14:44 ` Tim Gray
2012-01-09 23:26 ` Jeremy Nickurak [this message]
2012-01-03 19:06 ` Xavier Maillard
2012-01-03 23:31 ` Jan Pobrislo
2012-02-27 8:09 ` Karel Zak
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://notmuchmail.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CA+eQo_2pE9J-8PwJfiU1XhxO=L5qijb_9L7imzOmApq9bg3QXw@mail.gmail.com' \
--to=not-much@trk.nickurak.ca \
--cc=notmuch@notmuchmail.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://yhetil.org/notmuch.git/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).