1 Return-Path: <dme@dme.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 7D925431FD0
\r
6 for <notmuch@notmuchmail.org>; Mon, 26 Dec 2011 04:06:13 -0800 (PST)
\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org
\r
11 X-Spam-Status: No, score=-0.7 tagged_above=-999 required=5
\r
12 tests=[RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled
\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 3MgyOCSUMBbW for <notmuch@notmuchmail.org>;
\r
16 Mon, 26 Dec 2011 04:06:13 -0800 (PST)
\r
17 Received: from mail-we0-f181.google.com (mail-we0-f181.google.com
\r
18 [74.125.82.181]) (using TLSv1 with cipher RC4-SHA (128/128 bits))
\r
19 (No client certificate requested)
\r
20 by olra.theworths.org (Postfix) with ESMTPS id C3BD2431FB6
\r
21 for <notmuch@notmuchmail.org>; Mon, 26 Dec 2011 04:06:12 -0800 (PST)
\r
22 Received: by werm12 with SMTP id m12so6186739wer.26
\r
23 for <notmuch@notmuchmail.org>; Mon, 26 Dec 2011 04:06:11 -0800 (PST)
\r
24 Received: by 10.216.139.222 with SMTP id c72mr19413176wej.4.1324901171545;
\r
25 Mon, 26 Dec 2011 04:06:11 -0800 (PST)
\r
26 Received: from hotblack-desiato.hh.sledj.net
\r
27 (host81-149-164-25.in-addr.btopenworld.com. [81.149.164.25])
\r
28 by mx.google.com with ESMTPS id ei9sm56506986wid.0.2011.12.26.04.06.08
\r
29 (version=TLSv1/SSLv3 cipher=OTHER);
\r
30 Mon, 26 Dec 2011 04:06:10 -0800 (PST)
\r
31 Received: by hotblack-desiato.hh.sledj.net (Postfix, from userid 30000)
\r
32 id AA52EA0765; Mon, 26 Dec 2011 12:06:06 +0000 (GMT)
\r
33 To: Jani Nikula <jani@nikula.org>, notmuch@notmuchmail.org
\r
34 Subject: Re: [PATCH v2 1/2] emacs: create patch filename from subject for
\r
35 inline patch fake parts
\r
37 <aa55383e8609a2e0d376744ff3e982fd072c58d6.1324849534.git.jani@nikula.org>
\r
38 References: <1321657368-13872-1-git-send-email-jani@nikula.org>
\r
39 <cover.1324849534.git.jani@nikula.org>
\r
40 <aa55383e8609a2e0d376744ff3e982fd072c58d6.1324849534.git.jani@nikula.org>
\r
41 User-Agent: Notmuch/0.10.2+107~ga2d0215 (http://notmuchmail.org)
\r
42 Emacs/24.0.92.1 (x86_64-pc-linux-gnu)
\r
43 From: David Edmondson <dme@dme.org>
\r
44 Date: Mon, 26 Dec 2011 12:06:02 +0000
\r
45 Message-ID: <cun62h3tu51.fsf@hotblack-desiato.hh.sledj.net>
\r
47 Content-Type: multipart/signed; boundary="=-=-=";
\r
48 micalg=pgp-sha1; protocol="application/pgp-signature"
\r
49 X-BeenThere: notmuch@notmuchmail.org
\r
50 X-Mailman-Version: 2.1.13
\r
52 List-Id: "Use and development of the notmuch mail system."
\r
53 <notmuch.notmuchmail.org>
\r
54 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,
\r
55 <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>
\r
56 List-Archive: <http://notmuchmail.org/pipermail/notmuch>
\r
57 List-Post: <mailto:notmuch@notmuchmail.org>
\r
58 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>
\r
59 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,
\r
60 <mailto:notmuch-request@notmuchmail.org?subject=subscribe>
\r
61 X-List-Received-Date: Mon, 26 Dec 2011 12:06:13 -0000
\r
64 Content-Type: text/plain
\r
66 On Mon, 26 Dec 2011 00:00:05 +0200, Jani Nikula <jani@nikula.org> wrote:
\r
67 > +(defun notmuch-wash-subject-to-patch-filename (subject)
\r
68 > + "Convert a patch mail SUBJECT into a filename.
\r
70 > +The resulting filename is similar to the names generated by \"git
\r
71 > +format-patch\". If the patch mail was generated and sent using
\r
72 > +\"git format-patch/send-email\", this should re-create the
\r
73 > +original filename the sender had."
\r
74 > + (let* ((n (notmuch-wash-subject-to-patch-sequence-number subject))
\r
76 > + (format "%04d-%s.patch" n (notmuch-wash-subject-to-filename subject 52))))
\r
79 (format "%04d-%s.patch"
\r
80 (or (notmuch-wash-subject-to-patch-sequence-number subject) 1)
\r
81 (notmuch-wash-subject-to-filename subject 52))
\r
83 or something would be more lispy.
\r
85 Clicking on the button for the part saves the wrong thing, though,
\r
86 because it's not a real MIME part. That looks a bit awkward to fix, so
\r
87 perhaps you could still prefix the name with "inline: " to indicate that
\r
90 Otherwise, looks good.
\r
93 Content-Type: application/pgp-signature
\r
95 -----BEGIN PGP SIGNATURE-----
\r
96 Version: GnuPG v1.4.11 (GNU/Linux)
\r
98 iEYEARECAAYFAk74YyoACgkQaezQq/BJZRarEgCePK2RJpFrgdpUt0PWPmvg9xIn
\r
99 TjMAn1e8sUzwxk4qY/tPvwJQpRKtD1Su
\r
101 -----END PGP SIGNATURE-----
\r