GNU bug report logs - #49115
Mumi inserts spurious underscore in bug title

Previous Next

Package: mumi;

Reported by: Tobias Geerinckx-Rice <me <at> tobias.gr>

Date: Sat, 19 Jun 2021 11:38:01 UTC

Severity: normal

Done: Ricardo Wurmus <rekado <at> elephly.net>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Ricardo Wurmus <rekado <at> elephly.net>
Cc: tracker <at> debbugs.gnu.org
Subject: bug#49115: closed (Mumi inserts spurious underscore in bug title)
Date: Sun, 01 Jan 2023 15:12:02 +0000
[Message part 1 (text/plain, inline)]
Your message dated Sun, 01 Jan 2023 13:15:02 +0100
with message-id <87ilhq5lyw.fsf <at> elephly.net>
and subject line Re: Mumi inserts spurious underscore in bug title
has caused the debbugs.gnu.org bug report #49115,
regarding Mumi inserts spurious underscore in bug title
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs <at> gnu.org.)


-- 
49115: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=49115
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Tobias Geerinckx-Rice <me <at> tobias.gr>
To: Bug Guix <bug-guix <at> gnu.org>
Subject: Mumi inserts spurious underscore in bug title
Date: Sat, 19 Jun 2021 13:37:50 +0200
[Message part 3 (text/plain, inline)]
Guix,

See <http://issues.guix.gnu.org/49114>, which Mumi currently 
titles

 ‘guix_ lint’ should catch certificate validation exceptions

There's no underscore in the original subject.  It's also rendered 
correctly in the grey ‘mail view’ div:

 Tobias Geerinckx-Rice wrote seconds ago
 ‘guix lint’ should catch certificate validation exceptions

Perhaps due to my use of Unicode quotes.  There's nothing 
suspicious in the HTML.

Kind regards,

T G-R
[signature.asc (application/pgp-signature, inline)]
[Message part 5 (message/rfc822, inline)]
From: Ricardo Wurmus <rekado <at> elephly.net>
To: Arun Isaac <arunisaac <at> systemreboot.net>
Cc: 49115-done <at> debbugs.gnu.org, guile-email <at> systemreboot.net
Subject: Re: Mumi inserts spurious underscore in bug title
Date: Sun, 01 Jan 2023 13:15:02 +0100
Hi Arun,

> Thanks for the bug report!
>
> It's very strange, but I'm not able to reproduce this.

Thank you for your analysis!

> Even at https://issues.guix.gnu.org/49114 , only the "bug title" has the
> spurious underscore. The subject of the first message does not. Is the
> bug title something stored in the xapian index? Could it be that this
> was an older bug that has corrupted the xapian index?

As part of #60410 I rebuilt the xapian database (deleted it and then ran
“mumi fetch”), so it’s not that.

[… time passes …]

I think I found the culprit in mumi/debbugs.scm:

    (define qp-pattern "=\\?UTF-8\\?Q\\?([^?]+)\\?=")
    …
    (let ((subject (or (assoc-ref properties "Subject") "")))
      (if (string-contains subject "=?UTF-8?Q?")
          (or (false-if-exception
               (utf8->string
                (quoted-printable-decode
                 (regexp-substitute/global #f qp-pattern
                                           subject 'pre 1 'post))))
              subject)
          subject))

I’m probably not using quoted-printable-decode correctly.  My apologies
for assuming a bug in Guile Email.  I changed this with commit
9d7eb3c5efe6427a1a89fb3e4c7165259edff4dd, using parse-email-headers.

> If I understand correctly, mumi does not rebuild its xapian index. I
> think it should do so from time to time. It would help prevent old bugs
> from getting persisted in storage.

True.  I’ll be sure to rebuild the index on the next upgrade.

> Cheers, and wish you a Happy New Year! :-)

Thank you, and a Happy New Year to you too!

-- 
Ricardo


This bug report was last modified 1 year and 116 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.