--- /dev/null
+Return-Path: <five9a2@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 8B955431FBC\r
+ for <notmuch@notmuchmail.org>; Tue, 24 Nov 2009 12:22:10 -0800 (PST)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\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 JPQ9yYHoV0Bm for <notmuch@notmuchmail.org>;\r
+ Tue, 24 Nov 2009 12:22:10 -0800 (PST)\r
+Received: from mail-bw0-f224.google.com (mail-bw0-f224.google.com\r
+ [209.85.218.224])\r
+ by olra.theworths.org (Postfix) with ESMTP id 36367431FAE\r
+ for <notmuch@notmuchmail.org>; Tue, 24 Nov 2009 12:22:10 -0800 (PST)\r
+Received: by bwz24 with SMTP id 24so5337101bwz.30\r
+ for <notmuch@notmuchmail.org>; Tue, 24 Nov 2009 12:22:08 -0800 (PST)\r
+DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma;\r
+ h=domainkey-signature:received:received:sender:from:to:cc:subject\r
+ :date:message-id:x-mailer:in-reply-to:references;\r
+ bh=3xm/PgJm4QXOP+ATfLmYjGlTPlVqPBwbaOcXPAClmiA=;\r
+ b=Zy2OV+nuiyik/9bUGxwdtkdz1HRkMvQTyRutecVJ8Fo1Cb7gXQbDkvcDytxDhqtXow\r
+ 4c18XsUuP7iwCbaHPsZx2mgA0HRPoc4L3AMheOEV1SICwlNOzUWG1Bqu4FW9/TchnHD6\r
+ 6iPyfy4X5EnPhbEjjfy/nRL28cxp1dSHKPxMg=\r
+DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma;\r
+ h=sender:from:to:cc:subject:date:message-id:x-mailer:in-reply-to\r
+ :references;\r
+ b=Gc9rS2IQEIJX6WdVE/Krh5WRXPCaZOdLs/R+8R5NeX3Rx+TTT7o/ATpl4L9KRB7K1k\r
+ McnWOtoJgvffeCtTHhVCO2zjseOC0CNOp0/KxITRv6tzWEFiR/njljnmQ7pOE+C097/3\r
+ fSpTKIP4zxY4wN2q54vHdjpcqB8giuqv9V3xA=\r
+Received: by 10.204.2.196 with SMTP id 4mr3069078bkk.7.1259094128152;\r
+ Tue, 24 Nov 2009 12:22:08 -0800 (PST)\r
+Received: from localhost.localdomain (vawpc43.ethz.ch [129.132.59.11])\r
+ by mx.google.com with ESMTPS id 21sm7650256fkx.25.2009.11.24.12.22.06\r
+ (version=TLSv1/SSLv3 cipher=RC4-MD5);\r
+ Tue, 24 Nov 2009 12:22:07 -0800 (PST)\r
+Sender: Jed Brown <five9a2@gmail.com>\r
+From: Jed Brown <jed@59A2.org>\r
+To: notmuch@notmuchmail.org\r
+Date: Tue, 24 Nov 2009 21:22:11 +0100\r
+Message-Id: <1259094131-32405-1-git-send-email-jed@59A2.org>\r
+X-Mailer: git-send-email 1.6.5.3\r
+In-Reply-To: <id:1259087712-18844-1-git-send-email-jed@59A2.org>\r
+References: <id:1259087712-18844-1-git-send-email-jed@59A2.org>\r
+Subject: [notmuch] [PATCH] New function\r
+ notmuch-show-kill-ring-save-message-id.\r
+X-BeenThere: notmuch@notmuchmail.org\r
+X-Mailman-Version: 2.1.12\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: Tue, 24 Nov 2009 20:22:10 -0000\r
+\r
+Puts current message ID in the kill ring. This is useful any time you\r
+want to explicitly refer to the message, such as in the body of another\r
+message, through git format-patch, or on IRC.\r
+\r
+It is bound to "C-c i".\r
+\r
+Corrected spelling of function name in commit message, and updated to\r
+apply against HEAD after c1e16435cfe4471c3415d9f625f7230d59c8afb4\r
+\r
+Signed-off-by: Jed Brown <jed@59A2.org>\r
+---\r
+ notmuch.el | 12 ++++++++++++\r
+ 1 files changed, 12 insertions(+), 0 deletions(-)\r
+\r
+diff --git a/notmuch.el b/notmuch.el\r
+index 907df2c..e3e0e06 100644\r
+--- a/notmuch.el\r
++++ b/notmuch.el\r
+@@ -80,6 +80,7 @@\r
+ (define-key map "?" 'describe-mode)\r
+ (define-key map (kbd "TAB") 'notmuch-show-next-button)\r
+ (define-key map (kbd "M-TAB") 'notmuch-show-previous-button)\r
++ (define-key map (kbd "C-c i") 'notmuch-show-kill-ring-save-message-id)\r
+ map)\r
+ "Keymap for \"notmuch show\" buffers.")\r
+ (fset 'notmuch-show-mode-map notmuch-show-mode-map)\r
+@@ -663,6 +664,17 @@ which this thread was originally shown."\r
+ (notmuch-show-markup-message)))\r
+ (notmuch-show-hide-markers))\r
+ \r
++(defun notmuch-show-kill-ring-save-message-id ()\r
++ "Put the current message id in the kill ring.\r
++\r
++This is useful for referencing messages or running external\r
++queries."\r
++ (interactive)\r
++ (let ((message-id (notmuch-show-get-message-id)))\r
++ (kill-new message-id)\r
++ (when (called-interactively-p 'interactive)\r
++ (message "Saved message ID: \"%s\"" message-id))))\r
++\r
+ ;;;###autoload\r
+ (defun notmuch-show-mode ()\r
+ "Major mode for viewing a thread with notmuch.\r
+-- \r
+1.6.5.3\r
+\r