From: Arun Isaac <arunisaac@systemreboot.net>
To: Christopher Baines <mail@cbaines.net>
Cc: guile-email@systemreboot.net
Subject: Re: [guile-email] decoding-error crash
Date: Mon, 16 Sep 2019 15:20:33 +0530 [thread overview]
Message-ID: <cu7tv9c8t92.fsf@systemreboot.net> (raw)
Message-ID: <20190916095033.qT9igDqhplKjJB6oGDkXS2ZILstcaTu7KIwJ7YmFlM0@z> (raw)
In-Reply-To: <87woe91zv4.fsf@cbaines.net>
[-- Attachment #1.1: Type: text/plain, Size: 995 bytes --]
> I've attached a file which should reproduce the issue.
> From: ludo@gnu.org (Ludovic Courtès)
There is an encoding error in the email, specifically in the From header
above. Notice the è in Courtès. It should have been encoded as a
"MIME-encoded word" using Quoted-Printable encoding or some other
scheme. See https://en.wikipedia.org/wiki/MIME#Encoded-Word . Only ASCII
characters are allowed in email headers. utf-8 characters are not
allowed. guile-email sees this character whose encoding it does not
understand and crashes with a decoding error. I should probably make it
raise a more meaningful error.
Could you provide more context for your code snippet? How does your
program come by this email string? Ideally, you should handle emails
only as bytevectors (or binary ports), not as strings. An email can have
characters encoded using different schemes, whereas a string is
constrained to have all characters encoded using the same scheme.
Regards,
Arun.
[-- Attachment #1.2: signature.asc --]
[-- Type: application/pgp-signature, Size: 487 bytes --]
[-- Attachment #2: Type: text/plain, Size: 110 bytes --]
--
guile-email mailing list
guile-email@systemreboot.net
https://lists.systemreboot.net/listinfo/guile-email
next prev parent reply other threads:[~2019-09-16 9:50 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-09-15 12:57 Christopher Baines
2019-09-16 9:50 ` Arun Isaac [this message]
2019-09-16 9:50 ` Arun Isaac
2019-09-16 16:32 ` Arun Isaac
2019-09-16 16:32 ` Arun Isaac
2019-09-16 20:20 ` Arun Isaac
2019-09-16 20:20 ` Arun Isaac
2019-09-22 13:19 ` Christopher Baines
2019-09-23 5:21 ` Arun Isaac
2019-09-23 5:21 ` Arun Isaac
2019-09-23 7:30 ` Christopher Baines
2019-09-23 19:28 ` Arun Isaac
2019-09-23 19:28 ` Arun Isaac
2019-09-24 7:17 ` Christopher Baines
2019-09-16 20:55 ` Christopher Baines
2019-09-17 5:37 ` Arun Isaac
2019-09-17 5:37 ` Arun Isaac
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=cu7tv9c8t92.fsf@systemreboot.net \
--to=arunisaac@systemreboot.net \
--cc=guile-email@systemreboot.net \
--cc=mail@cbaines.net \
/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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox