1 Return-Path: <vasile@softwarefreedom.org>
\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 2FCE5431FB6
\r
6 for <notmuch@notmuchmail.org>; Tue, 1 Mar 2011 13:01:00 -0800 (PST)
\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org
\r
11 X-Spam-Status: No, score=0 tagged_above=-999 required=5 tests=[none]
\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 ETdb0ga8ph65 for <notmuch@notmuchmail.org>;
\r
16 Tue, 1 Mar 2011 13:00:59 -0800 (PST)
\r
17 X-Greylist: delayed 385 seconds by postgrey-1.32 at olra;
\r
18 Tue, 01 Mar 2011 13:00:59 PST
\r
19 Received: from mail.sflc.info (mail.sflc.info [216.27.154.199])
\r
20 (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits))
\r
21 (No client certificate requested)
\r
22 by olra.theworths.org (Postfix) with ESMTPS id 2D942431FB5
\r
23 for <notmuch@notmuchmail.org>; Tue, 1 Mar 2011 13:00:59 -0800 (PST)
\r
24 Received: from localhost (unknown [10.2.67.174])
\r
25 by mail.sflc.info (Postfix) with ESMTPSA id B04C7B4C10C
\r
26 for <notmuch@notmuchmail.org>; Tue, 1 Mar 2011 20:54:02 +0000 (UTC)
\r
27 From: James Vasile <james@hackervisions.org>
\r
28 To: notmuch <notmuch@notmuchmail.org>
\r
30 User-Agent: Notmuch/0.5-185-g854ab96 (http://notmuchmail.org) Emacs/23.2.1
\r
31 (x86_64-pc-linux-gnu)
\r
32 Date: Tue, 01 Mar 2011 15:54:32 -0500
\r
33 Message-ID: <87d3mak1dj.fsf@softwarefreedom.org>
\r
35 Content-Type: text/plain; charset=us-ascii
\r
36 X-BeenThere: notmuch@notmuchmail.org
\r
37 X-Mailman-Version: 2.1.13
\r
39 List-Id: "Use and development of the notmuch mail system."
\r
40 <notmuch.notmuchmail.org>
\r
41 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,
\r
42 <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>
\r
43 List-Archive: <http://notmuchmail.org/pipermail/notmuch>
\r
44 List-Post: <mailto:notmuch@notmuchmail.org>
\r
45 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>
\r
46 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,
\r
47 <mailto:notmuch-request@notmuchmail.org?subject=subscribe>
\r
48 X-List-Received-Date: Tue, 01 Mar 2011 21:01:00 -0000
\r
50 Sometimes I want to send a colleague a bunch of emails (for example, all
\r
51 the emails I've tagged todo or all the emails from an awesome
\r
52 contributor. Although notmuch usually speaks the language of maildirs,
\r
53 I find mboxes most convenient for attaching to emails. Their tools can
\r
54 usually handle it well.
\r
56 I've put a bit of elisp and python up:
\r
57 https://github.com/jvasile/notmuch2mbox
\r
59 The python's help screen:
\r
62 > notmuch2mbox.py [options] [search terms]
\r
64 > This program uses notmuch to search for the search terms, then outputs
\r
65 > any found emails in mbox format.
\r
69 > -h, --help show this help message and exit
\r
70 > -n NOTMUCH, --notmuch=NOTMUCH
\r
71 > Path to notmuch binary.
\r
72 > -o OUTFILE, --outfile=OUTFILE
\r
73 > Write mbox to specified path instead of stdout
\r
75 The python script does a search and spits out an mbox containing
\r
76 anything it finds in that search. The emacs function performs that task
\r
77 on the current search, saving the result to a file, which you can attach
\r
78 to an email, open in mutt or whatever. The elisp is in the starting
\r
79 comments to the python.
\r
81 I hope this is useful to somebody. It does the trick for me in working
\r
82 with mbox-dependent colleagues (e.g. mutt users). I prefer mutt's
\r
83 threaded view to notmuch's conversation view, so I've used it to browse
\r