[WIP2 05/12] cli: add two sprinter utility functions
[notmuch-archives.git] / 57 / 24706a39818c12d144011fb06e5436b3fb4144
1 Return-Path: <amdragon@mit.edu>\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 9101B429E54\r
6         for <notmuch@notmuchmail.org>; Sun, 22 Jan 2012 17:03:14 -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.7\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=-0.7 tagged_above=-999 required=5\r
12         tests=[RCVD_IN_DNSWL_LOW=-0.7] 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 ksnNrq9rAuZ0 for <notmuch@notmuchmail.org>;\r
16         Sun, 22 Jan 2012 17:03:14 -0800 (PST)\r
17 Received: from dmz-mailsec-scanner-8.mit.edu (DMZ-MAILSEC-SCANNER-8.MIT.EDU\r
18         [18.7.68.37])\r
19         by olra.theworths.org (Postfix) with ESMTP id 0AAAA429E40\r
20         for <notmuch@notmuchmail.org>; Sun, 22 Jan 2012 17:03:13 -0800 (PST)\r
21 X-AuditID: 12074425-b7f4a6d0000008e0-c9-4f1cb1d1d1ac\r
22 Received: from mailhub-auth-2.mit.edu ( [18.7.62.36])\r
23         by dmz-mailsec-scanner-8.mit.edu (Symantec Messaging Gateway) with SMTP\r
24         id 2E.91.02272.1D1BC1F4; Sun, 22 Jan 2012 20:03:13 -0500 (EST)\r
25 Received: from outgoing.mit.edu (OUTGOING-AUTH.MIT.EDU [18.7.22.103])\r
26         by mailhub-auth-2.mit.edu (8.13.8/8.9.2) with ESMTP id q0N13CuR004365; \r
27         Sun, 22 Jan 2012 20:03:12 -0500\r
28 Received: from awakening.csail.mit.edu (awakening.csail.mit.edu [18.26.4.91])\r
29         (authenticated bits=0)\r
30         (User authenticated as amdragon@ATHENA.MIT.EDU)\r
31         by outgoing.mit.edu (8.13.6/8.12.4) with ESMTP id q0N139vn014523\r
32         (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=NOT);\r
33         Sun, 22 Jan 2012 20:03:11 -0500 (EST)\r
34 Received: from amthrax by awakening.csail.mit.edu with local (Exim 4.77)\r
35         (envelope-from <amdragon@MIT.EDU>)\r
36         id 1Rp8J0-00024T-Tf; Sun, 22 Jan 2012 20:02:42 -0500\r
37 Date: Sun, 22 Jan 2012 20:02:42 -0500\r
38 From: Austin Clements <amdragon@MIT.EDU>\r
39 To: Jani Nikula <jani@nikula.org>\r
40 Subject: Re: [PATCH 1/3] mime node: Record depth-first part numbers\r
41 Message-ID: <20120123010242.GA7600@mit.edu>\r
42 References: <1326918507-28033-1-git-send-email-amdragon@mit.edu>\r
43         <1326918507-28033-2-git-send-email-amdragon@mit.edu>\r
44         <87zkdkbqc6.fsf@nikula.org> <20120119021254.GJ16740@mit.edu>\r
45 MIME-Version: 1.0\r
46 Content-Type: text/plain; charset=us-ascii\r
47 Content-Disposition: inline\r
48 In-Reply-To: <20120119021254.GJ16740@mit.edu>\r
49 User-Agent: Mutt/1.5.21 (2010-09-15)\r
50 X-Brightmail-Tracker:\r
51  H4sIAAAAAAAAA+NgFuphleLIzCtJLcpLzFFi42IRYrdT0b24Ucbf4EUbt0Vr92cmi6bpzhbX\r
52         b85kdmD2ONvdzupx6/5rdo9nq24xBzBHcdmkpOZklqUW6dslcGXc+zKHteAaZ8WL3p9sDYy3\r
53         2LsYOTkkBEwkupe+YYWwxSQu3FvP1sXIxSEksI9R4tyTjewQzgZGiV9rmqGck0wSp84uYYVw\r
54         ljBKTG99ywzSzyKgKjH1VQOYzSagIbFt/3JGEFtEQFFi88n9QDYHB7OAkcSq73ogprCAs0Tf\r
55         l0CQCl4BbYmr525Czd/BKDG17ToTREJQ4uTMJywgNrOAlsSNfy+ZIMZISyz/xwES5hTQlfh1\r
56         +RfYN6ICKhJTTm5jm8AoNAtJ9ywk3bMQuhcwMq9ilE3JrdLNTczMKU5N1i1OTszLSy3StdDL\r
57         zSzRS00p3cQIDnQX1R2MEw4pHWIU4GBU4uGNWCrjL8SaWFZcmXuIUZKDSUmUN3ADUIgvKT+l\r
58         MiOxOCO+qDQntfgQowQHs5IIr/NnaX8h3pTEyqrUonyYlDQHi5I4r6bWOz8hgfTEktTs1NSC\r
59         1CKYrAwHh5IErwswooUEi1LTUyvSMnNKENJMHJwgw3mAhtuB1PAWFyTmFmemQ+RPMSpKifPy\r
60         gCQEQBIZpXlwvbBE9IpRHOgVYV5HkCoeYBKD634FNJgJaDBHnhTI4JJEhJRUA6Pkt/K48+xu\r
61         4tLOMyITCy0qquZNEvs5zftol+zMg9su6q4W/XPI+q8Q/8b1jZcVf4fNcTqQua48XygzSNA6\r
62         a2GeP/ubfdwfSh4lv+f3KzKyXOwjxaRX/nJyjvTP4wbqP7i23uITvHpezPJvzVvWjX18lvti\r
63         G4L7fyUEvzvxYlmwv76RoMVhViWW4oxEQy3mouJEAASka7cfAwAA\r
64 Cc: notmuch@notmuchmail.org, dkg@fifthhorseman.net\r
65 X-BeenThere: notmuch@notmuchmail.org\r
66 X-Mailman-Version: 2.1.13\r
67 Precedence: list\r
68 List-Id: "Use and development of the notmuch mail system."\r
69         <notmuch.notmuchmail.org>\r
70 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
71         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
72 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
73 List-Post: <mailto:notmuch@notmuchmail.org>\r
74 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
75 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
76         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
77 X-List-Received-Date: Mon, 23 Jan 2012 01:03:14 -0000\r
78 \r
79 Quoth myself on Jan 18 at  9:12 pm:\r
80 > Quoth Jani Nikula on Jan 19 at 12:25 am:\r
81 > > FWIW, I'm not a big fan of casting away const. Either it is const, or it\r
82 > > isn't. Not very many places would be affected if you dropped the const\r
83 > > qualifier from the related interface(s) altogether, and things would\r
84 > > look cleaner here. But I suppose this is a matter of taste.\r
85\r
86 > I'm not particularly happy with this either.  Unfortunately, dropping\r
87 > the const here affects a surprising number of places, including the\r
88 > entire MIME node API.\r
89 \r
90 I've changed my mind and removed a few consts so that this funny cast\r
91 isn't necessary.  (It also turned out that when I tried this before,\r
92 I'd given up just a smidgen before removing enough consts to make it\r
93 work.)\r
94 \r
95 > I think that, at a deep level, depth-first numbering simply doesn't\r
96 > resonate with an extremely hierarchical API like this and that\r
97 > dissonance is going to have to focus somewhere.  There have been\r
98 > discussions of switching to hierarchical part numbering before (in\r
99 > particular, because depth-first numbering is unstable with encrypted\r
100 > parts) and I'll probably restart those after all of this is done.\r
101 \r
102 I have not, however, changed my mind about this.\r