unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
* notmuch-mutt: support for messages that lack Message-ID (v2)
@ 2015-02-09  9:41 Stefano Zacchiroli
  2015-02-09  9:41 ` [PATCH 1/2] notmuch-mutt README: use metacpn.org/* as deps homepages Stefano Zacchiroli
  2015-02-09  9:41 ` [PATCH 2/2] notmuch-mutt: support for messages that lack Message-ID headers Stefano Zacchiroli
  0 siblings, 2 replies; 10+ messages in thread
From: Stefano Zacchiroli @ 2015-02-09  9:41 UTC (permalink / raw)
  To: notmuch; +Cc: zack

Heya, please find attached the second take on adding support for
messages that lack Message-ID to notmuch-mutt. For context see
http://notmuchmail.org/pipermail/notmuch/2015/thread.html#20079

In this new verison of the patch we start computing the SHA1
incrementally, in case no Message-ID will be found. As soon as the
header is over we parse it (using Mail::Header, to properly handle
line breaks). If a Message-ID is found, it is retourned and SHA1
computation on the rest of the message is aborted. If no Message-ID is
found, SHA1 computation continues, and is used in the end to
synthesize a fake Message-ID in the same way that notmuch itself would
to.

Note that, contrary to the previous version, no changes of the Debian
packaging are needed this time: Mail::Header is contained in the same
package of Mail::Internet that notmuch-mutt was already using, and
Digest::SHA is shipped with Perl itself.

Please consider applying this patch to notmuch's master branch.

Cheers.

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2015-02-16 13:02 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-02-09  9:41 notmuch-mutt: support for messages that lack Message-ID (v2) Stefano Zacchiroli
2015-02-09  9:41 ` [PATCH 1/2] notmuch-mutt README: use metacpn.org/* as deps homepages Stefano Zacchiroli
2015-02-09  9:41 ` [PATCH 2/2] notmuch-mutt: support for messages that lack Message-ID headers Stefano Zacchiroli
2015-02-09 14:31   ` Tomi Ollila
2015-02-15 12:39     ` notmuch-mutt: support for messages that lack Message-ID headers (v3) Stefano Zacchiroli
2015-02-15 12:39       ` [PATCH 1/3] notmuch-mutt: bump copyright year Stefano Zacchiroli
2015-02-15 12:39       ` [PATCH 2/3] notmuch-mutt README: use metacpn.org/* as deps homepages Stefano Zacchiroli
2015-02-15 12:39       ` [PATCH 3/3] notmuch-mutt: support for messages that lack Message-ID headers Stefano Zacchiroli
2015-02-15 16:46       ` notmuch-mutt: support for messages that lack Message-ID headers (v3) Tomi Ollila
2015-02-16 13:00       ` David Bremner

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).