From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: X-Spam-Status: No, score=-4.0 required=3.0 tests=ALL_TRUSTED,BAYES_00 shortcircuit=no autolearn=ham autolearn_force=no version=3.4.0 Received: from localhost (dcvr.yhbt.net [127.0.0.1]) by dcvr.yhbt.net (Postfix) with ESMTP id 25F6820281; Tue, 23 May 2017 18:43:10 +0000 (UTC) Date: Tue, 23 May 2017 18:43:10 +0000 From: Eric Wong To: =?utf-8?B?w4Z2YXIgQXJuZmrDtnLDsA==?= Bjarmason Cc: meta@public-inbox.org Subject: Re: Feature R/BUG: Auto uri_unescape() & utf8 handling Message-ID: <20170523184310.GB9543@dcvr> References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: List-Id: Ævar Arnfjörð Bjarmason wrote: > Feature request: > > It would be neat to be able to right click on highlighted msgids in > the "what's cooking e-mails" in GMail and paste them into public > inbox, unfortunately Chrome copies this URL escaped, so you get e.g.: > > https://public-inbox.org/git/?q=%3CCACBZZX4UUwzRQmyH8joYaqHnuVTjVtGBHp%252BiZKcnAnwoM_ZJhg%40mail.gmail.com%3E > > Whereas that doesn't work because it's seacrhing for a URI escaped > msgid that contains + converted to %2B > > Whereas unescaping it works: > > https://public-inbox.org/git/?q=CACBZZX4UUwzRQmyH8joYaqHnuVTjVtGBHp%2BiZKcnAnwoM_ZJhg%40mail.gmail.com > > I don't know if it breaks anything else but calling uri_unescape() > would work for these sort of msgids, but then of course searching for > %2b wouldn't work, hrm... I wonder if it could fall back to auto-unescape if it sees '%' and can't find any messages, or use an OR query. Fwiw, I've actually been thinking about doing auto-linkification for messages (and maybe other things).