Sujet : [MacCafé] From mal formé (was: Annulations abusif)
De : om+news (at) *nospam* miakinen.net (Olivier Miakinen)
Groupes : fr.usenet.abus.d fr.comp.usenet.lecteurs-de-newsSuivi-à : fr.comp.usenet.lecteurs-de-newsDate : 02. Oct 2021, 11:30:30
Autres entêtes
Organisation : There's no cabale
Message-ID : <sj9cc6$ns5$1@cabale.usenet-fr.net>
References : 1 2 3 4 5 6 7
User-Agent : Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Firefox/52.0 SeaMonkey/2.49.4
[diapublication avec suivi]
Le 02/10/2021 00:10, Rambo a écrit :
Et çà c'est quoi ?
[...]
From: Souris 8-) <souris@meta-science.fr>
C'est un From mal formé, parce que la parenthèse ne fait pas partie
des caractères autorisés en dehors des guillemets -- ou alors par
paires « parenthèse ouvrante / parenthèse fermante » pour en faire
un commentaire.
MacCafé devrait le détecter, et le mettre entre guillemets :
From: "Souris 8-)" <
souris@meta-science.fr>
Voir la fin de cet article les éléments de syntaxe tirés du RFC5322
permettant de savoir quand il faut mettre des guillemets et quand ce
n'est pas nécessaire.
[suivi positionné vers fr.comp.usenet.lecteurs-de-news]
=====================================================================
https://datatracker.ietf.org/doc/html/rfc5322#section-3.6.2 from = "From:" mailbox-list CRLF
https://datatracker.ietf.org/doc/html/rfc5322#section-3.4 mailbox-list = (mailbox *("," mailbox)) / obs-mbox-list
mailbox = name-addr / addr-spec
name-addr = [display-name] angle-addr
display-name = phrase
https://datatracker.ietf.org/doc/html/rfc5322#section-3.2.5 phrase = 1*word / obs-phrase
word = atom / quoted-string
https://datatracker.ietf.org/doc/html/rfc5322#section-3.2.3 atom = [CFWS] 1*atext [CFWS]
atext = ALPHA / DIGIT / ; Printable US-ASCII
"!" / "#" / ; characters not including
"$" / "%" / ; specials. Used for atoms.
"&" / "'" /
"*" / "+" /
"-" / "/" /
"=" / "?" /
"^" / "_" /
"`" / "{" /
"|" / "}" /
"~"
https://datatracker.ietf.org/doc/html/rfc5322#section-3.2.4 quoted-string = [CFWS]
DQUOTE *([FWS] qcontent) [FWS] DQUOTE
[CFWS]
qcontent = qtext / quoted-pair
qtext = %d33 / ; Printable US-ASCII
%d35-91 / ; characters not including
%d93-126 / ; "\" or the quote character
obs-qtext
-- Olivier Miakinen