(no subject)

From: Bill Thompson (bill.thompson@GOODYEAR.COM)
Date: Tue Jul 01 2003 - 11:54:38 EDT


Nice thought, but it doesn't work.

The problem is the way mail parses the command line. I've tried every
combination of quotes, double quotes, backslash, but nothing seems to work.
The only solution I've found is to use sendmail directly (see previous
post).

Bill Thompson
Sr UNIX Systems Administrator
The Goodyear Tire & Rubber Co.

Contains Confidential and/or Proprietary Information
May Not Be Copied or Disseminated Without Express Consent of The Goodyear
Tire & Rubber Company.

AIX-L Archives: http://marc.theaimsgroup.com/?l=aix-l&r=1&w=2

----- Original Message -----
From: "Barry Finkel" <b19141@ACHILLES.CTD.ANL.GOV>
Newsgroups: bit.listserv.aix-l
To: <aix-l@Princeton.EDU>
Sent: Tuesday, July 01, 2003 10:45 AM
Subject: Re: mail problem

> >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:59 EDT