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: AS3215 2.6.0.0/16 X-Spam-Status: No, score=-3.5 required=3.0 tests=AWL,BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,SPF_PASS shortcircuit=no autolearn=ham autolearn_force=no version=3.4.0 Received: from mail-io0-x229.google.com (mail-io0-x229.google.com [IPv6:2607:f8b0:4001:c06::229]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by dcvr.yhbt.net (Postfix) with ESMTPS id BF9441FF30 for ; Tue, 23 May 2017 10:17:31 +0000 (UTC) Received: by mail-io0-x229.google.com with SMTP id k91so94093468ioi.1 for ; Tue, 23 May 2017 03:17:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=5uCTjQ9KglG3UPjhgejoGoKZ2Ack4hppmu4vt51SMMc=; b=QCfSwJHOg5nO7/6BX6nWt2iuuK+ymk3JYy+G2rT/Q8VsYSNjYjQsSobXiFkhlmQfD+ s0kM+4RyruN7C3dJYpTwmvOTUIXs0XW8Fe+twum9/AHCGplrXxwseBzVVpflGQR608FY gnof3a3kley/svwJrgXldEh255kb2YnyXH7jZh84nqooLOZMxT7R2IUr+FCjyKdUiOeH Pj39Mx4mCF9ann/V/TqQiOQarvKGWqnTdpFqLZMYouLaZ4FupbIa3K2Gd5HWAnMlx3U7 LoCzBuy23WqjoOGLJYnqiBUJPVCTT2pyme3CHj79SQcVRC89NQpKblr7qu6bVk162Ggx Xlog== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=5uCTjQ9KglG3UPjhgejoGoKZ2Ack4hppmu4vt51SMMc=; b=moc4ytzGNZfVuhugvrJqeTtiOayk8OoqG92obfee8l49btW+UsHQImepouC+kJ7g2J O9LGJUAZZJezsGY/eUQ4E0YIZGViSnMZX7EWRvwUTzhhf5C+glOio1UeiYcfJPvrUSdD viLXLrbKfmTMaPNm1FTGk/7TBs0xW8MG9sIUPPLPSOnpB2GDPMLfmrc5ibAx9KFUqLHv zGvenHaTT5Ti2hTjas9bHWP31pWrlmm6Jys3VEda7buf49wdn7jauI5LoLZpr6ge7srB k6MQkpMHDVULrO4slTgFDaSMX4ORBRVo/xihAw/nwSJTs4dmDNMBwiePID8bnVlNc77z CBRA== X-Gm-Message-State: AODbwcBxdRsntDqlQBAlUH0FInSD/0l7VBKrnKeREuKHqGV0MhWDuEUY op0VD+ndf91CYccCGecCuU4so0LYlWSIlvI= X-Received: by 10.107.178.12 with SMTP id b12mr24704254iof.50.1495534650370; Tue, 23 May 2017 03:17:30 -0700 (PDT) MIME-Version: 1.0 Received: by 10.107.8.220 with HTTP; Tue, 23 May 2017 03:17:09 -0700 (PDT) From: =?UTF-8?B?w4Z2YXIgQXJuZmrDtnLDsCBCamFybWFzb24=?= Date: Tue, 23 May 2017 12:17:09 +0200 Message-ID: Subject: Feature R/BUG: Auto uri_unescape() & utf8 handling To: meta@public-inbox.org Content-Type: text/plain; charset="UTF-8" List-Id: 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... BUG: The code is missing a utf8::decode() or equivalent somewhere, try searching for: https://public-inbox.org/git/?q=%C3%86var The search works, but the text in the search box is garbled, the second search is https://public-inbox.org/git/?q=%C3%83%E2%80%A0var third https://public-inbox.org/git/?q=%C3%83%C6%92%C3%A2%E2%82%AC%C2%A0var etc.