From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id wFpyNlRJY19jHQAA0tVLHw (envelope-from ) for ; Thu, 17 Sep 2020 11:32:36 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id wOc0MlRJY18LXgAAB5/wlQ (envelope-from ) for ; Thu, 17 Sep 2020 11:32:36 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 566B7940215 for ; Thu, 17 Sep 2020 11:32:36 +0000 (UTC) Received: from localhost ([::1]:49338 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kIs9T-0000gk-AC for larch@yhetil.org; Thu, 17 Sep 2020 07:32:35 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:50382) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kIs96-0000f3-TB for guix-devel@gnu.org; Thu, 17 Sep 2020 07:32:13 -0400 Received: from sender4-of-o51.zoho.com ([136.143.188.51]:21106) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kIs94-0005FI-KF for guix-devel@gnu.org; Thu, 17 Sep 2020 07:32:12 -0400 ARC-Seal: i=1; a=rsa-sha256; t=1600342318; cv=none; d=zohomail.com; s=zohoarc; b=R708JuvQWb+GsxPTrEnP01TREdFNGcXFwemOwrgPVuqCN465mdqQavQm434G+yLiUZrzeEjwopfKxHX3pFf+s59HUasy510yzVJyCIjNxpN1JutaFmCdJ4ITZ15kDzEnpF+zCx4gdmg1ng2W/VuFY/izDUrfEnp9O1baUSzBShs= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1600342318; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:To; bh=6PsmE4Y0yXi72wdFp6AUlys5PnwLErrCqk5lF+sVqT4=; b=I1uAQkPmk5XDebTvhAEFZvTY25RERQz56EUWiGUKlNHHn+x/3jsShE0kfguzwOQ8o1IrUvCkyW1Hts2KE817oQCAibOHx6m0OABT7I9Ph2ulpUNGV/0LESvGCG1tU/liFZIh/6SvLAcGzfzEpVIDydO430n8WDi03nCcFPKMtQ4= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass header.i=elephly.net; spf=pass smtp.mailfrom=rekado@elephly.net; dmarc=pass header.from= header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1600342318; s=zoho; d=elephly.net; i=rekado@elephly.net; h=References:From:To:Cc:Subject:In-reply-to:Date:Message-ID:MIME-Version:Content-Type:Content-Transfer-Encoding; bh=6PsmE4Y0yXi72wdFp6AUlys5PnwLErrCqk5lF+sVqT4=; b=aaqMRA2imlJ6wU5o9vJipboZ66lHA/CE/a8awhZFGutFeuv2X13ZaWzI2x8p6/un GEpm6g6pJDLW0dgv/2ieszXtD7IF/RZ0OkDxr+JA1jUbNWE84Rm9z5TZGe6bkp/fSIE 4OZhZbLd5hb37gcQTNaj14T85JTHKNJnWCMubdFo= Received: from localhost (p54ad4c4f.dip0.t-ipconnect.de [84.173.76.79]) by mx.zohomail.com with SMTPS id 1600342316607324.74355642397643; Thu, 17 Sep 2020 04:31:56 -0700 (PDT) References: <86sgbhz3fe.fsf@gmail.com> <87ft7gvi1h.fsf@elephly.net> User-agent: mu4e 1.4.13; emacs 27.1 From: Ricardo Wurmus To: zimoun Subject: Re: Mummi wishlist: API using Message-ID In-reply-to: X-URL: https://elephly.net X-PGP-Key: https://elephly.net/rekado.pubkey X-PGP-Fingerprint: BCA6 89B6 3655 3801 C3C6 2150 197A 5888 235F ACAC Date: Thu, 17 Sep 2020 13:33:16 +0200 Message-ID: <877dssvds3.fsf@elephly.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-ZohoMailClient: External Received-SPF: pass client-ip=136.143.188.51; envelope-from=rekado@elephly.net; helo=sender4-of-o51.zoho.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/09/17 06:00:07 X-ACL-Warn: Detected OS = Linux 3.11 and newer [fuzzy] X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Guix Devel Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: "Guix-devel" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=fail (rsa verify failed) header.d=elephly.net header.s=zoho header.b=aaqMRA2i; dmarc=none; spf=pass (aspmx1.migadu.com: domain of guix-devel-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-devel-bounces@gnu.org X-Spam-Score: 1.99 X-TUID: 95UUTuWq34dE zimoun writes: > (Sorry for the misspelling of Mumi in the Subject thread.) > > (For the record, reading [1], I discovered [2,3] with similar goals > than Mumi and that the Org-mode community uses public-inbox [4].) > > [1] https://bzg.fr/en/org-mode-9.4-is-out-can-you-help.html/ > [2] https://updates.orgmode.org/ > [3] https://github.com/bzg/woof > [4] https://orgmode.org/list/87r1vd92eg.fsf@bzg.fr/ > > On Thu, 17 Sep 2020 at 12:00, Ricardo Wurmus wrote: >> zimoun writes: > >> > Instead, it is easy to get the Message-ID. (Using emacs-notmuch, only >> > hit the key =E2=80=99ci=E2=80=99) Therefore, it could be nice to be ab= le to provide >> > e.g., the URL: >> > >> > >> > >> > redirecting to . >> >> This is an interesting idea! I don=E2=80=99t know if it=E2=80=99ll work= as a plain URL, >> because not all characters of a message id might be usable in a URL (you >> may need to URL-encode it and can=E2=80=99t just paste it in the URL bar= of your >> browser), but it would certainly work as a search query. The only >> problem is that we=E2=80=99re not currently indexing the message ids. > > I do not know but public-inbox is doing such thing, isn't it? > I mean, the example with emacs-debbugs, my "custom" function and the > service : [=E2=80=A6] It might be fine. I just don=E2=80=99t know for sure if Message-Ids may co= ntain characters that are not permitted in URLs. >> > And maybe the >> > current webpage could provide the Message-ID, easy to copy and then >> > paste in my email reader. >> >> It=E2=80=99s already there but hidden! Every message is rendered in a >> div.message. Inside of that is div.card > div.card-header > div.details >> (hidden) > div.message-id. >> >> With custom CSS you could unhide div.details, and with a custom JS you >> could grab the contents of div.message-id on the click of a button. >> Most browsers make it a little hard to augment the CSS and/or JS of a >> served page, but with a little hacking I=E2=80=99m sure you can extract = what you >> want. > > Okish... CSS/JS is not really my cup of tea. I will try to rehash > your words when giving a look at Mumi source. You can give this a try: * in Icecat hit F12 * select the Inspector (if it isn=E2=80=99t selected yet) * in the right column (next to :hov and .cls) there=E2=80=99s a plus icon w= ith hover text =E2=80=9CAdd new rule=E2=80=9D; click it * edit the text to say: =E2=80=9C.details { display: block !important }=E2= =80=9D This should show you all message ids. It=E2=80=99s possible to make this permanent but it=E2=80=99s rather tedious with Icecat/Firefox. If you just need this for scripting, though, you can parse the HTML and filter the =E2=80=9Cdiv=E2=80=9D tag with the =E2=80=9Cmessage-id=E2=80=9D = class. If scripting is desired I could probably also offer a JSON endpoint that provides all information in a format that is easily processed. --=20 Ricardo