Mailing List Archive

Support open source code!


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

Re: tlug: valid mail address



RFC-822 parsing isn't easy.  (Ie, it's damn near impossible. ;-)  Perl,
Python (I think), and Emacs all have special RFC-822 parsing modules.
If eVote is a script, you should consider modifying it to use a robust
dedicated parser.

>>>>> "Dmytro" == Dmytro Kovalev <kovald@example.com> writes:

>>>>> "Chris" == Chris Sekiya <chris@example.com> writes:

    Chris> On Mon, 25 Jan 1999, Jim Schweizer wrote:
    >>> Is is valid to have quotes in an email address?

    Dmytro> From rfc 822:

[...]

    Dmytro> So, it's allowed

I had to convince myself (I trust Dmytro, but I have 822 handy in
/usr/doc/RFC ;-) that that necessarily applied to addresses.  Lo and
behold, on p. 6-7

        So, for example, the folded body of an address field

            ":sysmail"@  Some-Group. Some-Org,
            Muhammed.(I am  the greatest) Ali @(the)Vegas.WBA

        is analyzed into the following lexical symbols and types:

[ ... ]

        The canonical representations for the data in these  addresses
        are the following strings:

                        ":sysmail"@example.com

        and

                            Muhammed.Ali@example.com

So now you know how to legally write Compu$erve addresses with the
original commas ;-)  But only if you have a real RFC-822 parser.

-- 
University of Tsukuba                Tennodai 1-1-1 Tsukuba 305-8573 JAPAN
Institute of Policy and Planning Sciences       Tel/fax: +81 (298) 53-5091
__________________________________________________________________________
__________________________________________________________________________
What are those two straight lines for?  "Free software rules."
-------------------------------------------------------------------
Next Technical Meeting: February 13 (Sat), 12:30 place: Temple Univ.
** presentation: XEmacs, by Steven Baur and Martin Buchholz
Next Nomikai: March 19 (Fri), 19:30   Tengu TokyoEkiMae 03-3275-3691
-------------------------------------------------------------------
more info: http://tlug.linux.or.jp                     Sponsor: PHT


Home | Main Index | Thread Index

Home Page Mailing List Linux and Japan TLUG Members Links