[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [bug-mailutils] mail: Cannot parse address address@hidden <address@h

From: Sergey Poznyakoff
Subject: Re: [bug-mailutils] mail: Cannot parse address address@hidden <address@hidden>'
Date: Fri, 23 Dec 2016 16:17:00 +0200

Jean Louis <address@hidden> ha escrit:

> The problem is that the 'mail' utility does not recognize the email
> address as the valid mail part.

It is *not* a valid mail part to begin with.  According to RFC 2822
(page 14), a valid address is 

  name-addr       =       [display-name] angle-addr
  angle-addr      =       [CFWS] "<" addr-spec ">" [CFWS] / obs-angle-addr

display-name is defined as

  display-name    =       phrase

"phrase" is (page 12)

  phrase          =       1*word / obs-phrase
  word            =       atom / quoted-string

Now, atom is defined on page 11 as a sequence of alphanumeric characters
or some punctuation characters.  The @ sign is not among that list.

> Maybe there is a workaround?

Either don't include display-part at all, or enclose it in double

(1) mail address@hidden

(2) mail "\"address@hidden" <address@hidden>"


reply via email to

[Prev in Thread] Current Thread [Next in Thread]