Re: [PATCH v2] Omit User-Agent: header by default
[notmuch-archives.git] / 3a / 27347935d728002abd546835528620276e8bb2
1 Return-Path: <imain@redhat.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 2123F431FBC\r
6         for <notmuch@notmuchmail.org>; Thu,  2 Oct 2014 12:22:25 -0700 (PDT)\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
8 X-Spam-Flag: NO\r
9 X-Spam-Score: 0\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=0 tagged_above=-999 required=5\r
12         tests=[RCVD_IN_DNSWL_NONE=-0.0001] 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 Ajgk-O0SmtO2 for <notmuch@notmuchmail.org>;\r
16         Thu,  2 Oct 2014 12:22:21 -0700 (PDT)\r
17 Received: from cmta5.telus.net (cmta5.telus.net [209.171.16.78])\r
18         by olra.theworths.org (Postfix) with ESMTP id 19F95431FB6\r
19         for <notmuch@notmuchmail.org>; Thu,  2 Oct 2014 12:22:21 -0700 (PDT)\r
20 Received: from ovo.mains.priv ([207.102.88.62]) by cmta5.telus.net with TELUS\r
21         id yKNJ1o00p1LiWEf01KNKRY; Thu, 02 Oct 2014 13:22:19 -0600\r
22 X-Authority-Analysis: v=2.0 cv=JvIvWrEC c=1 sm=2\r
23         a=EcQDfIwDZEqJA1f7rVUV8Q==:17 a=K_0WnIvp2iAA:10 a=IkcTkHD0fZMA:10\r
24         a=20KFwNOVAAAA:8 a=pGLkceISAAAA:8 a=H0wNZic-ieGwve4HzE8A:9\r
25         a=QEXdDO2ut3YA:10\r
26         a=MSl-tDqOz04A:10 a=EcQDfIwDZEqJA1f7rVUV8Q==:117\r
27 X-Telus-Outbound-IP: 207.102.88.62\r
28 Received: from ovo.mains.priv (localhost.localdomain [127.0.0.1])\r
29         by ovo.mains.priv (8.14.8/8.14.8) with ESMTP id s92JMBKR020539;\r
30         Thu, 2 Oct 2014 12:22:12 -0700\r
31 Received: (from imain@localhost)\r
32         by ovo.mains.priv (8.14.8/8.14.8/Submit) id s92JMAB7020538;\r
33         Thu, 2 Oct 2014 12:22:10 -0700\r
34 X-Authentication-Warning: ovo.mains.priv: imain set sender to imain@redhat.com\r
35         using -f\r
36 Date: Thu, 02 Oct 2014 12:22:10 -0700\r
37 From: Ian Main <imain@redhat.com>\r
38 To: Sergei Shilovsky <sshilovsky@gmail.com>, notmuch@notmuchmail.org\r
39 Message-ID: <542da5e2565b9_4f181359e94d@ovo.mains.priv.notmuch>\r
40 In-Reply-To:\r
41  <CAHc2pO19AZabAiJhdfQR1rL5t0GufLAq5cKb_7w-Z8y+JXT5+g@mail.gmail.com>\r
42 References:\r
43  <CAHc2pO19AZabAiJhdfQR1rL5t0GufLAq5cKb_7w-Z8y+JXT5+g@mail.gmail.com>\r
44 Subject: RE: notmuch-vim doesn't respect notmuch config defaults\r
45 Mime-Version: 1.0\r
46 Content-Type: text/plain;\r
47  charset=utf-8\r
48 Content-Transfer-Encoding: 7bit\r
49 X-Mailman-Approved-At: Fri, 03 Oct 2014 14:04:56 -0700\r
50 X-BeenThere: notmuch@notmuchmail.org\r
51 X-Mailman-Version: 2.1.13\r
52 Precedence: list\r
53 List-Id: "Use and development of the notmuch mail system."\r
54         <notmuch.notmuchmail.org>\r
55 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
56         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
57 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
58 List-Post: <mailto:notmuch@notmuchmail.org>\r
59 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
60 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
61         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
62 X-List-Received-Date: Thu, 02 Oct 2014 19:22:25 -0000\r
63 \r
64 Sergei Shilovsky wrote:\r
65 > I would suggest to use `notmuch config list` to get configuration\r
66 > values in vim if possible\r
67\r
68 > Reproduction example follows:\r
69\r
70 >  /home/sh> cat .notmuch-config\r
71 >  [new]\r
72 >  tags=new;inbox;unread\r
73 >  ignore=\r
74\r
75 >  [search]\r
76 >  exclude_tags=deleted;spam\r
77\r
78 >  [maildir]\r
79 >  synchronize_flags=false\r
80\r
81 >  /home/sh> notmuch config list\r
82 >  new.tags=new;inbox;unread\r
83 >  new.ignore=\r
84 >  search.exclude_tags=deleted;spam\r
85 >  maildir.synchronize_flags=false\r
86 >  database.path=/home/sh/mail\r
87 >  user.name=Sergei Shilovsky\r
88 >  user.primary_email=sshilovsky@gmail.com\r
89\r
90 >  /home/sh> vim -c :NotMuch\r
91 >  Error detected while processing function\r
92 > <SNR>13_NotMuch..<SNR>13_folders..<SNR>\r
93 >  13_new_buffer:\r
94 >  line    6:\r
95 >  TypeError: no implicit conversion of nil into String\r
96 >  Error detected while processing function <SNR>13_NotMuch..<SNR>13_folders:\r
97 >  line    2:\r
98 >  NoMethodError: undefined method `query' for nil:NilClass\r
99\r
100 > Having explicit database.path=/home/sh/mail in the configuration file\r
101 > makes it work\r
102 \r
103 Right, so you didn't have database.path in your config file before right?\r
104 Doesn't the default notmuch setup set that for you?\r
105 \r
106 It wouldn't be too hard to change vim to use 'notmuch config list' to get\r
107 its configuration information, but as mentioned a library would be much\r
108 nicer.\r
109 \r
110 Anyone have any thoughts on this?  How does the emacs client do it?  If\r
111 the config list method is superior I'll write up a patch for it.\r
112 \r
113    Ian\r