--- /dev/null
+Return-Path: <alpine.art.de@gmail.com>\r
+X-Original-To: notmuch@notmuchmail.org\r
+Delivered-To: notmuch@notmuchmail.org\r
+Received: from localhost (localhost [127.0.0.1])\r
+ by olra.theworths.org (Postfix) with ESMTP id 1964D431FAF\r
+ for <notmuch@notmuchmail.org>; Mon, 20 Oct 2014 12:38:50 -0700 (PDT)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: -0.799\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=-0.799 tagged_above=-999 required=5\r
+ tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1,\r
+ FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled\r
+Received: from olra.theworths.org ([127.0.0.1])\r
+ by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
+ with ESMTP id 8bgh4p65-rnO for <notmuch@notmuchmail.org>;\r
+ Mon, 20 Oct 2014 12:38:46 -0700 (PDT)\r
+Received: from mail-la0-f53.google.com (mail-la0-f53.google.com\r
+ [209.85.215.53]) (using TLSv1 with cipher RC4-SHA (128/128 bits))\r
+ (No client certificate requested)\r
+ by olra.theworths.org (Postfix) with ESMTPS id E5B07431FAE\r
+ for <notmuch@notmuchmail.org>; Mon, 20 Oct 2014 12:38:45 -0700 (PDT)\r
+Received: by mail-la0-f53.google.com with SMTP id gq15so4509572lab.40\r
+ for <notmuch@notmuchmail.org>; Mon, 20 Oct 2014 12:38:44 -0700 (PDT)\r
+DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;\r
+ h=date:from:to:cc:message-id:in-reply-to:references:subject\r
+ :mime-version:content-type:content-transfer-encoding;\r
+ bh=EAdjSH6sKg9Em1RgkXMkaeF4N9EK/M3HIywcQGODp3U=;\r
+ b=hFw7rl2fWtnE2qar1xogBpJbBba/dHOYUWXOzmU31+hVN5ERH/CiRDoMgQz2aBi4UK\r
+ OTbSDa+9J0DUTNsQLmj6IuKdhVMekJuPWvX/skOASdRIwHxRB4CbWcXJlflpZj+O7NEB\r
+ N1bV5+GCNxshXwZ7RNOomxruJe+YoFUDf1QQZE71hwaBduzADRvBoPgXg7Hnoqpw6l7f\r
+ w3RXXLW27iN/UdQnNG/OfPNGNIXG+2+4+lmFWwPnP8iPIFVMB3P7TfnToejZuSGYoLOR\r
+ B8F/5vgQSsNFFkjtPGMQnqkJ/Xw85uO5zwm/TR8KKEYvN57pLUdBSFI4jt5BbzAQUzn9\r
+ kECw==\r
+X-Received: by 10.152.88.70 with SMTP id be6mr29904181lab.72.1413833924423;\r
+ Mon, 20 Oct 2014 12:38:44 -0700 (PDT)\r
+Received: from localhost (p5B00FFDE.dip0.t-ipconnect.de. [91.0.255.222])\r
+ by mx.google.com with ESMTPSA id u2sm2193280lbw.35.2014.10.20.12.38.42\r
+ for <multiple recipients>\r
+ (version=TLSv1.2 cipher=RC4-SHA bits=128/128);\r
+ Mon, 20 Oct 2014 12:38:43 -0700 (PDT)\r
+Date: Mon, 20 Oct 2014 21:38:54 +0200\r
+From: Franz Fellner <alpine.art.de@gmail.com>\r
+To: Tomi Ollila <tomi.ollila@iki.fi>, \r
+ Tomi Ollila <tomi.ollila@iki.fi>\r
+Message-ID: <544564ceae3dc_25b371be984d@TP_L520.notmuch>\r
+In-Reply-To: <m2vbner283.fsf@guru.guru-group.fi>\r
+References: <1412281423-22441-1-git-send-email-imain@stemwinder.org>\r
+ <20141010114457.GG28601@TP_L520.localdomain>\r
+ <543822f73d3fd_46ad163fe88cd@ovo.mains.priv.notmuch>\r
+ <20141011142943.GD23373@TP_L520.localdomain>\r
+ <543ecc23bb98_2c291569e8c17@ovo.mains.priv.notmuch>\r
+ <20141017181422.GG20696@TP_L520.localdomain>\r
+ <m2vbner283.fsf@guru.guru-group.fi>\r
+Subject: Re: [PATCH] VIM: Add URI handling\r
+Mime-Version: 1.0\r
+Content-Type: text/plain;\r
+ charset=utf-8\r
+Content-Transfer-Encoding: 7bit\r
+Cc: notmuch@notmuchmail.org\r
+X-BeenThere: notmuch@notmuchmail.org\r
+X-Mailman-Version: 2.1.13\r
+Precedence: list\r
+List-Id: "Use and development of the notmuch mail system."\r
+ <notmuch.notmuchmail.org>\r
+List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
+ <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
+List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
+List-Post: <mailto:notmuch@notmuchmail.org>\r
+List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
+List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
+ <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
+X-List-Received-Date: Mon, 20 Oct 2014 19:38:50 -0000\r
+\r
+Tomi Ollila wrote:\r
+> On Fri, Oct 17 2014, Franz Fellner <alpine.art.de@gmail.com> wrote:\r
+> \r
+> > On Wed, 15 Oct 2014 12:33:55 -0700, Ian Main <imain@stemwinder.org> wrote:\r
+> >> Franz Fellner wrote:\r
+> >> > Here is a working implementation.\r
+> >> > Please review carefully as I only can simulate ruby and vimscript\r
+> >> > knowledge from what I see in notmuch.vim sourcefile and quick\r
+> >> > googling.\r
+> >> \r
+> >> Yes, this works nicely. Thanks!\r
+> >> \r
+> >> I do notice however that this is against the github plugin repo (I think)?\r
+> > Yes, that's right.\r
+> > I forked the notmuch repo on github and incorporated your patches.\r
+> > Already made a mistake while applying one of your patches...\r
+> > https://github.com/ff2000/notmuch\r
+> > (Hope everythin is fine now)\r
+> > \r
+> > commit cb757e9e438341a7bc6d2cfec4de7bdcc85946ea\r
+> > Author: Franz Fellner <alpine.art.de@gmail.com>\r
+> > Date: Fri Oct 17 11:19:41 2014 +0200\r
+> >\r
+> > VIM: Add MsgID to supported URIs\r
+> \r
+> Code-wise this patch looks good -- although I am not entirely sure what id\r
+> does -- I expect it to handle id:... links...\r
+Yes, that's what it should do.\r
+\r
+> This email applies with git am (on top of Ian's) but the commit message has\r
+> quite a few lines of cruft -- I'd like to see a commit message what\r
+> explains what this change do ( the term 'MsgID' seems to be some vim client\r
+> internal (subclass in URI class ?) which IMO should be better commented in\r
+> this commit message.\r
+MsgID was just a short name for message-id, and I am used to CamelCase...\r
+\r
+VIM: Add support to open messages specified by their message-id in notmuch-show.\r
+\r
+Does that make more sense?\r
+\r
+> Tomi\r
+> \r
+> >\r
+> > diff --git a/vim/notmuch.vim b/vim/notmuch.vim\r
+> > index 6287cf6..30e1876 100644\r
+> > --- a/vim/notmuch.vim\r
+> > +++ b/vim/notmuch.vim\r
+> > @@ -268,6 +268,14 @@ ruby << EOF\r
+> > if uri.class == URI::MailTo\r
+> > vim_puts("Composing new email to #{uri.to}.")\r
+> > VIM::command("call s:compose('#{uri.to}')")\r
+> > + elsif uri.class == URI::MsgID\r
+> > + msg = $curbuf.message(uri.opaque)\r
+> > + if !msg\r
+> > + vim_puts("Message not found in NotMuch database: #{uri.to_s}")\r
+> > + else\r
+> > + vim_puts("Opening message #{msg.message_id} in thread #{msg.thread_id}.")\r
+> > + VIM::command("call s:show('thread:#{msg.thread_id}', '#{msg.message_id}')")\r
+> > + end\r
+> > else\r
+> > vim_puts("Opening #{uri.to_s}.")\r
+> > cmd = VIM::evaluate('g:notmuch_open_uri')\r
+> > @@ -428,11 +436,12 @@ endfunction\r
+> > \r
+> > "" main\r
+> > \r
+> > -function! s:show(thread_id)\r
+> > +function! s:show(thread_id, msg_id)\r
+> > call s:new_buffer('show')\r
+> > setlocal modifiable\r
+> > ruby << EOF\r
+> > thread_id = VIM::evaluate('a:thread_id')\r
+> > + msg_id = VIM::evaluate('a:msg_id')\r
+> > $cur_thread = thread_id\r
+> > $messages.clear\r
+> > $curbuf.render do |b|\r
+> > @@ -464,6 +473,9 @@ ruby << EOF\r
+> > end\r
+> > b << ""\r
+> > nm_m.end = b.count\r
+> > + if !msg_id.empty? and nm_m.message_id == msg_id\r
+> > + VIM::command("normal #{nm_m.start}zt")\r
+> > + end\r
+> > end\r
+> > b.delete(b.count)\r
+> > end\r
+> > @@ -486,7 +498,7 @@ ruby << EOF\r
+> > when 1; $cur_filter = nil\r
+> > when 2; $cur_filter = $cur_search\r
+> > end\r
+> > - VIM::command("call s:show('#{id}')")\r
+> > + VIM::command("call s:show('#{id}', '')")\r
+> > EOF\r
+> > endfunction\r
+> > \r
+> > @@ -910,6 +922,10 @@ ruby << EOF\r
+> > q\r
+> > end\r
+> > \r
+> > + def message(id)\r
+> > + @db.find_message(id)\r
+> > + end\r
+> > +\r
+> > def close\r
+> > @queries.delete_if { |q| ! q.destroy! }\r
+> > @db.close\r
+> > @@ -930,6 +946,13 @@ ruby << EOF\r
+> > end\r
+> > end\r
+> > \r
+> > + module URI\r
+> > + class MsgID < Generic\r
+> > + end\r
+> > +\r
+> > + @@schemes['ID'] = MsgID\r
+> > + end\r
+> > +\r
+> > class Message\r
+> > attr_accessor :start, :body_start, :end\r
+> > attr_reader :message_id, :filename, :mail\r
+> > _______________________________________________\r
+> > notmuch mailing list\r
+> > notmuch@notmuchmail.org\r
+> > http://notmuchmail.org/mailman/listinfo/notmuch\r
+\r
+\r