emacs-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#49115: closed (Mumi inserts spurious underscore in bug title)


From: GNU bug Tracking System
Subject: bug#49115: closed (Mumi inserts spurious underscore in bug title)
Date: Sun, 01 Jan 2023 15:12:02 +0000

Your message dated Sun, 01 Jan 2023 13:15:02 +0100
with message-id <87ilhq5lyw.fsf@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@gnu.org.)


-- 
49115: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=49115
GNU Bug Tracking System
Contact help-debbugs@gnu.org with problems
--- Begin Message --- Subject: Mumi inserts spurious underscore in bug title Date: Sat, 19 Jun 2021 13:37:50 +0200
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

Attachment: signature.asc
Description: PGP signature


--- End Message ---
--- Begin Message --- Subject: Re: Mumi inserts spurious underscore in bug title Date: Sun, 01 Jan 2023 13:15:02 +0100 User-agent: mu4e 1.8.13; emacs 28.2
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


--- End Message ---

reply via email to

[Prev in Thread] Current Thread [Next in Thread]