On 10/01/2009 19:51, NoOp wrote:
On 01/10/2009 10:48 AM, Mike Scott wrote:
Harold Fuchs wrote:

I don't believe this has anything to do with OpenOffice. Spaces are not
allowed in e-mail addresses. If a space appears in the entry in your address
book that is *only* because you have chosen, either deliberately or by
allowing your mail program to do its own thing, for the person's name to be
displayed that way. The actual address can't contain spaces.



I am not sure you are correct there. rfc2822 seems to allow arbitrary quoted strings for the local part of a mailbox address, and sendmail seems to accept space when quoted(*) (although I've not been able offhand to make a space-containing address that actually exists, so the legitimacy is moot).

OTOH, spaces are just asking for trouble......

Agree... However, as a heads-up: 2822 was obsoleted by 5322.

http://www.rfc-editor.org/rfc/rfc5322.txt
====
Network Working Group                                    P. Resnick, Ed.
Request for Comments: 5322                         Qualcomm Incorporated
Obsoletes: 2822                                             October 2008
Updates: 4021
Category: Standards Track
====

<http://www.rfc-editor.org/cgi-bin/rfcsearch.pl?searchwords=rfc2822&opt=All+fields&num=25&format=ftp&orgkeyword=822&filefmt=txt&search_doc=search_all&match_method=prefix&abstract=absoff&keywords=keyoff&sort_method=newer>

<quote>
3.4.1.  Addr-Spec Specification

   An addr-spec is a specific Internet identifier that contains a
   locally interpreted string followed by the at-sign character ("@",
   ASCII value 64) followed by an Internet domain.  The locally
   interpreted string is either a quoted-string or a dot-atom.  If the
   string can be represented as a dot-atom (that is, it contains no
   characters other than atext characters or "." surrounded by atext
   characters), then the dot-atom form SHOULD be used and the quoted-
   string form SHOULD NOT be used.  Comments and folding white space
   SHOULD NOT be used around the "@" in the addr-spec.
</quote>

So in this case it "SHOULD" be '[email protected]' rather
than '"george helleboot"@pinkfloid.it' as the string can easily be
represented as a dot-atom. It's legal (see: Appendix A.5.  White Space,
Comments, and Other Oddities for examples), but as you point out, just
asking for trouble.



Using Thunderbird I sent an e-mail from my private googlemail.com account to harold fuchs (including the space) at my private demon.co.uk account. I didn't put quotes around the address. Thunderbird did when it sent the message and Outlook Express showed the quotes in the received message.

Using googlemail directly from a web browser I did the same - tried to send a message to harold fuchs (including the space) at my private demon.co.uk account. Google would *not* let me. It said the address was not recognised and that I should ensure it was "properly formed".

Reading the RFC it seems to me that for an address to contain spaces it must be surrounded by quotes. There is also an interesting phrase "locally interpreted string".

I tried quotes around the address in googlemail. No good.

So googlemail doesn't allow addresses that contain spaces; Thunderbird and Outlook Express do; OOo doesn't. Hmmm.

--
Harold Fuchs
London, England
Please reply *only* to [email protected]

Reply via email to