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 <arun>; Tue, 17 Sep 2019 12:24:56 +0530
Return-path: <guile-email-bounces@systemreboot.net>
Envelope-to: arunisaac@systemreboot.net
Delivery-date: Tue, 17 Sep 2019 11:07:56 +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 <guile-email-bounces@systemreboot.net>)
	id 1iA6BY-0006sB-BE
	for arunisaac@systemreboot.net; Tue, 17 Sep 2019 11:07:56 +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 <arunisaac@systemreboot.net>)
 id 1iA6BW-0006s4-Qa; Tue, 17 Sep 2019 11:07:54 +0530
From: Arun Isaac <arunisaac@systemreboot.net>
To: Christopher Baines <mail@cbaines.net>
In-Reply-To: <87sgow0xmw.fsf@cbaines.net>
References: <87woe91zv4.fsf@cbaines.net> <cu7tv9c8t92.fsf@systemreboot.net>
 <cu7r24g8anm.fsf@systemreboot.net> <87sgow0xmw.fsf@cbaines.net>
Date: Tue, 17 Sep 2019 11:07:46 +0530
Message-ID: <cu7lfun8out.fsf@systemreboot.net>
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 <guile-email.systemreboot.net>
List-Unsubscribe: <https://lists.systemreboot.net/options/guile-email>,
 <mailto:guile-email-request@systemreboot.net?subject=unsubscribe>
List-Archive: <https://lists.systemreboot.net/archives/guile-email/>
List-Post: <mailto:guile-email@systemreboot.net>
List-Help: <mailto:guile-email-request@systemreboot.net?subject=help>
List-Subscribe: <https://lists.systemreboot.net/listinfo/guile-email>,
 <mailto:guile-email-request@systemreboot.net?subject=subscribe>
Cc: guile-email@systemreboot.net
Content-Type: multipart/mixed; boundary="===============1842379553687811395=="
Errors-To: guile-email-bounces@systemreboot.net
Message-ID: <20190917053746.ib46U261uL7MZBKl15RbNp0ZiQbRtHqmXwTVQA7deTE@z>

--===============1842379553687811395==
Content-Type: multipart/signed; boundary="=-=-=";
	micalg=pgp-sha256; protocol="application/pgp-signature"

--=-=-=
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable


>> we can relax the requirement that email headers be strictly ASCII. I'll
>> push a fix and let you know.
>
> Great, thanks.

Let me know if the fix works for you.

> In terms of where this message came from, I'm using getmail [1] to
> recieve the messages, then using the external MTA delivery config to
> pass the message off to a Guile script. I was processing the messages as
> strings, but I'm switching to using bytevectors.

Ok.

> I believe this issue happens with strings and bytevectors.

Yes, you are right. The issue of strings and bytevectors is
orthogonal. An email is a bag of bytes (not a bag of characters) -- a
binary file that needs to be parsed by guile-email.

> I've checked my mailserver, and the file corresponding to the sample
> email provided doesn't look to have a pure ASCII from header (in the
> terminal, I see a ? instead of =C3=A8, so I'm not sure what's going on
> there).

Not sure which line you are referring to, but in Icecat, as far as I can
tell, I see all the '=C3=A8's correctly. Perhaps it's a decoding issue with
whichever viewer you are using.

--=-=-=
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----

iQEzBAEBCAAdFiEEf3MDQ/Lwnzx3v3nTLiXui2GAK7MFAl2AcSoACgkQLiXui2GA
K7OONwf/fuxl63as+RsN3Xn1pwHZBai+emL7VFjcnnhiQ9AB+RyXGCAw6ea/YD8o
92nzusxc1P2J1IVlcWPujH6vQmzBkANPs2FUV0I3MqDvSdLCTk/dKQY+NhjlWXjh
u2Uca++X/cf49SMdFHLJzQPGO8K66/6ld+FP79CWbhieAaugPxnqxDSuOqrekEYC
IYUMTE+GTNdxFDvQ0b+kwOzmXdb85VzojHn0e+2NUOD9/xP2aaJOapwqy7bySGIk
6VxFrJU43esgUru1G3K2BB1xXp/OHBhJU8jIC/1t6LMztpVcfexvBv3u4ltq7wDr
GOd9H9/GmUuVt5V2o6taVBOKK5VnBg==
=tves
-----END PGP SIGNATURE-----
--=-=-=--


--===============1842379553687811395==
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

--===============1842379553687811395==--