[PATCH] configure: add --without-api-docs option
[notmuch-archives.git] / 21 / e73e26b9204e2454c547a1854a6a811ede0883
1 Return-Path: <felipe.contreras@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 4F88F431FB6\r
6         for <notmuch@notmuchmail.org>; Wed, 18 Apr 2012 08:39:26 -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.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 528QkK-eErtN for <notmuch@notmuchmail.org>;\r
17         Wed, 18 Apr 2012 08:39:22 -0700 (PDT)\r
18 Received: from mail-ee0-f53.google.com (mail-ee0-f53.google.com\r
19  [74.125.83.53])        (using TLSv1 with cipher RC4-SHA (128/128 bits))        (No client\r
20  certificate requested) by olra.theworths.org (Postfix) with ESMTPS id\r
21  068BC431FAE    for <notmuch@notmuchmail.org>; Wed, 18 Apr 2012 08:39:21 -0700\r
22  (PDT)\r
23 Received: by eekb47 with SMTP id b47so3111031eek.26\r
24         for <notmuch@notmuchmail.org>; Wed, 18 Apr 2012 08:39:20 -0700 (PDT)\r
25 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;\r
26         h=mime-version:in-reply-to:references:date:message-id:subject:from:to\r
27         :cc:content-type;\r
28         bh=et3K0CKuN0W1n+5jho3NmikhnS9RrMxhw4NImYybndE=;\r
29         b=FJJMVgdJ9Ge/ukIuHX+AnOch+wGkCGGbLfSydmWeIBEzhJNSxCL8WEQDklZOFpC6u+\r
30         htEoNdSJP2I57+zWMBWmpzzVX4mlQsdNbsqeuO6Kf/wFduGR8zvw7MMJdqt+vmMhdtab\r
31         0vZkGpehkPxnCwQHECGQInLUoAjK3frfSixctFod79GgI0dRCA7s3ih5yz8uf2DxVMCQ\r
32         JyHeLyjIBNaJzkqp3rU0GS4uFRHqjAwoAfywrTo+t8nWSVKRZoxFg0gWSPuXlFTysfkV\r
33         I2/pQ9vbVY5uJtPYLB6OwDNNRkhOO4jFnFoCgLR/p2Qw0t6Fx8W8vguO9Y0O4gUznIHY\r
34         KpyQ==\r
35 MIME-Version: 1.0\r
36 Received: by 10.213.104.132 with SMTP id p4mr252938ebo.101.1334763560806; Wed,\r
37         18 Apr 2012 08:39:20 -0700 (PDT)\r
38 Received: by 10.213.19.67 with HTTP; Wed, 18 Apr 2012 08:39:20 -0700 (PDT)\r
39 In-Reply-To: <87vckxazq7.fsf@nikula.org>\r
40 References: <1334752753-23970-1-git-send-email-felipe.contreras@gmail.com>\r
41         <1334752753-23970-2-git-send-email-felipe.contreras@gmail.com>\r
42         <873981chpj.fsf@nikula.org>\r
43         <CAMP44s2Ukz=kDaPHYG+jzR3pDfZGP+6Ojqc4Xz5J8PxEd9fKcQ@mail.gmail.com>\r
44         <87vckxazq7.fsf@nikula.org>\r
45 Date: Wed, 18 Apr 2012 18:39:20 +0300\r
46 Message-ID:\r
47  <CAMP44s1117VXAOnURjFAeva93oiJsKKPji4awN_SoNFo0QvPPw@mail.gmail.com>\r
48 Subject: Re: [PATCH v2 1/3] Add 'compose' command\r
49 From: Felipe Contreras <felipe.contreras@gmail.com>\r
50 To: Jani Nikula <jani@nikula.org>\r
51 Content-Type: text/plain; charset=UTF-8\r
52 Cc: Felipe Contreras <felipe.contreras@ngmail.com>, notmuch@notmuchmail.org\r
53 X-BeenThere: notmuch@notmuchmail.org\r
54 X-Mailman-Version: 2.1.13\r
55 Precedence: list\r
56 List-Id: "Use and development of the notmuch mail system."\r
57         <notmuch.notmuchmail.org>\r
58 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
59         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
60 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
61 List-Post: <mailto:notmuch@notmuchmail.org>\r
62 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
63 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
64         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
65 X-List-Received-Date: Wed, 18 Apr 2012 15:39:26 -0000\r
66 \r
67 On Wed, Apr 18, 2012 at 5:20 PM, Jani Nikula <jani@nikula.org> wrote:\r
68 > On Wed, 18 Apr 2012 16:34:30 +0300, Felipe Contreras <felipe.contreras@gmail.com> wrote:\r
69 >> On Wed, Apr 18, 2012 at 4:06 PM, Jani Nikula <jani@nikula.org> wrote:\r
70 >>\r
71 >> > Running "notmuch compose" more than once within a second would result in\r
72 >> > identical message ids for the messages, which is not a good idea. That's\r
73 >> > not likely in interactive use, but the notmuch cli is highly scriptable,\r
74 >> > so someone is bound to hit this.\r
75 >> >\r
76 >> > Some paranoid might also be worried about "leaking" the time you run\r
77 >> > "notmuch compose"... which may be different from the actual time you\r
78 >> > send the message.\r
79 >>\r
80 >> It's still better than the current situation; nothing. In any case,\r
81 >> people that have not needed this would not be affected; their UI would\r
82 >> override the Message-ID.\r
83 >>\r
84 >> So do you have a better suggestion for a Message-ID?\r
85 >\r
86 > The easy way would be to just use g_mime_utils_generate_message_id()\r
87 > [1]. It doesn't give you any control of the part before @, but I'm not\r
88 > sure if that really matters.\r
89 \r
90 This is what gmime does:\r
91 g_strdup_printf ("%lu.%lu.%lu@%s", (unsigned long int) time (NULL),\r
92 (unsigned long int) getpid (), count++, fqdn);\r
93 \r
94 Which actually has some of the issues you mentioned.\r
95 \r
96 I can do the same if you want (add pid and count). The advantage of\r
97 using our own format is that not only would it be more unique, but it\r
98 would not have "@fqdn".\r
99 \r
100 > Alternatively you can write your own according to e.g. [2]. Glib appears\r
101 > to have decent and portable support for pseudo random number\r
102 > generation. But why bother? I'd go with gmime.\r
103 \r
104 But gmime doesn't have anything random. I would actually prefer to\r
105 have something random though.\r
106 \r
107 -- \r
108 Felipe Contreras\r