[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Bug reported regarding Unicode handling in email address
From: |
Ralph Corderoy |
Subject: |
Re: Bug reported regarding Unicode handling in email address |
Date: |
Thu, 10 Jun 2021 11:31:10 +0100 |
Hi Ken,
> > > The address parser code is used for a lot of things. The specific
> > > bug report was about a draft message that contained Cyrillic
> > > characters. We know what that character set was in THAT case,
> > > because it's a draft message and we can derive the locale from the
> > > environment or the nmh locale setting. But if we are processing
> > > an email message then we don't easily know the character set. In
> > > theory it should either be us-ascii or utf-8, but reality
> > > sometimes intrudes and it could be anything.
> >
> > If it's an email then won't it be ASCII?
>
> Boy, you're out of the loop! Check out RFC 6532.
Oh, SMTPUTF8, yes I've seen that around. :-)
But my point stands. nmh should know from the context where the email
address appears what encoding the bytes use when trying to parse it.
- mail/inbox/42 was written by us; it's our choice.
- mail/draft is the process's locale.
- /var/spool/$LOGNAME is in UTF-8.
--
Cheers, Ralph.
- Re: Bug reported regarding Unicode handling in email address, (continued)
- Re: Bug reported regarding Unicode handling in email address, David Levine, 2021/06/02
- Re: Bug reported regarding Unicode handling in email address, Tom Lane, 2021/06/02
- Re: Bug reported regarding Unicode handling in email address, Ken Hornstein, 2021/06/02
- Re: Bug reported regarding Unicode handling in email address, Ralph Corderoy, 2021/06/07
- Re: Bug reported regarding Unicode handling in email address, Tom Lane, 2021/06/07
Re: Bug reported regarding Unicode handling in email address, Valdis Klētnieks, 2021/06/02
- Re: Bug reported regarding Unicode handling in email address, Ken Hornstein, 2021/06/02
- Re: Bug reported regarding Unicode handling in email address, Bob Carragher, 2021/06/03
- Re: Bug reported regarding Unicode handling in email address, Ralph Corderoy, 2021/06/07
- Re: Bug reported regarding Unicode handling in email address, Ken Hornstein, 2021/06/07
- Re: Bug reported regarding Unicode handling in email address,
Ralph Corderoy <=
- Re: Bug reported regarding Unicode handling in email address, Ken Hornstein, 2021/06/10
- Re: Bug reported regarding Unicode handling in email address, Ralph Corderoy, 2021/06/11
- Re: Bug reported regarding Unicode handling in email address, Ken Hornstein, 2021/06/11
- Re: Bug reported regarding Unicode handling in email address, Ralph Corderoy, 2021/06/12
Re: Bug reported regarding Unicode handling in email address, Robert Elz, 2021/06/10
Re: Bug reported regarding Unicode handling in email address, Ken Hornstein, 2021/06/10
Re: Bug reported regarding Unicode handling in email address, Ralph Corderoy, 2021/06/11
Re: Bug reported regarding Unicode handling in email address, Robert Elz, 2021/06/11
Re: Bug reported regarding Unicode handling in email address, Ken Hornstein, 2021/06/11
Re: Bug reported regarding Unicode handling in email address, Valdis Klētnieks, 2021/06/12