Re: [PATCH 1/2] Add 'cat' subcommand
authorMichal Sojka <sojkam1@fel.cvut.cz>
Tue, 20 Apr 2010 10:14:56 +0000 (12:14 +0200)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:36:44 +0000 (09:36 -0800)
7e/880b9d1a36b8b9a040debf887a12d1dfd81a05 [new file with mode: 0644]

diff --git a/7e/880b9d1a36b8b9a040debf887a12d1dfd81a05 b/7e/880b9d1a36b8b9a040debf887a12d1dfd81a05
new file mode 100644 (file)
index 0000000..ce9d430
--- /dev/null
@@ -0,0 +1,93 @@
+Return-Path: <sojkam1@fel.cvut.cz>\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 92CD74196F2\r
+       for <notmuch@notmuchmail.org>; Tue, 20 Apr 2010 03:15:02 -0700 (PDT)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: -1.9\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=-1.9 tagged_above=-999 required=5\r
+       tests=[BAYES_00=-1.9] autolearn=ham\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 J0IT4Vq0YuBx for <notmuch@notmuchmail.org>;\r
+       Tue, 20 Apr 2010 03:15:01 -0700 (PDT)\r
+Received: from max.feld.cvut.cz (max.feld.cvut.cz [147.32.192.36])\r
+       by olra.theworths.org (Postfix) with ESMTP id 18AB6431FC1\r
+       for <notmuch@notmuchmail.org>; Tue, 20 Apr 2010 03:15:01 -0700 (PDT)\r
+Received: from localhost (unknown [192.168.200.4])\r
+       by max.feld.cvut.cz (Postfix) with ESMTP id EC6AC19F32EB;\r
+       Tue, 20 Apr 2010 12:14:59 +0200 (CEST)\r
+X-Virus-Scanned: IMAP AMAVIS\r
+Received: from max.feld.cvut.cz ([192.168.200.1])\r
+       by localhost (styx.feld.cvut.cz [192.168.200.4]) (amavisd-new,\r
+       port 10044)\r
+       with ESMTP id jG9IXEyK+kR0; Tue, 20 Apr 2010 12:14:58 +0200 (CEST)\r
+Received: from imap.feld.cvut.cz (imap.feld.cvut.cz [147.32.192.34])\r
+       by max.feld.cvut.cz (Postfix) with ESMTP id CDAE919F32EA;\r
+       Tue, 20 Apr 2010 12:14:57 +0200 (CEST)\r
+Received: from [147.32.86.30] (k335-30.felk.cvut.cz [147.32.86.30])\r
+       (Authenticated sender: sojkam1)\r
+       by imap.feld.cvut.cz (Postfix) with ESMTPSA id 69940FA003;\r
+       Tue, 20 Apr 2010 12:14:57 +0200 (CEST)\r
+Message-ID: <4BCD7EA0.3080505@fel.cvut.cz>\r
+Date: Tue, 20 Apr 2010 12:14:56 +0200\r
+From: Michal Sojka <sojkam1@fel.cvut.cz>\r
+User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US;\r
+       rv:1.9.1.9) Gecko/20100411 Icedove/3.0.4\r
+MIME-Version: 1.0\r
+To: Sebastian Spaeth <Sebastian@SSpaeth.de>\r
+Subject: Re: [PATCH 1/2] Add 'cat' subcommand\r
+References: <1271747793-17507-1-git-send-email-sojkam1@fel.cvut.cz>\r
+       <87pr1u7fnu.fsf@ut.hh.sledj.net> <87fx2qmtok.fsf@SSpaeth.de>\r
+In-Reply-To: <87fx2qmtok.fsf@SSpaeth.de>\r
+Content-Type: text/plain; charset=ISO-8859-1; format=flowed\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: Tue, 20 Apr 2010 10:15:02 -0000\r
+\r
+On 20.4.2010 09:21, David Edmondson wrote:\r
+ > On Tue, 20 Apr 2010 09:16:32 +0200, Michal Sojka<sojkam1@fel.cvut.cz> \r
+  wrote:\r
+ >> This command dumps a raw message identified by a filename to the\r
+ >> standard output. It allows MUAs to access the messages for piping,\r
+ >> attachment manipulation, etc. in the same way as it is done in\r
+ >> notmuch-show-mode (through notmuch show subcommand). This will simplify\r
+ >> the MUAs when they need to operate with a remote database.\r
+ >\r
+ > I'm puzzled why you chose to pass a filename as the argument to 'cat'\r
+ > rather than a message id (id:foo@bar.com)?\r
+\r
+The reason is that I want be able to distinguish between several \r
+messages with the same id. Consider a message sent to a list. One copy \r
+is stored in your sent folder and one in another folder. You may want to \r
+investigate the Received headers the latter message. You would not be \r
+happy if, after pressing 'V', notmuch shows you the message in sent \r
+folder without any headers.\r
+\r
+The same holds for pipe command. I think that the message you pipe to \r
+some command should be exactly the same you see in your client.\r
+\r
+On 20.4.2010 10:09, Sebastian Spaeth wrote:\r
+> I agree, especially as some people want to introduce abstract mailstores\r
+> which might not even have the concept of a file name :).\r
+\r
+OK, maybe file name is not the proper name for it :-). In my abstract \r
+mail stores, I use the "file name" just as an unique identifier of the \r
+message.\r
+\r
+Michal\r