1 Return-Path: <sojkam1@fel.cvut.cz>
\r
2 X-Original-To: notmuch@notmuchmail.org
\r
3 Delivered-To: notmuch@notmuchmail.org
\r
4 Received: from localhost (localhost [127.0.0.1])
\r
5 by olra.theworths.org (Postfix) with ESMTP id 94A8B40D14F
\r
6 for <notmuch@notmuchmail.org>; Fri, 22 Oct 2010 02:28:32 -0700 (PDT)
\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org
\r
11 X-Spam-Status: No, score=-1.9 tagged_above=-999 required=5
\r
12 tests=[BAYES_00=-1.9] autolearn=ham
\r
13 Received: from olra.theworths.org ([127.0.0.1])
\r
14 by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)
\r
15 with ESMTP id 1lp1RgW3-i91 for <notmuch@notmuchmail.org>;
\r
16 Fri, 22 Oct 2010 02:28:18 -0700 (PDT)
\r
17 Received: from max.feld.cvut.cz (max.feld.cvut.cz [147.32.192.36])
\r
18 by olra.theworths.org (Postfix) with ESMTP id EA6C640D14A
\r
19 for <notmuch@notmuchmail.org>; Fri, 22 Oct 2010 02:28:17 -0700 (PDT)
\r
20 Received: from localhost (unknown [192.168.200.4])
\r
21 by max.feld.cvut.cz (Postfix) with ESMTP id E734019F33B2;
\r
22 Fri, 22 Oct 2010 11:28:16 +0200 (CEST)
\r
23 X-Virus-Scanned: IMAP AMAVIS
\r
24 Received: from max.feld.cvut.cz ([192.168.200.1])
\r
25 by localhost (styx.feld.cvut.cz [192.168.200.4]) (amavisd-new,
\r
27 with ESMTP id sEk6WFbQD3Wa; Fri, 22 Oct 2010 11:28:15 +0200 (CEST)
\r
28 Received: from imap.feld.cvut.cz (imap.feld.cvut.cz [147.32.192.34])
\r
29 by max.feld.cvut.cz (Postfix) with ESMTP id 07D3419F33B5;
\r
30 Fri, 22 Oct 2010 11:28:14 +0200 (CEST)
\r
31 Received: from steelpick.2x.cz (note-sojka.felk.cvut.cz [147.32.86.30])
\r
32 (Authenticated sender: sojkam1)
\r
33 by imap.feld.cvut.cz (Postfix) with ESMTPSA id 0530AFA008;
\r
34 Fri, 22 Oct 2010 11:28:14 +0200 (CEST)
\r
35 Received: from wsh by steelpick.2x.cz with local (Exim 4.72)
\r
36 (envelope-from <sojkam1@fel.cvut.cz>)
\r
37 id 1P9Dv3-0006ox-RZ; Fri, 22 Oct 2010 11:28:13 +0200
\r
38 From: Michal Sojka <sojkam1@fel.cvut.cz>
\r
39 To: notmuch@notmuchmail.org
\r
40 Subject: [PATCH 0/2] Notmuch cat v2
\r
41 Date: Fri, 22 Oct 2010 11:28:02 +0200
\r
42 Message-Id: <1287739684-26188-1-git-send-email-sojkam1@fel.cvut.cz>
\r
43 X-Mailer: git-send-email 1.7.2.3
\r
44 X-BeenThere: notmuch@notmuchmail.org
\r
45 X-Mailman-Version: 2.1.13
\r
47 List-Id: "Use and development of the notmuch mail system."
\r
48 <notmuch.notmuchmail.org>
\r
49 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,
\r
50 <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>
\r
51 List-Archive: <http://notmuchmail.org/pipermail/notmuch>
\r
52 List-Post: <mailto:notmuch@notmuchmail.org>
\r
53 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>
\r
54 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,
\r
55 <mailto:notmuch-request@notmuchmail.org?subject=subscribe>
\r
56 X-List-Received-Date: Fri, 22 Oct 2010 09:28:32 -0000
\r
60 this is my second attempt to implement notmuch cat subcommand (the
\r
61 first version was posted in
\r
62 id:1271747793-17507-1-git-send-email-sojkam1@fel.cvut.cz). This
\r
63 subcommand outputs the given message to stdout.
\r
65 In this version the arguments are classical notmuch search terms and
\r
66 not a filename as in the previous version. Emacs interface then uses
\r
67 message-id to retrieve the message.
\r
69 Some people suggested that cat could be implemented as a special
\r
70 format of show subcommand. That would be possible, but it seems that
\r
71 show command always constructs threads form the messages which means
\r
72 that is executes several database queries. I consider this as
\r
73 unnecessary overhead and for that reason cat is a separate subcommand.
\r
76 Add 'cat' subcommand
\r
77 emacs: Access raw messages via cat subcommand
\r
79 emacs/notmuch-show.el | 14 +++++---
\r
80 notmuch-client.h | 3 ++
\r
81 notmuch-show.c | 83 +++++++++++++++++++++++++++++++++++++++++++++++++
\r
84 test/cat | 38 ++++++++++++++++++++++
\r
85 test/notmuch-test | 2 +-
\r
86 7 files changed, 142 insertions(+), 6 deletions(-)
\r
87 create mode 100755 test/cat
\r