<feed xmlns='http://www.w3.org/2005/Atom'>
<title>notmuch/contrib/notmuch-mutt, branch debian/stretch</title>
<subtitle>thread-based email index, search, and tagging</subtitle>
<id>https://git.notmuchmail.org/git/notmuch/atom?h=debian%2Fstretch</id>
<link rel='self' href='https://git.notmuchmail.org/git/notmuch/atom?h=debian%2Fstretch'/>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/'/>
<updated>2016-06-05T11:32:17Z</updated>
<entry>
<title>Use https instead of http where possible</title>
<updated>2016-06-05T11:32:17Z</updated>
<author>
<name>Daniel Kahn Gillmor</name>
<email>dkg@fifthhorseman.net</email>
</author>
<published>2016-06-02T16:26:14Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=6a833a6e83865f6999707cc30768d07e1351c2cb'/>
<id>urn:sha1:6a833a6e83865f6999707cc30768d07e1351c2cb</id>
<content type='text'>
Many of the external links found in the notmuch source can be resolved
using https instead of http.  This changeset addresses as many as i
could find, without touching the e-mail corpus or expected outputs
found in tests.
</content>
</entry>
<entry>
<title>notmuch-mutt: use env to locate perl for increased portability</title>
<updated>2016-04-30T10:34:00Z</updated>
<author>
<name>Stefano Zacchiroli</name>
<email>zack@upsilon.cc</email>
</author>
<published>2016-04-21T18:10:25Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=e3e03fb718de9790bc9b7a78210f42559bff24e5'/>
<id>urn:sha1:e3e03fb718de9790bc9b7a78210f42559bff24e5</id>
<content type='text'>
Note: this patch drops -w from the shebang line, but we still have
"use warnings" in the script, which is superior anyhow.

Thanks Andreas Tolfsen for the suggestion.
</content>
</entry>
<entry>
<title>notmuch-mutt: fix xargs/ln usage for OpenBSD compatibility</title>
<updated>2015-05-04T06:04:38Z</updated>
<author>
<name>Jack Peirce</name>
<email>JPeirce@sourcecode.com</email>
</author>
<published>2015-05-01T08:32:05Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=1ad02d06b52fce6ab828ebefca9bdbfc269e9360'/>
<id>urn:sha1:1ad02d06b52fce6ab828ebefca9bdbfc269e9360</id>
<content type='text'>
- xargs: use -r flag instead of --no-run-if-empty
- ln: use -I flag/3rd form of ln command instead of -t flag/4th form

Signed-off-by: Stefano Zacchiroli &lt;zack@upsilon.cc&gt;
</content>
</entry>
<entry>
<title>notmuch-mutt: support for messages that lack Message-ID headers</title>
<updated>2015-02-16T12:58:13Z</updated>
<author>
<name>Stefano Zacchiroli</name>
<email>zack@upsilon.cc</email>
</author>
<published>2015-02-15T12:39:08Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=1722ea2c95865cb20cc2578894eca2cdaddc1d7a'/>
<id>urn:sha1:1722ea2c95865cb20cc2578894eca2cdaddc1d7a</id>
<content type='text'>
For those messages, compute a synthetic Message-ID based on the SHA1
of the whole message, in the same way that notmuch would do. See:
http://git.notmuchmail.org/git/notmuch/blob/HEAD:/lib/sha1.c

To do the above, rewrite get_message_id() to accumulate header lines,
parse them to check for Message-ID, and fallback to SHA1 computation
if it is not present.

Thanks to:
- Jan N. Klug for preliminary versions of this patch
- Tomi Ollila for suggesting an elegant implementation
</content>
</entry>
<entry>
<title>notmuch-mutt README: use metacpn.org/* as deps homepages</title>
<updated>2015-02-16T12:57:49Z</updated>
<author>
<name>Stefano Zacchiroli</name>
<email>zack@upsilon.cc</email>
</author>
<published>2015-02-15T12:39:07Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=02b554c89616154cbec153cb3938d43d51aae5ad'/>
<id>urn:sha1:02b554c89616154cbec153cb3938d43d51aae5ad</id>
<content type='text'>
</content>
</entry>
<entry>
<title>notmuch-mutt: bump copyright year</title>
<updated>2015-02-16T12:57:42Z</updated>
<author>
<name>Stefano Zacchiroli</name>
<email>zack@upsilon.cc</email>
</author>
<published>2015-02-15T12:39:06Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=f755fd1bdaa34907d7c21f80a01fccde85e381f3'/>
<id>urn:sha1:f755fd1bdaa34907d7c21f80a01fccde85e381f3</id>
<content type='text'>
</content>
</entry>
<entry>
<title>notmuch-mutt: Fix tagging issues</title>
<updated>2013-09-09T01:47:51Z</updated>
<author>
<name>Kevin J. McCarthy</name>
<email>kevin@8t8.us</email>
</author>
<published>2013-09-07T17:07:57Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=f3dc5be6f2c870ca9edf7d60a8c7b80984c37bbf'/>
<id>urn:sha1:f3dc5be6f2c870ca9edf7d60a8c7b80984c37bbf</id>
<content type='text'>
This patch fixes three issues with "notmuch-mutt tag":

1. The message_id was not shell quoted.
   Thanks to Jason Miller for the bug report and patch.

2. The tags passed into tag_action() were not being properly quoted.
   The "join before shell_quote" was combining multiple tags into a
   single argument to notmuch tag: '+one -two -three' instead of
   '+one' '-two' '-three'.

3. A "--" was added between the tags and search-term as shown in the
   current notmuch-tag man page.

Thanks to Tomi Ollila for suggesting the simple fix of using
the list form of system(), which bypasses the shell.
</content>
</entry>
<entry>
<title>notmuch-mutt: use notmuch --duplicate flag</title>
<updated>2013-09-09T01:41:38Z</updated>
<author>
<name>Kevin McCarthy</name>
<email>kevin@8t8.us</email>
</author>
<published>2013-09-05T02:05:50Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=f354b90d5e9a250818c4820c64b64c7fe4facbbf'/>
<id>urn:sha1:f354b90d5e9a250818c4820c64b64c7fe4facbbf</id>
<content type='text'>
Change notmuch-mutt to use the new --duplicate=1 flag for duplicate
removal.  This will remove duplicates based on message-id at the
notmuch level.  Previously we were using fdupes or generating sha sums
after the search.

This version will be faster, but will enable the possibility of hiding
search results due to accidental/malicious duplicate message-ids.
</content>
</entry>
<entry>
<title>notmuch-mutt: improve robustness of mutt macros</title>
<updated>2013-02-16T15:56:55Z</updated>
<author>
<name>Kevin J. McCarthy</name>
<email>kevin@8t8.us</email>
</author>
<published>2013-02-15T00:12:47Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=c34effad9a65c2f2c6d4d25c508c201bad7a07f6'/>
<id>urn:sha1:c34effad9a65c2f2c6d4d25c508c201bad7a07f6</id>
<content type='text'>
Details:
- $pipe_decode is turned off, to prevent message-id from being
  filtered out by "ignore" settings in the muttrc.
- Original values for $pipe_decode and $wait_key are saved and restored.
- The macros, being much longer now, are line wrapped for improved
  readability.
</content>
</entry>
<entry>
<title>notmuch-mutt: Use of uninitialized value.</title>
<updated>2013-02-16T15:56:40Z</updated>
<author>
<name>Stefano Zacchiroli</name>
<email>zack@upsilon.cc</email>
</author>
<published>2013-02-14T08:37:13Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=9b98e9bcbfe546a6e919408e1ada6d85316e6a94'/>
<id>urn:sha1:9b98e9bcbfe546a6e919408e1ada6d85316e6a94</id>
<content type='text'>
On Thu, Feb 14, 2013 at 12:36:58AM +0100, Profpatsch wrote:
&gt; On 13-02-13 02:35pm, Kevin J. McCarthy wrote:
&gt; &gt; A more likely idea is to check whether you have $pipe_decode set.
&gt;
&gt; BRILLIANT!
&gt; So much for copying a basic rc from someone else.
&gt; Of course, that was it and I’m officially an idiot.

Neat, thanks Kevin for debugging the issue down to $pipe_decode (which
I've never used, mutt never stops to amaze me :-)).

&gt; And apparently Mail::Internet errors out if there is no Message-ID.
&gt; (Which mentioned in the docs at CPAN…)
&gt;
&gt; Mystery solved.

Right, but still a more graceful failure model would be nice.

Please find attached a patch that in such cases should 1) give a
supposedly nice error message explaining what's going on and 2) empty
the results dir to avoid showing you unrelated results. It works for me.
But extra checking never hurts, in particular for the tag action, which
I don't personally use.

I guess it would also be nice to actually disable $pipe_decode in the
relevant Mutt macros, but I'm not sure about to do that without
interfering with user desired configuration. Kevin: do you know if there
is a common Mutt trick to store the value of a variable before changing
it, and restoring it a posteriori?  More isolation for this kind of
things in Mutt would definitely be welcome...

Cheers.
--
Stefano Zacchiroli  . . . . . . .  zack@upsilon.cc . . . . o . . . o . o
Maître de conférences . . . . . http://upsilon.cc/zack . . . o . . . o o
Debian Project Leader . . . . . . @zack on identi.ca . . o o o . . . o .
« the first rule of tautology club is the first rule of tautology club »

From b67ab95855ce7d279d8c0b3ddcbc20e679afc70b Mon Sep 17 00:00:00 2001
From: Stefano Zacchiroli &lt;zack@upsilon.cc&gt;
Date: Thu, 14 Feb 2013 09:31:37 +0100
Subject: [PATCH] notmuch-mutt: more graceful handling of missing Message-Id
 errors

in particular:
- the "thread" action would print an error and empty results dir
- the "tag action would print an error
</content>
</entry>
</feed>
