[TYPO3-dev] TYPO3 4.5.2. and email validation issue

Krystian Szymukowicz t33k at prolabium.com
Tue Apr 12 18:25:34 CEST 2011


W dniu 2011-04-11 20:57, Jigal van Hemert pisze:
> Hi,
>
> On 11-4-2011 16:45, Krystian Szymukowicz wrote:
>> www.example.com <somebox at example.com>
>>
>> Does RFC822 forbiddes to use dots in the "name " ?
>> I've read RFC822 but can not find the answer.
>
> RFCs are all about defining things and combining definitions:
>
> 4.1 defines for example the from header as:
> "From" ":" mailbox
>
> 6.1 defines a mailbox as:
> mailbox = addr-spec / phrase route-addr
> addr-spec = local-part "@" domain
> route-addr = "<" [route] addr-spec ">"
>
> 3.3 defines phrase as:
> phrase = 1*word
> word = atom / quoted-string
> quoted-string = <"> *(qtext/quoted-pair) <">
> qtext = <any CHAR excepting <">, "\" & CR, and including
> linear-white-space>
>
> The rest you can lookup yourself.
>
> In short a mailbox can be an address:
> somebox at example.com
> or a name followed by the address between <>:
> name <somebox at example.com>
>
> The name can consist of all characters except ()<>@,;:\".[] space and
> character 0-31,127. If these are part of the name it must be embedded in
> double quotes. Any problems can be solved by escaping characters with a
> backslash (for example a double quote inside the name).
>
> Because your name part contained dots the name should have been quoted.
>
> Many mail clients somehow seem to handle malformed mail headers, but
> I've also seem bug reports which were caused by dots or spaces in the
> name part.
> With t3lib_htmlmail you have to take care of these details yourself. I
> you use t3lib_mail_Message (the interface for Swift Mailer in TYPO3 4.5)
> you don't have to think about which characters to quote or escape.
>


Many thanks for so detailed explanation! I could not imagine better one.

-- 
grtz
Krystian Szymukowicz




More information about the TYPO3-dev mailing list