[PATCH] Omit User-Agent: header by default
[notmuch-archives.git] / 7b / 65be0f184c68da26330e3f11ccaa78a9b238ac
1 Return-Path: <damien.cassou@gmail.com>\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 AE8BA431FBC\r
6         for <notmuch@notmuchmail.org>; Sat, 10 Nov 2012 07:58:35 -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: -0.799\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=-0.799 tagged_above=-999 required=5\r
12         tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1,\r
13         FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7] 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 CD2ypcnvWsIw for <notmuch@notmuchmail.org>;\r
17         Sat, 10 Nov 2012 07:58:31 -0800 (PST)\r
18 Received: from mail-vb0-f53.google.com (mail-vb0-f53.google.com\r
19         [209.85.212.53]) (using TLSv1 with cipher RC4-SHA (128/128 bits))\r
20         (No client certificate requested)\r
21         by olra.theworths.org (Postfix) with ESMTPS id CFB67431FAF\r
22         for <notmuch@notmuchmail.org>; Sat, 10 Nov 2012 07:58:31 -0800 (PST)\r
23 Received: by mail-vb0-f53.google.com with SMTP id fc21so5141576vbb.26\r
24         for <notmuch@notmuchmail.org>; Sat, 10 Nov 2012 07:58:31 -0800 (PST)\r
25 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;\r
26         h=mime-version:from:date:message-id:subject:to:content-type;\r
27         bh=dJka071jdD2ePwkysbcvOiNMlKDOh00iA7Ahxv1iCqE=;\r
28         b=zDLz49Gykr7bzYyqhD1ZP3IA59V4NPVvX2G8atH7fNPjt47nUBLW5fsJU+qcrnQqta\r
29         4la28cicgAgBPdJQ+QvnInKV4pJtX9dmBqlKP7wWFMDnWUmsGjQ4HGACHQ29wejLV50N\r
30         yzT2yjDyHxpoSHIoNKYR2KNY8vkYw6+S0iDW7DcRccvytWskEzLvU2VyCqf6ZpThiply\r
31         V1UJ3M3+tH2m8O97I1KUOqQbyj+uKnrMbevcEDcAupDSeD6E/RziH63OSFrVYOQtT81c\r
32         Z4xtPuV2CsRTTlT462Phchx4R9LXagG3z2Ej3++lj+fEq0HWyMJdE5h3AZS9fJ4UX+lL\r
33         65sQ==\r
34 Received: by 10.58.2.71 with SMTP id 7mr10954957ves.42.1352563111123; Sat, 10\r
35         Nov 2012 07:58:31 -0800 (PST)\r
36 MIME-Version: 1.0\r
37 Received: by 10.58.143.51 with HTTP; Sat, 10 Nov 2012 07:58:10 -0800 (PST)\r
38 From: Damien Cassou <damien.cassou@gmail.com>\r
39 Date: Sat, 10 Nov 2012 16:58:10 +0100\r
40 Message-ID:\r
41  <CA+y5ggiGrAcicQLeskaXFoxYyJQVVXZ1VRX=XS8zPFR9_mBFxA@mail.gmail.com>\r
42 Subject: emacs: Handling external dependencies\r
43 To: notmuch mailing list <notmuch@notmuchmail.org>\r
44 Content-Type: text/plain; charset=ISO-8859-1\r
45 X-BeenThere: notmuch@notmuchmail.org\r
46 X-Mailman-Version: 2.1.13\r
47 Precedence: list\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: Sat, 10 Nov 2012 15:58:35 -0000\r
58 \r
59 Hi,\r
60 \r
61 I recently sent a patch for notmuch emacs that depends on a particular\r
62 library. What is the best way to deal with such dependencies?\r
63 \r
64 I can see different solutions:\r
65 \r
66 1) distribute a rewritten version of the dependency so that the code\r
67 now belongs to notmuch (e.g., replace the name of the library by\r
68 'notmuch'). This has the disadvantage of requiring maintenance when a\r
69 new version of the library is released and can also be considered\r
70 'stealing' by some authors.\r
71 \r
72 2) use a package manager to load the library. This has the\r
73 disadvantage that the now standard package manager is not in\r
74 widespread use yet and is not compatible with other OS-based package\r
75 managers (such as apt-get in Debian).\r
76 \r
77 3) distribute the dependency with the rest of notmuch and load this\r
78 one. This has the disadvantage of possibly shadowing an already\r
79 existing version of this library installed through a different means.\r
80 \r
81 4) distribute the dependency with the rest of notmuch (in a separate\r
82 "fallback-libs/" directory) and load it only when requiring the\r
83 library with the standard load-path does not work. Jonas Bernoulli\r
84 gave me a way to do that:\r
85 \r
86 ,----\r
87 | (or (require 'THE-LIB nil t)\r
88 |     (let ((load-path\r
89 |           (cons (expand-file-name\r
90 |                  "fallback-libs"\r
91 |                  (file-name-directory (or load-file-name buffer-file-name)))\r
92 |                 load-path)))\r
93 |       (require 'THE-LIB)))\r
94 `----\r
95 \r
96 What do you think?\r
97 \r
98 --\r
99 Damien Cassou\r
100 http://damiencassou.seasidehosting.st\r
101 \r
102 "Success is the ability to go from one failure to another without\r
103 losing enthusiasm."\r
104 Winston Churchill\r