Re: [PATCH 0/4] Allow specifying alternate names for addresses in other_email
[notmuch-archives.git] / 57 / 528823b7bca6cf9fa9074612ddb2202b8a84e9
1 Return-Path: <m.walters@qmul.ac.uk>\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 D893C431FB6\r
6         for <notmuch@notmuchmail.org>; Thu, 23 Jan 2014 10:15:59 -0800 (PST)\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
8 X-Spam-Flag: NO\r
9 X-Spam-Score: -1.098\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=-1.098 tagged_above=-999 required=5\r
12         tests=[DKIM_ADSP_CUSTOM_MED=0.001, FREEMAIL_FROM=0.001,\r
13         NML_ADSP_CUSTOM_MED=1.2, RCVD_IN_DNSWL_MED=-2.3] autolearn=disabled\r
14 Received: from olra.theworths.org ([127.0.0.1])\r
15         by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
16         with ESMTP id Mkl3i3E8vpRw for <notmuch@notmuchmail.org>;\r
17         Thu, 23 Jan 2014 10:15:53 -0800 (PST)\r
18 Received: from mail2.qmul.ac.uk (mail2.qmul.ac.uk [138.37.6.6])\r
19         (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))\r
20         (No client certificate requested)\r
21         by olra.theworths.org (Postfix) with ESMTPS id 7CE89431FAF\r
22         for <notmuch@notmuchmail.org>; Thu, 23 Jan 2014 10:15:53 -0800 (PST)\r
23 Received: from smtp.qmul.ac.uk ([138.37.6.40])\r
24         by mail2.qmul.ac.uk with esmtp (Exim 4.71)\r
25         (envelope-from <m.walters@qmul.ac.uk>)\r
26         id 1W6OoZ-00067U-CG; Thu, 23 Jan 2014 18:15:48 +0000\r
27 Received: from 93-97-24-31.zone5.bethere.co.uk ([93.97.24.31] helo=localhost)\r
28         by smtp.qmul.ac.uk with esmtpsa (TLSv1:AES128-SHA:128) (Exim 4.71)\r
29         (envelope-from <m.walters@qmul.ac.uk>)\r
30         id 1W6OnO-0008LB-Ph; Thu, 23 Jan 2014 18:14:33 +0000\r
31 From: Mark Walters <markwalters1009@gmail.com>\r
32 To: Tomi Ollila <tomi.ollila@iki.fi>, notmuch@notmuchmail.org\r
33 Subject: Re: [PATCH 1/2] emacs: defconst notmuch-emacs-version to a value\r
34         during byte compilation\r
35 In-Reply-To: <1390135903-28167-1-git-send-email-tomi.ollila@iki.fi>\r
36 References: <1390135903-28167-1-git-send-email-tomi.ollila@iki.fi>\r
37 User-Agent: Notmuch/0.15.2+484~gfb59956 (http://notmuchmail.org) Emacs/23.4.1\r
38         (x86_64-pc-linux-gnu)\r
39 Date: Thu, 23 Jan 2014 18:12:49 +0000\r
40 Message-ID: <8738kezhwe.fsf@qmul.ac.uk>\r
41 MIME-Version: 1.0\r
42 Content-Type: text/plain; charset=us-ascii\r
43 X-Sender-Host-Address: 93.97.24.31\r
44 X-QM-Geographic: According to ripencc,\r
45         this message was delivered by a machine in Britain (UK) (GB).\r
46 X-QM-SPAM-Info: Sender has good ham record.  :)\r
47 X-QM-Body-MD5: cb9a0b326e2b7d3a3b02a7a069e9b3e5 (of first 20000 bytes)\r
48 X-SpamAssassin-Score: 0.0\r
49 X-SpamAssassin-SpamBar: /\r
50 X-SpamAssassin-Report: The QM spam filters have analysed this message to\r
51         determine if it is\r
52         spam. We require at least 5.0 points to mark a message as spam.\r
53         This message scored 0.0 points. Summary of the scoring: \r
54         * 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail\r
55         provider *      (markwalters1009[at]gmail.com)\r
56         *  0.0 AWL AWL: From: address is in the auto white-list\r
57 X-QM-Scan-Virus: ClamAV says the message is clean\r
58 Cc: tomi.ollila@iki.fi\r
59 X-BeenThere: notmuch@notmuchmail.org\r
60 X-Mailman-Version: 2.1.13\r
61 Precedence: list\r
62 List-Id: "Use and development of the notmuch mail system."\r
63         <notmuch.notmuchmail.org>\r
64 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
65         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
66 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
67 List-Post: <mailto:notmuch@notmuchmail.org>\r
68 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
69 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
70         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
71 X-List-Received-Date: Thu, 23 Jan 2014 18:16:00 -0000\r
72 \r
73 \r
74 Hi\r
75 \r
76 I like this. However, something odd seems to happen with version.\r
77 \r
78 If I make and then commit a small change to emacs/notmuch-tree.el and then\r
79 remake then version string in the cli nor in emacs seems to be\r
80 updated. If I make clean and then make it is updated.\r
81 \r
82 OTOH if i make then commit a small change to notmuch.c then make again\r
83 then  the cli seems to get a new version but emacs doesn't.\r
84 \r
85 I think that this problem (if it's not just stupidity on my part) is\r
86 orthogonal to this patch but thought it worth mentioning.\r
87 \r
88 Best wishes\r
89 \r
90 Mark\r
91 \r
92 \r
93 On Sun, 19 Jan 2014, Tomi Ollila <tomi.ollila@iki.fi> wrote:\r
94 > The notmuch cli program and emacs lisp versions may differ. For now\r
95 > we can help users with their emacs client problems better if we can\r
96 > ask what version of emacs MUA they are running. In the future we can\r
97 > put the emacs MUA version to User-Agent: string in outgoing mail.\r
98 > ---\r
99 >  emacs/Makefile.local | 4 +++-\r
100 >  emacs/notmuch-lib.el | 7 +++++++\r
101 >  2 files changed, 10 insertions(+), 1 deletion(-)\r
102 >\r
103 > diff --git a/emacs/Makefile.local b/emacs/Makefile.local\r
104 > index 42bfbd9..1b2db7e 100644\r
105 > --- a/emacs/Makefile.local\r
106 > +++ b/emacs/Makefile.local\r
107 > @@ -40,7 +40,9 @@ CLEAN+=$(dir)/.eldeps $(dir)/.eldeps.tmp\r
108 >  \r
109 >  ifeq ($(HAVE_EMACS),1)\r
110 >  %.elc: %.el $(global_deps)\r
111 > -     $(call quiet,EMACS) --directory emacs -batch -f batch-byte-compile $<\r
112 > +     $(call quiet,EMACS) --directory emacs \\r
113 > +             --eval "(setq notmuch--version \"$(VERSION)\")" \\r
114 > +             -batch -f batch-byte-compile $<\r
115 >  endif\r
116 >  \r
117 >  ifeq ($(WITH_EMACS),1)\r
118 > diff --git a/emacs/notmuch-lib.el b/emacs/notmuch-lib.el\r
119 > index 2be409b..81eed54 100644\r
120 > --- a/emacs/notmuch-lib.el\r
121 > +++ b/emacs/notmuch-lib.el\r
122 > @@ -168,6 +168,13 @@ Otherwise the output will be returned"\r
123 >        (notmuch-check-exit-status status (cons notmuch-command args) output)\r
124 >        output)))\r
125 >  \r
126 > +;; defconst notmuch-emacs-version to a value during build-time byte compilation\r
127 > +(defconst notmuch-emacs-version\r
128 > +  (eval-when-compile (if (boundp 'notmuch--version)\r
129 > +                      notmuch--version\r
130 > +                    "not-compiled"))\r
131 > +  "Version string of this version of Notmuch Emacs MUA.")\r
132 > +\r
133 >  (defun notmuch-version ()\r
134 >    "Return a string with the notmuch version number."\r
135 >    (let ((long-string\r
136 > -- \r
137 > 1.8.4.2\r
138 >\r
139 > _______________________________________________\r
140 > notmuch mailing list\r
141 > notmuch@notmuchmail.org\r
142 > http://notmuchmail.org/mailman/listinfo/notmuch\r