unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
From: Jakub Wilk <jwilk@jwilk.net>
To: 1021614@bugs.debian.org
Subject: Bug#1021614: notmuch: RFC2047-encoded special characters in display-name show up unquoted
Date: Tue, 11 Oct 2022 22:28:30 +0200	[thread overview]
Message-ID: <20221011202830.n2ahsqiexuw5sn5b@jwilk.net> (raw)
In-Reply-To: <20221011200231.53rzm7divs25dr5k@jwilk.net>

[-- Attachment #1: Type: text/plain, Size: 88 bytes --]

Attaching the reprocucer scripts, which somehow got lost in transport!?

-- 
Jakub Wilk

[-- Attachment #2: notmuch-show-from --]
[-- Type: text/plain, Size: 255 bytes --]

#!/bin/bash
set -e -u
tmpdir="$(mktemp -d)"
export NOTMUCH_DATABASE="$tmpdir"
notmuch --config '' new > /dev/null
mkdir -p "$NOTMUCH_DATABASE"/{cur,new,tmp}
notmuch --config '' insert > /dev/null
notmuch --config '' show '*' | grep ^From:
rm -rf "tmpdir"

[-- Attachment #3: gmime-show-from --]
[-- Type: text/plain, Size: 365 bytes --]

#!/usr/bin/python3

import sys

import gi
gi.require_version('GMime', '3.0')
from gi.repository import GMime
GMime.init()

stream = GMime.StreamPipe.new(sys.stdin.fileno())
parser = GMime.Parser.new_with_stream(stream)
msg = parser.construct_message()
addrs = msg.get_from()
addrs = addrs.to_string(GMime.FormatOptions(), True)
print('From:', addrs)

[-- Attachment #4: Type: text/plain, Size: 0 bytes --]



      reply	other threads:[~2022-10-14 11:22 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-10-11 20:02 Bug#1021614: notmuch: RFC2047-encoded special characters in display-name show up unquoted Jakub Wilk
2022-10-11 20:28 ` Jakub Wilk [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://notmuchmail.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20221011202830.n2ahsqiexuw5sn5b@jwilk.net \
    --to=jwilk@jwilk.net \
    --cc=1021614@bugs.debian.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://yhetil.org/notmuch.git/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).