mail -s does not put subject
mail -s does not put subject
am 29.10.2007 05:44:26 von Anoop kumar V
Hi,
I am using Sun OS 10 and trying to use mail in a shell script.
Is there a bug in the -s parameter for the mail command. According to
the api it should put the subject if used with -s, but it never does.
Is there a workaround for this?
Thanks,
Anoop
Re: mail -s does not put subject
am 29.10.2007 08:12:47 von ChrisOD
In article <1193633066.949903.59100@k79g2000hse.googlegroups.com>, Anoop wrote:
> Hi,
>
> I am using Sun OS 10 and trying to use mail in a shell script.
>
> Is there a bug in the -s parameter for the mail command. According to
> the api it should put the subject if used with -s, but it never does.
> Is there a workaround for this?
>
> Thanks,
> Anoop
>
You could try constructing the message with a Subject: header.
Re: mail -s does not put subject
am 29.10.2007 12:06:19 von Janis Papanagnou
Anoop wrote:
> Hi,
>
> I am using Sun OS 10 and trying to use mail in a shell script.
>
> Is there a bug in the -s parameter for the mail command. According to
> the api it should put the subject if used with -s, but it never does.
> Is there a workaround for this?
Maybe the program mailx (instead of mail) does what you want on Sun OS.
Janis
>
> Thanks,
> Anoop
>
RE: mail -s does not put subject
am 29.10.2007 14:46:43 von Nobody
anoopkumarv@gmail.com wrote:
>Hi,
>
>I am using Sun OS 10 and trying to use mail in a shell script.
>
>Is there a bug in the -s parameter for the mail command. According to
>the api it should put the subject if used with -s, but it never does.
>Is there a workaround for this?
>
>Thanks,
>Anoop
>
I assume you are referring to /bin/mail
If so, it does NOT take a -s option
but mailx does if you have access to it
--
------------------------------------------------------------ ---
Will Renkel
Wheaton, Ill.
------------------------------------------------------------ ---
Re: mail -s does not put subject
am 01.11.2007 00:38:47 von Anoop kumar V
On Oct 29, 3:12 am, ChrisOD wrote:
> In article <1193633066.949903.59...@k79g2000hse.googlegroups.com>, Anoop wrote:
> > Hi,
>
> > I am using Sun OS 10 and trying to use mail in a shell script.
>
> > Is there a bug in the -s parameter for the mail command. According to
> > the api it should put the subject if used with -s, but it never does.
> > Is there a workaround for this?
>
> > Thanks,
> > Anoop
>
> You could try constructing the message with a Subject: header.
Wow - I didnt know that you could do that - it worked very well - I
wonder where I can find all the other such tags that go with the mail
command.
I just figured out that it supports the To: and the From: as well.
Thank you - it worked nice.
Re: mail -s does not put subject
am 01.11.2007 01:04:07 von Janis Papanagnou
Anoop wrote:
> On Oct 29, 3:12 am, ChrisOD wrote:
>
>>In article <1193633066.949903.59...@k79g2000hse.googlegroups.com>, Anoop wrote:
>>
>>>Hi,
>>
>>>I am using Sun OS 10 and trying to use mail in a shell script.
>>
>>>Is there a bug in the -s parameter for the mail command. According to
>>>the api it should put the subject if used with -s, but it never does.
>>>Is there a workaround for this?
>>
>>>Thanks,
>>>Anoop
>>
>>You could try constructing the message with a Subject: header.
>
>
> Wow - I didnt know that you could do that - it worked very well - I
> wonder where I can find all the other such tags that go with the mail
> command.
I'd start with RFC822 (http://www.ietf.org/rfc/).
Janis
> I just figured out that it supports the To: and the From: as well.
>
> Thank you - it worked nice.
>
RE: mail -s does not put subject
am 01.11.2007 15:36:07 von Nobody
anoopkumarv@gmail.com wrote:
>On Oct 29, 3:12 am, ChrisOD wrote:
>> In article <1193633066.949903.59...@k79g2000hse.googlegroups.com>, Anoop wrote:
>> > Hi,
>>
>> > I am using Sun OS 10 and trying to use mail in a shell script.
>>
>> > Is there a bug in the -s parameter for the mail command. According to
>> > the api it should put the subject if used with -s, but it never does.
>> > Is there a workaround for this?
>>
>> > Thanks,
>> > Anoop
>>
>> You could try constructing the message with a Subject: header.
>
>Wow - I didnt know that you could do that - it worked very well - I
>wonder where I can find all the other such tags that go with the mail
>command.
>I just figured out that it supports the To: and the From: as well.
>
>Thank you - it worked nice.
>
Actually you can put any string you want in the header,
as long as it is of form "Cap-Letter followed by non-blank in string followed by a : followed by anything
eg - Commentary: junk mail
--
------------------------------------------------------------ ---
Will Renkel
Wheaton, Ill.
------------------------------------------------------------ ---
Re: mail -s does not put subject
am 01.11.2007 22:23:39 von unknown
Post removed (X-No-Archive: yes)
Re: mail -s does not put subject
am 03.11.2007 21:10:44 von John Horne
On Thu, 01 Nov 2007 01:04:07 +0100, Janis Papanagnou wrote:
> Anoop wrote:
>>
>> Wow - I didnt know that you could do that - it worked very well - I
>> wonder where I can find all the other such tags that go with the mail
>> command.
>
> I'd start with RFC822 (http://www.ietf.org/rfc/).
>
RFC 822 has been superseded by 2822.
John.
Re: mail -s does not put subject
am 06.11.2007 10:52:53 von Anoop kumar V
On Nov 3, 3:10 pm, John Horne wrote:
> On Thu, 01 Nov 2007 01:04:07 +0100, Janis Papanagnou wrote:
> > Anoop wrote:
>
> >> Wow - I didnt know that you could do that - it worked very well - I
> >> wonder where I can find all the other such tags that go with the mail
> >> command.
>
> > I'd start with RFC822 (http://www.ietf.org/rfc/).
>
> RFC 822 has been superseded by 2822.
>
> John.
Thank you all - certainly very useful information.
-Anoop