unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: David Bremner <bremner@unb.ca>
To: Lars Ingebrigtsen <larsi@gnus.org>
Cc: "50713@debbugs.gnu.org" <50713@debbugs.gnu.org>
Subject: bug#50713: 27.1; mm-inline-render-with-file should not (always?) use mm-with-unibyte-buffer
Date: Sat, 25 Sep 2021 21:44:14 +0000	[thread overview]
Message-ID: <875yuopbyq.fsf@tethera.net> (raw)
In-Reply-To: <87ee9ifsbh.fsf@gnus.org>

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

Lars Ingebrigtsen <larsi@gnus.org> writes:

> ⚠External message: Use caution.
>
> David Bremner <bremner@unb.ca> writes:
>
>> 1) Set mm-text-html-renderer to 'links
>> 2) Render some html like the attached partial spam containing multibyte
>> characters. Observe that the mulibyte characters are inserted as
>> individual bytes
>
> The test file you included didn't include any charset specification, so
> it's just a bunch of bytes, anyway, so there's no way for links to
> render this in any particular manner.  So I'm unable to reproduce the
> problem.
>
> Can you instead forward a complete email message that displays the
> issue?  `S D r' on one of the messages to 50713@debbugs.gnu.org should
> do the trick.
>
> (But note that spam messages are notoriously malformed, so there's often
> no correct way to display them.)

Please find attached an example mail file. It is a spam message, but it
does seem to declare utf8 charsets. It is display OK in gnus (and in
notmuch, using mm-* to process the mime parts) if mm-text-html-renderer
is 'shr, but not if it is 'links,


[-- Attachment #2: 1624795466.Vfd01I74f978M270604.fethera2,S --]
[-- Type: application/octet-stream, Size: 10801 bytes --]

Return-Path: <SRS0=ZW9g=LV=aclibresciane.it=rem@bounce2.pobox.com>
X-Original-To: david@tethera.net
Delivered-To: david@tethera.net
Received: from fb5.pobox.com (fb5.pobox.com [64.147.108.59])
	by fethera.tethera.net (Postfix) with ESMTPS id 384055FD20
	for <david@tethera.net>; Sun, 27 Jun 2021 08:04:26 -0400 (EDT)
Received: from pb-mx23.pobox.com (pb-mx23.pobox.com [10.110.30.39])
	by fb5.pobox.com (Postfix) with ESMTP id 6C8AD2BE3C
	for <david@tethera.net>; Sun, 27 Jun 2021 08:04:25 -0400 (EDT)
	(envelope-from SRS0=ZW9g=LV=aclibresciane.it=rem@bounce2.pobox.com)
Received: from pb-mx23.sea.icgroup.com (localhost.local [127.0.0.1])
	by pb-mx23.pobox.com (Postfix) with ESMTP id 9AF03368D8
	for <david@tethera.net>; Sun, 27 Jun 2021 08:04:20 -0400 (EDT)
	(envelope-from SRS0=ZW9g=LV=aclibresciane.it=rem@bounce2.pobox.com)
X-Pobox-Loop-ID: 298ca010d936ca6df57848fa43f75400c48ccd8d
Delivered-To: ddb@cpan.org
X-Pobox-Delivery-ID:
 E285A3-646462406370616E2E6F7267-61544368C8-1624795460-61099943!pb-mx23.pobox.com
Received: from pb-mx23.pobox.com (localhost.local [127.0.0.1])
	by pb-mx23.pobox.com (Postfix) with ESMTP id 61544368C8;
	Sun, 27 Jun 2021 08:04:20 -0400 (EDT)
	(envelope-from rem@aclibresciane.it)
Received: from pb-mx23.pobox.com (localhost [127.0.0.1])
    by pb-mx23.pobox.com (Authentication Milter) with ESMTP
    id 6A7A4275435;
    Sun, 27 Jun 2021 08:04:20 -0400
ARC-Seal: i=1; a=rsa-sha256; cv=none; d=pobox.com; s=arcseal; t=
    1624795460; b=rQkZBx1PJ9CwZHELVQ6/Ic8UfUgcHxhzD+8ODLbst6icBQ2qzi
    R0lHYkNloVbAB99C4IU43C9qOMz+NHFN4ykT4Oysojc1cLbgG6LKA9WRYnoPeDNn
    pRQS+8fvahOL8U2XKbmGozy0E54u6hNUUUEFeoJj5c1/GCEco7nhIDRPa0LDn53i
    ld5odJOwrmZiwJ1mgyEeVSX61JqOmjnsH5Hupu5N/ycZ7FD2OSKPr8WNVrkYQV2I
    mR9smUFKeR0DMkSd9RNZOnBMgXOS6qHd+qwOLdJuEWkUrSvPy9ToCfe2KGfQgXwR
    0FbHMKDHulRllcFNndYF7wiO/jak37JCX9hQ==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=
    pobox.com; h=date:from:reply-to:message-id:subject:mime-version
    :content-type; s=arcseal; t=1624795460; bh=yMw7cgSNJcZepsk0HhhP9
    IuDjCfJKip0eVxrwwp+azM=; b=ciet6gdoNIpUfKiHMjlUqaz4I2icLR/432HTb
    yw0ckhXP1WzvqbBp0VfqfKEtaS/53mH5wQgPrn5Txjh0tkvKQaP1OHLgytBdxKZr
    /u8dVJVgRMsLV7cBCufV6pDAO16WplnX72fmiuSx8xHzaIMuRlIBUcWjsAPM+O1S
    Qg+szfCRKC6vTkJ2VArmQRWbkpVV9luOEdvjwvfbcCiMlQbenX5S5WOFAcnLCllW
    ZLlhV6m9x94WIMs26zTGgQqLMXFhYm9RSPVA8g9vu4eM4lzwljyi7Dvnf3+Tn10Z
    BWOPGXWb7gzEUXIMBWIhZt2B1UCjj2dBSDOBL5XVIJFQfzUlA==
ARC-Authentication-Results: i=1; pb-mx23.pobox.com;
    arc=none (no signatures found);
    bimi=skipped (DMARC did not pass);
    dkim=none (no signatures found);
    dmarc=none policy.published-domain-policy=none
    policy.applied-disposition=none policy.evaluated-disposition=none
    (p=none,d=none,d.eval=none) policy.policy-from=p
    header.from=aclibresciane.it;
    iprev=pass smtp.remote-ip=62.196.164.220
    (imap.aclibresciane.it,mail.aclibresciane.it,pop3.aclibresciane.it,smtp.aclibresciane.it);
    spf=pass smtp.mailfrom=rem@aclibresciane.it
    smtp.helo=zimbra.aclibresciane.it;
    x-aligned-from=pass (Address match);
    x-me-sender=none;
    x-ptr=fail smtp.helo=zimbra.aclibresciane.it
    policy.ptr=
    imap.aclibresciane.it,mail.aclibresciane.it,pop3.aclibresciane.it,smtp.aclibresciane.it;
    x-return-mx=pass header.domain=aclibresciane.it policy.is_org=yes
    (MX Records found: mail.aclibresciane.it);
    x-return-mx=pass smtp.domain=aclibresciane.it policy.is_org=yes
    (MX Records found: mail.aclibresciane.it);
    x-tls=pass smtp.version=TLSv1.2 smtp.cipher=ECDHE-RSA-AES256-GCM-SHA384
    smtp.bits=256/256;
    x-vs=clean score=30 state=0
Authentication-Results: pb-mx23.pobox.com;
    arc=none (no signatures found);
    bimi=skipped (DMARC did not pass);
    dkim=none (no signatures found);
    dmarc=none policy.published-domain-policy=none
      policy.applied-disposition=none policy.evaluated-disposition=none
      (p=none,d=none,d.eval=none) policy.policy-from=p
      header.from=aclibresciane.it;
    iprev=pass smtp.remote-ip=62.196.164.220
      (imap.aclibresciane.it,mail.aclibresciane.it,pop3.aclibresciane.it,smtp.aclibresciane.it);
    spf=pass smtp.mailfrom=rem@aclibresciane.it
      smtp.helo=zimbra.aclibresciane.it;
    x-aligned-from=pass (Address match);
    x-me-sender=none;
    x-ptr=fail smtp.helo=zimbra.aclibresciane.it
      policy.ptr=
      imap.aclibresciane.it,mail.aclibresciane.it,pop3.aclibresciane.it,smtp.aclibresciane.it;
    x-return-mx=pass header.domain=aclibresciane.it policy.is_org=yes
      (MX Records found: mail.aclibresciane.it);
    x-return-mx=pass smtp.domain=aclibresciane.it policy.is_org=yes
      (MX Records found: mail.aclibresciane.it);
    x-tls=pass smtp.version=TLSv1.2 smtp.cipher=ECDHE-RSA-AES256-GCM-SHA384
      smtp.bits=256/256;
    x-vs=clean score=30 state=0
X-ME-VSCause: gggruggvucftvghtrhhoucdtuddrgeduledrfeehvddggeekucdltddurdegudejrddttd
    dmucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdggtfgf
    nhhsuhgsshgtrhhisggvpdfurfetoffkrfgpnffqhgenuceurghilhhouhhtmecufedttd
    enuchmihhsshhinhhgucfvqfcufhhivghlugculdeftddmnecujfgurhepfffhrhfkufgg
    tghiofhtsegrtdgtreertdejnecuhfhrohhmpefhrhgruhcuofgrrhhirgcugfhlihhsrg
    gsvghthhcuufgthhgrvghffhhlvghruceorhgvmhesrggtlhhisghrvghstghirghnvgdr
    ihhtqeenucggtffrrghtthgvrhhnpeduueegudejkefgtdeludfhhfekjedtuedvgedtte
    etueekiefhkeduvdeuieeuudenucffohhmrghinhepfihikhhiphgvughirgdrohhrghen
    ucfkphepiedvrdduleeirdduieegrddvvddtpdduleejrddvuddtrdejledrvddvudenuc
    evlhhushhtvghrufhiiigvpedvnecurfgrrhgrmhepihhnvghtpeeivddrudeliedrudei
    gedrvddvtddphhgvlhhopeiiihhmsghrrgdrrggtlhhisghrvghstghirghnvgdrihhtpd
    hmrghilhhfrhhomhepoehrvghmsegrtghlihgsrhgvshgtihgrnhgvrdhitheq
X-ME-VSScore: 30
X-ME-VSCategory: clean
Received-SPF: pass
    (aclibresciane.it: 62.196.164.220 is authorized to use 'rem@aclibresciane.it' in 'mfrom' identity (mechanism 'mx' matched))
    receiver=pb-mx23.pobox.com;
    identity=mailfrom;
    envelope-from="rem@aclibresciane.it";
    helo=zimbra.aclibresciane.it;
    client-ip=62.196.164.220
Received: from zimbra.aclibresciane.it (pop3.aclibresciane.it [62.196.164.220])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(No client certificate requested)
	by pb-mx23.pobox.com (Postfix) with ESMTPS;
	Sun, 27 Jun 2021 08:03:53 -0400 (EDT)
	(envelope-from rem@aclibresciane.it)
Received: from localhost (localhost [127.0.0.1])
	by zimbra.aclibresciane.it (Postfix) with ESMTP id 039EE247737;
	Sun, 27 Jun 2021 11:39:41 +0000 (UTC)
Received: from zimbra.aclibresciane.it ([127.0.0.1])
	by localhost (zimbra.aclibresciane.it [127.0.0.1]) (amavisd-new, port 10032)
	with ESMTP id SOZtmgHm7Rwr; Sun, 27 Jun 2021 11:39:40 +0000 (UTC)
Received: from localhost (localhost [127.0.0.1])
	by zimbra.aclibresciane.it (Postfix) with ESMTP id 8F7892465FF;
	Sun, 27 Jun 2021 11:39:40 +0000 (UTC)
X-Virus-Scanned: amavisd-new at zimbra.aclibresciane.it
Received: from zimbra.aclibresciane.it ([127.0.0.1])
	by localhost (zimbra.aclibresciane.it [127.0.0.1]) (amavisd-new, port 10026)
	with ESMTP id I4UNa08A_y1E; Sun, 27 Jun 2021 11:39:40 +0000 (UTC)
Received: from zimbra.aclibresciane.it (zimbra.aclibresciane.it [172.25.0.54])
	by zimbra.aclibresciane.it (Postfix) with ESMTP id 2A5CE2461AD;
	Sun, 27 Jun 2021 11:39:40 +0000 (UTC)
Date: Sun, 27 Jun 2021 11:39:40 +0000 (UTC)
From: Frau Maria Elisabeth Schaeffler <rem@aclibresciane.it>
Reply-To: Frau Maria Elisabeth Schaeffler <mariaelisabethschaeffler022@gmail.com>
Message-ID: <246255808.360851.1624793980154.JavaMail.zimbra@aclibresciane.it>
Subject: Re: Spende
MIME-Version: 1.0
Content-Type: multipart/alternative; 
	boundary="=_41a05477-8b99-4a9d-97cd-b0cdb569dc1f"
X-Originating-IP: [197.210.79.221]
X-Mailer: Zimbra 8.8.15_GA_4018 (zclient/8.8.15_GA_4018)
Thread-Index: Jxzs3WHBVrrK0Y9CYYDyat5CXP9mkg==
Thread-Topic: Spende
X-Pobox-Client-Address: 62.196.164.220
X-Pobox-Client-Name: mail.aclibresciane.it
X-Pobox-Client-HELO: zimbra.aclibresciane.it
X-Pobox-Original-Sender: rem@aclibresciane.it

--=_41a05477-8b99-4a9d-97cd-b0cdb569dc1f
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable





Hallo,
Ich bin Maria Elisabeth , eine deutsche Gesch=C3=A4ftsfrau, Investorin, und=
 nachdem ich meinen Mann im Krankenhausbett verloren hatte, sagte er mir, i=
ch solle eine Spende von 1.000.000 Euro an einen gutenMenschen wie Sie ausg=
eben. Ich habe 35 Prozent meines pers=C3=B6nlichen Verm=C3=B6gens f=C3=BCr =
wohlt=C3=A4tige Zwecke verschenkt. Und ich habe auch zugesagt, den Rest von=
 35% in diesem Jahr 2021 an Einzelpersonen zu verschenken. Ich habe beschlo=
ssen, Ihnen 1000.000,00 Euro zu spenden. Wenn Sie an meiner Spende interess=
iert sind, kontaktieren Sie mich f=C3=BCr weitere Informationen.
Link lesen Sie k=C3=B6nnen hier sehen: https://en.wikipedia.org/wiki/Maria-=
Elisabeth_Schaeffler
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
Herzliche Gr=C3=BC=C3=9Fe,
Frau Maria Elisabeth Schaeffler,
Vorsitzender
Supermarktkette.
E-Mail: mariaelisabethschaeffler022@gmail.com

--=_41a05477-8b99-4a9d-97cd-b0cdb569dc1f
Content-Type: text/html; charset=utf-8
Content-Transfer-Encoding: quoted-printable

<html><head><style> body {height: 100%; color:#000000; font-size:12pt; font=
-family:arial, helvetica, sans-serif;}</style></head><body><div><br></div><=
div><br></div><div><br></div><div><div><br><strong>Hallo,</strong></div><di=
v><br></div><div><strong>Ich bin Maria Elisabeth , eine deutsche Gesch=C3=
=A4ftsfrau, Investorin, und nachdem ich meinen Mann im Krankenhausbett verl=
oren hatte, sagte er mir, ich solle eine Spende von 1.000.000 Euro an einen=
 gutenMenschen wie Sie ausgeben. Ich habe 35 Prozent meines pers=C3=B6nlich=
en Verm=C3=B6gens f=C3=BCr wohlt=C3=A4tige Zwecke verschenkt. Und ich habe =
auch zugesagt, den Rest von 35% in diesem Jahr 2021 an Einzelpersonen zu ve=
rschenken. Ich habe beschlossen, Ihnen 1000.000,00 Euro zu spenden. Wenn Si=
e an meiner Spende interessiert sind, kontaktieren Sie mich f=C3=BCr weiter=
e Informationen.</strong></div><div><br></div><div><strong>Link lesen Sie k=
=C3=B6nnen hier sehen: https://en.wikipedia.org/wiki/Maria-Elisabeth_Schaef=
fler</strong></div><div><br></div><div><strong>=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D</strong></div><div><br></div><div><strong>Herzlich=
e Gr=C3=BC=C3=9Fe,</strong><br><strong>Frau Maria Elisabeth Schaeffler,</st=
rong><br><strong>Vorsitzender</strong><br><strong>Supermarktkette.</strong>=
<br><strong>E-Mail: mariaelisabethschaeffler022@gmail.com</strong><br></div=
></div></body></html>
--=_41a05477-8b99-4a9d-97cd-b0cdb569dc1f--

  reply	other threads:[~2021-09-25 21:44 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-09-21  0:57 bug#50713: 27.1; mm-inline-render-with-file should not (always?) use mm-with-unibyte-buffer David Bremner
2021-09-21  4:47 ` Lars Ingebrigtsen
2021-09-25 21:44   ` David Bremner [this message]
2021-09-26  6:31     ` Lars Ingebrigtsen
2021-09-26 11:18       ` David Bremner

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://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=875yuopbyq.fsf@tethera.net \
    --to=bremner@unb.ca \
    --cc=50713@debbugs.gnu.org \
    --cc=larsi@gnus.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://git.savannah.gnu.org/cgit/emacs.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).