Skip Navigational Links
LISTSERV email list manager
LISTSERV - COMMUNITY.EMAILOGY.COM
LISTSERV Menu
Log In
Log In
LISTSERV 17.5 Help - LSTSRV-L Archives
LISTSERV Archives
LISTSERV Archives
Search Archives
Search Archives
Register
Register
Log In
Log In

LSTSRV-L Archives

LISTSERV Site Administrators' Forum

LSTSRV-L

Menu
LISTSERV Archives LISTSERV Archives
LSTSRV-L Home LSTSRV-L Home

Log In Log In
Register Register

Subscribe or Unsubscribe Subscribe or Unsubscribe

Search Archives Search Archives
Options: Use Forum View

Use Monospaced Font
Show Text Part by Default
Condense Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Sender:
LISTSERV site administrators' forum <[log in to unmask]>
Date:
Fri, 12 Nov 2004 16:30:59 -0500
Reply-To:
LISTSERV site administrators' forum <[log in to unmask]>
Content-Transfer-Encoding:
7bit
Subject:
Re: Inconsistency in allowed format on 'add' via web & 'add' via email
From:
Paul Russell <[log in to unmask]>
Content-Type:
text/plain; charset=ISO-8859-1; format=flowed
In-Reply-To:
<[log in to unmask]>
Organization:
University of Notre Dame
MIME-Version:
1.0
Parts/Attachments:
text/plain (93 lines)
On 11/12/2004 3:45 AM, Eric Thomas wrote:

>
> What's not clear or deterministic enough with:
>
> ADD [log in to unmask] Joe Smith
>
> If you put the e-mail address first, everything else is treated as a name.
>

Right! There is nothing wrong with the 'add' command. My comments apply only
to the web interface, which allows the user to enter either

        address name
or
        name <address>

however, if the user chooses the second form, the <> delimiters are
required by LISTSERV. If they are not present, LISTSERV treats the
first word as the email address, even when the most casual observer
can see that the last word is the email address. In another message
in this thread, you explained that

        name <address>

is supported because it makes it easy to cut-and-paste the subscriber's
name and email address from the 'From:' line of an email message. I
understand the rationale for *ALLOWING* the use of <> delimiters, and I
am not suggesting that the use of delimiters should be prohibitted. I am
suggesting that delimiters should be optional. The problem of parsing
the input is not that complex. The following logic model should "do the
right thing" with any input string that includes a syntactically-valid
email address, with or without <> delimiters, as either the first or last
blank-delimited word.

1. Does the input string contain one and only one instance of '@'?

    If no, issue an error message and stop processing.

2. Does the '@' appear in either the first or last blank-delimited word?

    If no, issue an error message and stop processing.

    If yes, put the word containing the '@' to the email address
    field and the rest of the input string in the name field.

3. Does the email address begin or end with '@'?

    If yes, issue an error message and stop processing.

4. Does the email address begin or end with a dot?

    If yes, issue an error message and stop processing.

5. Does the RHS of the email address consist of at least two
    dot-delimited words?

    If no, issue an error message and stop processing.

6. Does the email address contain illegal characters?

    If yes, issue an error message and stop processing.

I think this model supports everything supported by the current logic,
while eliminating the requirement for <> delimiters when the email
address follows the name in the input string.

Examples of valid input:

        [log in to unmask]
        <[log in to unmask]>
        [log in to unmask] Paul Russell
        <[log in to unmask]> Paul Russell
        Paul Russell [log in to unmask]
        Paul Russell <[log in to unmask]>

Examples of invalid input:

        prussell@@nd.edu Paul Russell
        [log in to unmask] [log in to unmask]
        prussell Paul Russell
        prussell@nd Paul Russell
        Paul Russell prussell@
        [log in to unmask] edu Paul Russell
        prussell@nd .edu Paul Russell
        prussell @nd.edu Paul Russell

--
Paul Russell
Senior Systems Administrator
OIT Messaging Services Team
University of Notre Dame

ATOM RSS1 RSS2

COMMUNITY.EMAILOGY.COM CataList Email List Search Powered by LISTSERV