PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Forums Hébergement > Forum Serveur - Sécurité et techniques > comp.unix.shell > mail -s does not put subject
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
comp.unix.shell Using and programming the Unix shell.

mail -s does not put subject

Réponse
 
LinkBack Outils de la discussion
Vieux 29/10/2007, 05h44   #1
Anoop
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut mail -s does not put subject

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

  Réponse avec citation
Vieux 29/10/2007, 08h12   #2
ChrisOD
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: mail -s does not put subject

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.

  Réponse avec citation
Vieux 29/10/2007, 12h06   #3
Janis Papanagnou
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: mail -s does not put subject

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
>

  Réponse avec citation
Vieux 01/11/2007, 00h38   #4
Anoop
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: mail -s does not put subject

On Oct 29, 3:12 am, ChrisOD <ch...@dont.send.me.any.email> 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.

  Réponse avec citation
Vieux 01/11/2007, 01h04   #5
Janis Papanagnou
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: mail -s does not put subject

Anoop wrote:
> On Oct 29, 3:12 am, ChrisOD <ch...@dont.send.me.any.email> 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.
>

  Réponse avec citation
Vieux 01/11/2007, 15h36   #6
Will Renkel
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut RE: mail -s does not put subject

anoopkumarv@gmail.com wrote:
>On Oct 29, 3:12 am, ChrisOD <ch...@dont.send.me.any.email> 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.

---------------------------------------------------------------
  Réponse avec citation
Vieux 01/11/2007, 22h23   #7
me at
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: mail -s does not put subject

Mon, 29 Oct 2007 04:44:26 -0000 Anoop <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
|


Use "" around the subject
mailx -s "test-lnx-mailx `date`" awc@abc.adb





  Réponse avec citation
Vieux 03/11/2007, 21h10   #8
John Horne
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: mail -s does not put subject

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.


  Réponse avec citation
Vieux 06/11/2007, 09h52   #9
Anoop
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: mail -s does not put subject

On Nov 3, 3:10 pm, John Horne <john.ho...@plymouth.ac.uk> 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

  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 08h37.


Édité par : vBulletin® version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières ©2000-2008
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,25138 seconds with 17 queries