On Sat, 15 Jul 2017 14:18:41 -0500, Edward Gould wrote:

>One of my users asked me this question and I am not quite clear on how to 
>respond.
>Given an email address [email protected] <mailto:[email protected]> (example)
>
>He just wants to sort on the field before the @ and then for a secondary sort 
>the bbb field. Both fields are variable in length (not sure what the max is).
>Any suggestions on how to do this? I have tried RTFM but maybe I am not 
>looking at the question correctly .
>
(From RFC 822:
     addr-spec   =  local-part "@" domain        ; global address )

The domain is specified (Internet standard) to be case-insensitive.

The interpretation of the local-part is left entirely up to the server,
which may treat it as case-sensitive or insensitive.

If the local-part contains special characters, it must be surrounded by
quotation marks.  If there are no special characters, the quotation
marks are optional.

Mappings may make domains equivalent.  For example, my domain
may be written as "AIM.com" or "AOL.Com"

Some servers (not all) accept userID"+"subaccount as a local-part,
delivering mail to userID and allowing rules in userID's MUA to
sort messages into folders.

And a comment may be profided as a "phrase" in "mailbox"

     mailbox     =  addr-spec                    ; simple address
                 /  phrase route-addr            ; name & addr-spec

     route-addr  =  "<" [route] addr-spec ">"

... all challenges for DFSORT; some not algorithmically solvable.

-- gil

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

Reply via email to