From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail.systemreboot.net (mugam.systemreboot.net [139.59.75.54]) by localhost (mpop-1.4.5) with POP3 for ; Mon, 23 Sep 2019 12:11:25 +0530 Return-path: Envelope-to: arunisaac@systemreboot.net Delivery-date: Mon, 23 Sep 2019 10:51:13 +0530 Received: from localhost.localdomain ([127.0.0.1] helo=[192.168.2.12]) by systemreboot.net with esmtp (Exim 4.92.1) (envelope-from ) id 1iCGme-0008UD-TZ for arunisaac@systemreboot.net; Mon, 23 Sep 2019 10:51:12 +0530 Received: from [49.206.3.117] (helo=steel) by systemreboot.net with esmtpsa (TLSv1.3:TLS_AES_256_GCM_SHA384:256) (Exim 4.92.1) (envelope-from ) id 1iCGmc-0008U4-J6; Mon, 23 Sep 2019 10:51:10 +0530 From: Arun Isaac To: Christopher Baines In-Reply-To: <87muew4gel.fsf@cbaines.net> References: <87woe91zv4.fsf@cbaines.net> <87muew4gel.fsf@cbaines.net> Date: Mon, 23 Sep 2019 10:51:00 +0530 Message-ID: MIME-Version: 1.0 Subject: Re: [guile-email] decoding-error crash X-BeenThere: guile-email@systemreboot.net X-Mailman-Version: 2.1.29 Precedence: list List-Id: guile-email discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: guile-email@systemreboot.net Content-Type: multipart/mixed; boundary="===============9020887588397002054==" Errors-To: guile-email-bounces@systemreboot.net Message-ID: <20190923052100.a6u0Eu4aR9DDzpREsBrKLP-2lW8sEvYhzNW3kyBTKTw@z> --===============9020887588397002054== Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" --=-=-= Content-Type: text/plain > I think there might be other emails on the guix-commits mailing list > that still can't be read. > > For testing, I downloaded > https://lists.gnu.org/archive/mbox/guix-commits/2019-08 and then tried > to read it with: > > (map parse-email (call-with-input-file "2019-08" mbox->emails)) These errors occur due to the occurrence of non-standard ISO-8859-1 characters in the headers due to Emacs message mode parens style addresses. The earlier fix only allows UTF-8 or ASCII characters. I have pushed a new fix that uses the substitute conversion strategy to silently fail without an error in the event of something other than UTF-8 or ASCII encoding. https://git.systemreboot.net/guile-email/commit/?id=c10524726e0a91445a0329cc9aa72b7467258381 The alternative to this is to implement some complicated encoding guessing scheme. I'm not sure it's worth the effort. WDYT? --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEEf3MDQ/Lwnzx3v3nTLiXui2GAK7MFAl2IVjwACgkQLiXui2GA K7NNrQf/QgvWv1FbQFMRNhznVUdcwy/6XXIFTeQPRVZF2V/JkQTLCKBuwNnc50HF /fMPb1/q6J/dgTxx4euZpwVpeHDGSOVW+SO4pQK7BrnIhssOGGY/XWnkqolwrcy3 kcMllUGl6KI8TSC8/Sl6fUYInH4jgHQbH3ZcrXbLTJqIZNf4/MlcuI31+yoCEXYx 2fww61qISairkwQclQDSFhU346NvHr8bce20g4JGM3XMNUfgauIlSv3Kj+FVqf8h uK2Qi/1uK6Bj9kXi92rspSBQxjdMLB5zH1j7ouL7ItNDxlEYxaC87LEVHrHUWrVm Bq2qkrd1flJu7WX3Q79HeJPdePCpvg== =F6RR -----END PGP SIGNATURE----- --=-=-=-- --===============9020887588397002054== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline -- guile-email mailing list guile-email@systemreboot.net https://lists.systemreboot.net/listinfo/guile-email --===============9020887588397002054==--