Re: [PATCH] emacs: wash: make word-wrap bound message width
[notmuch-archives.git] / 73 / fecaadea71dc95be7e41f6fccdb8f0192ed142
1 Return-Path: <dmitry.kurochkin@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 1CC21431FDE\r
6         for <notmuch@notmuchmail.org>; Wed, 18 Apr 2012 09:12:45 -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 Mr+GXZzoGscf for <notmuch@notmuchmail.org>;\r
17         Wed, 18 Apr 2012 09:12:40 -0700 (PDT)\r
18 Received: from mail-lpp01m010-f53.google.com (mail-lpp01m010-f53.google.com\r
19         [209.85.215.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 18289431FAE\r
22         for <notmuch@notmuchmail.org>; Wed, 18 Apr 2012 09:12:39 -0700 (PDT)\r
23 Received: by lahc1 with SMTP id c1so5972279lah.26\r
24         for <notmuch@notmuchmail.org>; Wed, 18 Apr 2012 09:12:38 -0700 (PDT)\r
25 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;\r
26         h=from:to:cc:subject:in-reply-to:references:user-agent:date\r
27         :message-id:mime-version:content-type;\r
28         bh=Ir5wpoHOAT67wPEe+M73vBy98rn4prhCvDOSpvdsgBE=;\r
29         b=aJfwht5C2XRYE5/PcQRzou47F00SY8vITCqJMNci0mfJdTapX8eMT8QOS6qjQm7t0y\r
30         pMhH9uGidIZivsvHnjC/cDMe3rjQ/TGrIpFcCjZAIiZmaN2FiKs69gASmkv5m2lh5dRI\r
31         IaT0yTix63xatiZ3F4zgA67WCx2jmj6YEjbhBxd6NG+6ElEGNOOuqZMWGPFQ/6iJuQaw\r
32         pA5hYYdecK4qDX9UPco7bswBgM1vsUONjNbF8zmDZ0lqkyeN93RwQkHQldomGUocdS2e\r
33         mnRd73LBVd3YLyV9KTaeI2plMG+Ofd3rDgJa+w2J4fdVASjiNSUSYrJ4p7J8fNkS5E7K\r
34         APrg==\r
35 Received: by 10.112.42.100 with SMTP id n4mr1307250lbl.90.1334765558362;\r
36         Wed, 18 Apr 2012 09:12:38 -0700 (PDT)\r
37 Received: from localhost ([91.144.186.21])\r
38         by mx.google.com with ESMTPS id mr15sm26721812lab.8.2012.04.18.09.12.37\r
39         (version=TLSv1/SSLv3 cipher=OTHER);\r
40         Wed, 18 Apr 2012 09:12:37 -0700 (PDT)\r
41 From: Dmitry Kurochkin <dmitry.kurochkin@gmail.com>\r
42 To: Tomi Ollila <tomi.ollila@iki.fi>,\r
43         Felipe Contreras <felipe.contreras@gmail.com>,\r
44         Jani Nikula <jani@nikula.org>\r
45 Subject: Re: [PATCH v2 1/3] Add 'compose' command\r
46 In-Reply-To: <m21unlc9np.fsf@guru.guru-group.fi>\r
47 References: <1334752753-23970-1-git-send-email-felipe.contreras@gmail.com>\r
48         <1334752753-23970-2-git-send-email-felipe.contreras@gmail.com>\r
49         <873981chpj.fsf@nikula.org>\r
50         <CAMP44s2Ukz=kDaPHYG+jzR3pDfZGP+6Ojqc4Xz5J8PxEd9fKcQ@mail.gmail.com>\r
51         <87vckxazq7.fsf@nikula.org>\r
52         <CAMP44s1117VXAOnURjFAeva93oiJsKKPji4awN_SoNFo0QvPPw@mail.gmail.com>\r
53         <m21unlc9np.fsf@guru.guru-group.fi>\r
54 User-Agent: Notmuch/0.12+104~gf9ad237 (http://notmuchmail.org) Emacs/23.4.1\r
55         (x86_64-pc-linux-gnu)\r
56 Date: Wed, 18 Apr 2012 20:10:47 +0400\r
57 Message-ID: <87ty0hkol4.fsf@gmail.com>\r
58 MIME-Version: 1.0\r
59 Content-Type: text/plain; charset=us-ascii\r
60 Cc: Felipe Contreras <felipe.contreras@ngmail.com>, notmuch@notmuchmail.org\r
61 X-BeenThere: notmuch@notmuchmail.org\r
62 X-Mailman-Version: 2.1.13\r
63 Precedence: list\r
64 List-Id: "Use and development of the notmuch mail system."\r
65         <notmuch.notmuchmail.org>\r
66 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
67         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
68 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
69 List-Post: <mailto:notmuch@notmuchmail.org>\r
70 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
71 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
72         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
73 X-List-Received-Date: Wed, 18 Apr 2012 16:12:45 -0000\r
74 \r
75 Tomi Ollila <tomi.ollila@iki.fi> writes:\r
76 \r
77 > On Wed, Apr 18 2012, Felipe Contreras <felipe.contreras@gmail.com> wrote:\r
78 >\r
79 >> On Wed, Apr 18, 2012 at 5:20 PM, Jani Nikula <jani@nikula.org> wrote:\r
80 >>> On Wed, 18 Apr 2012 16:34:30 +0300, Felipe Contreras <felipe.contreras@gmail.com> wrote:\r
81 >>>> On Wed, Apr 18, 2012 at 4:06 PM, Jani Nikula <jani@nikula.org> wrote:\r
82 >>>>\r
83 >>>> > Running "notmuch compose" more than once within a second would result in\r
84 >>>> > identical message ids for the messages, which is not a good idea. That's\r
85 >>>> > not likely in interactive use, but the notmuch cli is highly scriptable,\r
86 >>>> > so someone is bound to hit this.\r
87 >>>> >\r
88 >>>> > Some paranoid might also be worried about "leaking" the time you run\r
89 >>>> > "notmuch compose"... which may be different from the actual time you\r
90 >>>> > send the message.\r
91 >>>>\r
92 >>>> It's still better than the current situation; nothing. In any case,\r
93 >>>> people that have not needed this would not be affected; their UI would\r
94 >>>> override the Message-ID.\r
95 >>>>\r
96 >>>> So do you have a better suggestion for a Message-ID?\r
97 >>>\r
98 >>> The easy way would be to just use g_mime_utils_generate_message_id()\r
99 >>> [1]. It doesn't give you any control of the part before @, but I'm not\r
100 >>> sure if that really matters.\r
101 >>\r
102 >> This is what gmime does:\r
103 >> g_strdup_printf ("%lu.%lu.%lu@%s", (unsigned long int) time (NULL),\r
104 >> (unsigned long int) getpid (), count++, fqdn);\r
105 >>\r
106 >> Which actually has some of the issues you mentioned.\r
107 >>\r
108 >> I can do the same if you want (add pid and count). The advantage of\r
109 >> using our own format is that not only would it be more unique, but it\r
110 >> would not have "@fqdn".\r
111 >\r
112 > getpid() is good. I guess count is useless (always one). Now some ideas\r
113 > how to obfuscate time(NULL) (nonce + hash (crc32 good enough?) ?\r
114 >\r
115 \r
116 I think the best would be for notmuch to use the gmime function and\r
117 change gmime (open a bug, may be provide a patch) to follow the best\r
118 practice for Message-ID generation (I guess that would be the document\r
119 pointed by Jani [1]).\r
120 \r
121 Regards,\r
122   Dmitry\r
123 \r
124 [1] http://www.jwz.org/doc/mid.html\r
125 \r
126 > Tomi\r
127 >\r
128 >>\r
129 >>> Alternatively you can write your own according to e.g. [2]. Glib appears\r
130 >>> to have decent and portable support for pseudo random number\r
131 >>> generation. But why bother? I'd go with gmime.\r
132 >>\r
133 >> But gmime doesn't have anything random. I would actually prefer to\r
134 >> have something random though.\r
135 >\r
136 >\r
137 >\r
138 >>\r
139 >> -- \r
140 >> Felipe Contreras\r
141 >> _______________________________________________\r
142 >> notmuch mailing list\r
143 >> notmuch@notmuchmail.org\r
144 >> http://notmuchmail.org/mailman/listinfo/notmuch\r
145 > _______________________________________________\r
146 > notmuch mailing list\r
147 > notmuch@notmuchmail.org\r
148 > http://notmuchmail.org/mailman/listinfo/notmuch\r