1 Return-Path: <thomas@schwinge.name>
\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 3CBB0431FD0
\r
6 for <notmuch@notmuchmail.org>; Thu, 27 Jan 2011 23:46:14 -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
\r
12 tests=[RCVD_IN_DNSWL_NONE=-0.0001] autolearn=unavailable
\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 nZkXPY-NZtR3 for <notmuch@notmuchmail.org>;
\r
16 Thu, 27 Jan 2011 23:46:14 -0800 (PST)
\r
17 Received: from smtprelay03.ispgateway.de (smtprelay03.ispgateway.de
\r
19 by olra.theworths.org (Postfix) with ESMTP id CB21E431FB5
\r
20 for <notmuch@notmuchmail.org>; Thu, 27 Jan 2011 23:46:13 -0800 (PST)
\r
21 Received: from [87.180.40.233] (helo=stokes.schwinge.homeip.net)
\r
22 by smtprelay03.ispgateway.de with esmtpa (Exim 4.68)
\r
23 (envelope-from <thomas@schwinge.name>) id 1Pij21-0001AM-LQ
\r
24 for notmuch@notmuchmail.org; Fri, 28 Jan 2011 08:46:09 +0100
\r
25 Received: (qmail 16966 invoked from network); 28 Jan 2011 07:45:39 -0000
\r
26 Received: from kepler.schwinge.homeip.net (192.168.111.7)
\r
27 by stokes.schwinge.homeip.net with QMQP; 28 Jan 2011 07:45:39 -0000
\r
28 Received: (nullmailer pid 17405 invoked by uid 1000);
\r
29 Fri, 28 Jan 2011 07:45:39 -0000
\r
30 From: Thomas Schwinge <thomas@schwinge.name>
\r
31 To: Carl Worth <cworth@cworth.org>, notmuch@notmuchmail.org
\r
32 Subject: Re: [PATCH] Clarify usage of `additional_headers' in
\r
33 test/test-lib.sh:generate_message.
\r
34 In-Reply-To: <87bp31oahy.fsf@yoom.home.cworth.org>
\r
35 References: <1296119841-496-1-git-send-email-thomas@schwinge.name>
\r
36 <87bp31oahy.fsf@yoom.home.cworth.org>
\r
37 User-Agent: Notmuch/0.5-33-g665f77b (http://notmuchmail.org) Emacs/23.2.1
\r
39 Date: Fri, 28 Jan 2011 08:45:35 +0100
\r
40 Message-ID: <874o8ttqsg.fsf@kepler.schwinge.homeip.net>
\r
42 Content-Type: multipart/signed; boundary="=-=-=";
\r
43 micalg=pgp-sha1; protocol="application/pgp-signature"
\r
44 X-Df-Sender: thomas@schwinge.name
\r
45 X-BeenThere: notmuch@notmuchmail.org
\r
46 X-Mailman-Version: 2.1.13
\r
48 List-Id: "Use and development of the notmuch mail system."
\r
49 <notmuch.notmuchmail.org>
\r
50 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,
\r
51 <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>
\r
52 List-Archive: <http://notmuchmail.org/pipermail/notmuch>
\r
53 List-Post: <mailto:notmuch@notmuchmail.org>
\r
54 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>
\r
55 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,
\r
56 <mailto:notmuch-request@notmuchmail.org?subject=subscribe>
\r
57 X-List-Received-Date: Fri, 28 Jan 2011 07:46:14 -0000
\r
60 Content-Type: text/plain; charset=utf-8
\r
61 Content-Transfer-Encoding: quoted-printable
\r
65 On Fri, 28 Jan 2011 15:36:25 +1000, Carl Worth <cworth@cworth.org> wrote:
\r
66 > On Thu, 27 Jan 2011 02:17:21 -0700, Thomas Schwinge <thomas@schwinge.name=
\r
68 > > + # Note that in the way we're setting it above and using it below,
\r
69 > > + # `additional_headers' will also serve as the header / body separa=
\r
71 > > + # (empty line in between).
\r
73 > I'd even prefer to have the newline explicitly in the HERE document, but
\r
74 > it's awkward to avoid having the "extra" newline at the end of
\r
75 > ${additional_headers} the way I'm constructing it incrementally. So just
\r
76 > documenting the current approach is probably best for now.
\r
78 Matches my thoughts :-) -- and as it occurs to me right now, doing it in
\r
79 one here document should be possible like this, if additional_headers is
\r
80 changed to have the newline *at the beginning* of the string:
\r
82 cat <<EOF >"$gen_msg_filename"
\r
83 From: ${template[from]}
\r
85 Message-Id: <${gen_msg_id}>
\r
86 Subject: ${template[subject]}
\r
87 Date: ${template[date]}${additional_headers}
\r
92 Or, of course, we could split the here document: base header,
\r
93 conditionally (if set at all) additional_headers, new line, body.
\r
95 If you'd like me to prepare (and test) any of these, please tell.
\r
102 PS: Didn't know you'd be doing a presentation of notmuch at LCA2011 -- I
\r
103 saw your announcement on the IRC channel (re live stream) what it was too
\r
104 late already. But then, it would have been a rather inconvenient time /
\r
105 timezone anyways, being based in Germany. So, how has it been?
\r
108 Content-Type: application/pgp-signature
\r
110 -----BEGIN PGP SIGNATURE-----
\r
111 Version: GnuPG v1.4.10 (GNU/Linux)
\r
113 iEYEARECAAYFAk1CdB8ACgkQFaWaPJ2HwAqv1gCbBtIMqTGRbJ5FCVrvHP4LGtKR
\r
114 dJQAnAsFLgeJkVZH0cWakQpIhqcHnYAt
\r
116 -----END PGP SIGNATURE-----
\r