Re: mail problem

From: Barry Finkel (b19141@ACHILLES.CTD.ANL.GOV)
Date: Tue Jul 01 2003 - 10:45:57 EDT


>I have two problem when I use AIX command 'mail' to send mail:
>1.
>I cann't send a mail to one address include blank.
>I have tried
>mail -s "test" "augusta china@test.com" </home/augusta/1.txt
>mail -s "test" 'augusta china'@test.com </home/augusta/1.txt
>mail -s "test" augusta\ china@test.com </home/augusta/1.txt
>
>The mail returned with the recieved address "To: august,
>china@shanghaigm.com"
>
>So does anyone know how can mail to a address include blank?

>From RFC 2822:

addr-spec = local-part "@" domain

local-part = dot-atom / quoted-string / obs-local-part

dot-atom = [CFWS] dot-atom-text [CFWS]

dot-atom-text = 1*atext *("." 1*atext)

quoted-string = [CFWS]
                        DQUOTE *([FWS] qcontent) [FWS] DQUOTE
                        [CFWS]

qcontent = qtext / quoted-pair

qtext = NO-WS-CTL / ; Non white space controls

                        %d33 / ; The rest of the US-ASCII
                        %d35-91 / ; characters not including "\"
                        %d93-126 ; or the quote character

quoted-pair = ("\" text) / obs-qp

DQUOTE, ASCII value 34 ["]

So, you MIGHT be able to use

     mail -s "test" "augusta china"@test.com </home/augusta/1.txt

by enclosing the local-part specification in quotation marks.
----------------------------------------------------------------------
Barry S. Finkel
Computing and Instrumentation Solutions Division
Argonne National Laboratory Phone: +1 (630) 252-7277
9700 South Cass Avenue Facsimile:+1 (630) 252-4601
Building 222, Room D209 Internet: BSFinkel@anl.gov
Argonne, IL 60439-4828 IBMMAIL: I1004994



This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 22:16:58 EDT