* Non-ASCII characters in Subject lines
@ 2009-04-25 7:29 Eli Zaretskii
2009-04-25 8:01 ` Sven Joachim
` (2 more replies)
0 siblings, 3 replies; 8+ messages in thread
From: Eli Zaretskii @ 2009-04-25 7:29 UTC (permalink / raw)
To: emacs-devel
Is it allowed by the RFCs to have non-ASCII characters in the Subject
line of an email message?
Rmail currently doesn't decode this part, but maybe it should.
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Non-ASCII characters in Subject lines
2009-04-25 7:29 Non-ASCII characters in Subject lines Eli Zaretskii
@ 2009-04-25 8:01 ` Sven Joachim
2009-04-25 10:16 ` Eli Zaretskii
2009-04-25 16:28 ` Stefan Monnier
2009-04-26 14:32 ` Stephen J. Turnbull
2 siblings, 1 reply; 8+ messages in thread
From: Sven Joachim @ 2009-04-25 8:01 UTC (permalink / raw)
To: Eli Zaretskii; +Cc: emacs-devel
On 2009-04-25 09:29 +0200, Eli Zaretskii wrote:
> Is it allowed by the RFCs to have non-ASCII characters in the Subject
> line of an email message?
If it is properly encoded as described in RFC 2047, yes.
> Rmail currently doesn't decode this part, but maybe it should.
Gnus does that, see lisp/gnus/rfc2047.el for implementation details.
Sven
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Non-ASCII characters in Subject lines
2009-04-25 8:01 ` Sven Joachim
@ 2009-04-25 10:16 ` Eli Zaretskii
2009-04-25 11:32 ` Sven Joachim
0 siblings, 1 reply; 8+ messages in thread
From: Eli Zaretskii @ 2009-04-25 10:16 UTC (permalink / raw)
To: Sven Joachim; +Cc: emacs-devel
> From: Sven Joachim <svenjoac@gmx.de>
> Cc: emacs-devel@gnu.org
> Date: Sat, 25 Apr 2009 10:01:16 +0200
>
> On 2009-04-25 09:29 +0200, Eli Zaretskii wrote:
>
> > Is it allowed by the RFCs to have non-ASCII characters in the Subject
> > line of an email message?
>
> If it is properly encoded as described in RFC 2047, yes.
No, I'm talking about raw encoded non-ASCII characters, such as the
ones in this Subject line:
Subject: Forma\347\343o em Hipnose Cl\355nica - LISBOA - \332LTIMAS VAGAS
> > Rmail currently doesn't decode this part, but maybe it should.
>
> Gnus does that, see lisp/gnus/rfc2047.el for implementation details.
Thanks for the pointer. But what does Gnus do with Subject lines such
as the one above?
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Non-ASCII characters in Subject lines
2009-04-25 10:16 ` Eli Zaretskii
@ 2009-04-25 11:32 ` Sven Joachim
0 siblings, 0 replies; 8+ messages in thread
From: Sven Joachim @ 2009-04-25 11:32 UTC (permalink / raw)
To: Eli Zaretskii; +Cc: emacs-devel
On 2009-04-25 12:16 +0200, Eli Zaretskii wrote:
>> From: Sven Joachim <svenjoac@gmx.de>
>> Cc: emacs-devel@gnu.org
>> Date: Sat, 25 Apr 2009 10:01:16 +0200
>>
>> On 2009-04-25 09:29 +0200, Eli Zaretskii wrote:
>>
>> > Is it allowed by the RFCs to have non-ASCII characters in the Subject
>> > line of an email message?
>>
>> If it is properly encoded as described in RFC 2047, yes.
>
> No, I'm talking about raw encoded non-ASCII characters, such as the
> ones in this Subject line:
>
> Subject: Forma\347\343o em Hipnose Cl\355nica - LISBOA - \332LTIMAS VAGAS
>
>> > Rmail currently doesn't decode this part, but maybe it should.
>>
>> Gnus does that, see lisp/gnus/rfc2047.el for implementation details.
>
> Thanks for the pointer. But what does Gnus do with Subject lines such
> as the one above?
It decodes them as well.
Sven
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Non-ASCII characters in Subject lines
2009-04-25 7:29 Non-ASCII characters in Subject lines Eli Zaretskii
2009-04-25 8:01 ` Sven Joachim
@ 2009-04-25 16:28 ` Stefan Monnier
2009-04-25 17:19 ` Eli Zaretskii
2009-04-26 14:32 ` Stephen J. Turnbull
2 siblings, 1 reply; 8+ messages in thread
From: Stefan Monnier @ 2009-04-25 16:28 UTC (permalink / raw)
To: Eli Zaretskii; +Cc: emacs-devel
> Is it allowed by the RFCs to have non-ASCII characters in the Subject
> line of an email message?
You mean to have bytes >127 ? No, it's not allowed in any part of
the header. Actually, I'm not sure it's "disallowed", but rather its
meaning falls out of the scope of the RFC.
> Rmail currently doesn't decode this part, but maybe it should.
Such headers appear occasionally, and IIUC Gnus decodes them with the
some default coding system, but I don't think it's high priority.
Stefan
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Non-ASCII characters in Subject lines
2009-04-25 16:28 ` Stefan Monnier
@ 2009-04-25 17:19 ` Eli Zaretskii
0 siblings, 0 replies; 8+ messages in thread
From: Eli Zaretskii @ 2009-04-25 17:19 UTC (permalink / raw)
To: Stefan Monnier; +Cc: emacs-devel
> From: Stefan Monnier <monnier@iro.umontreal.ca>
> Cc: emacs-devel@gnu.org
> Date: Sat, 25 Apr 2009 12:28:42 -0400
>
> > Is it allowed by the RFCs to have non-ASCII characters in the Subject
> > line of an email message?
>
> You mean to have bytes >127 ?
Yes.
> > Rmail currently doesn't decode this part, but maybe it should.
>
> Such headers appear occasionally, and IIUC Gnus decodes them with the
> some default coding system, but I don't think it's high priority.
OK, thanks.
^ permalink raw reply [flat|nested] 8+ messages in thread
* Non-ASCII characters in Subject lines
2009-04-25 7:29 Non-ASCII characters in Subject lines Eli Zaretskii
2009-04-25 8:01 ` Sven Joachim
2009-04-25 16:28 ` Stefan Monnier
@ 2009-04-26 14:32 ` Stephen J. Turnbull
2009-04-26 17:41 ` Eli Zaretskii
2 siblings, 1 reply; 8+ messages in thread
From: Stephen J. Turnbull @ 2009-04-26 14:32 UTC (permalink / raw)
To: Eli Zaretskii; +Cc: emacs-devel
Eli Zaretskii writes:
> Is it allowed by the RFCs to have non-ASCII characters in the Subject
> line of an email message?
The wire format of a header must contain no octets outside of the
range 0-127 inclusive. More recent versions of the standard (ie, RFC
5322) restrict this further, disallowing most ASCII control
characters. (IIRC, only TAB, CR, and LF are allowed by RFC 5322.)
> Rmail currently doesn't decode this part, but maybe it should.
That doesn't make sense; there's nothing decodable there, it's raw
text. Do you mean that Rmail should try to display a character glyph
rather than an octal escape or the like?
Trying to display should be optional (at least in theory, some
terminals may use some of those characters as control characters).
But it should be available, I guess (Postel Principle).
Note that in my experience almost all such headers are sent by
spammers, and the rest by programming wannabes. Are you sure you
care?
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Non-ASCII characters in Subject lines
2009-04-26 14:32 ` Stephen J. Turnbull
@ 2009-04-26 17:41 ` Eli Zaretskii
0 siblings, 0 replies; 8+ messages in thread
From: Eli Zaretskii @ 2009-04-26 17:41 UTC (permalink / raw)
To: Stephen J. Turnbull; +Cc: emacs-devel
> From: "Stephen J. Turnbull" <stephen@xemacs.org>
> Cc: emacs-devel@gnu.org
> Date: Sun, 26 Apr 2009 23:32:26 +0900
>
> Do you mean that Rmail should try to display a character glyph
> rather than an octal escape or the like?
Yes, that's what I meant.
> Are you sure you care?
I wasn't, that's why I asked.
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2009-04-26 17:41 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-04-25 7:29 Non-ASCII characters in Subject lines Eli Zaretskii
2009-04-25 8:01 ` Sven Joachim
2009-04-25 10:16 ` Eli Zaretskii
2009-04-25 11:32 ` Sven Joachim
2009-04-25 16:28 ` Stefan Monnier
2009-04-25 17:19 ` Eli Zaretskii
2009-04-26 14:32 ` Stephen J. Turnbull
2009-04-26 17:41 ` Eli Zaretskii
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.