Usenet comp.unix.osf.misc (1992-2004)
 help / color / mirror / Atom feed
* DEC osf/1 mail
@ 1994-02-23  1:38 Hamish Marson
  1994-02-23  9:31 ` Magnus Y Alvestad
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Hamish Marson @ 1994-02-23  1:38 UTC (permalink / raw)


Umm.. Has anyone noticed anything odd with osf/1's mail? Like re-writing
the first word of each line to be uppercase? Or am I just (un)lucky? Is
this an undocumented feature?

4 instance... I mail myself the password file with

mail user@wherever < /etc/passwd

and the file comes out like this

Root: Hjdsflkjmn:0...
^^^^ ^^

Notice the capitalisation, and the space inserted before the password...

Is this just me? I'm sure it doesn't happen on anything else we've got.

(PS The recipient m/c was a VAX running VMS and using DECWmail. Also a
bounced message turned up in my osf/1 mailbox with the smae problem. 
Destinatuion user doesn't seem to change it...)


--
======================================================================
|  Hamish Marson                                                     |
|  Systems Programmer              |                                 |
|  Computer Services               | INTERNET h.marson@waikato.ac.nz |
|  University of Waikato           | PHONE    +64 7 8562889 xt 8181  |
|  New Zealand                     | FAX      +64 7 8384066          |
===========Disclaimer :- Remember. You heard it here first.===========


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: DEC osf/1 mail
  1994-02-23  1:38 DEC osf/1 mail Hamish Marson
@ 1994-02-23  9:31 ` Magnus Y Alvestad
  1994-02-23 10:06 ` Chris Seelig
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: Magnus Y Alvestad @ 1994-02-23  9:31 UTC (permalink / raw)


>>>>> "Hamish" == Hamish Marson <hamish@thebes.cc.waikato.ac.nz> writes:

Hamish> mail user@wherever < /etc/passwd

Hamish> and the file comes out like this

Hamish> Root: Hjdsflkjmn:0...  ^^^^ ^^

Hamish> Notice the capitalisation, and the space inserted before the
Hamish> password...

It happens because mail thinks these lines are part of the header. Use
'Mail' or 'mailx' instead and everything should work fine.

-Magnus


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: DEC osf/1 mail
  1994-02-23  1:38 DEC osf/1 mail Hamish Marson
  1994-02-23  9:31 ` Magnus Y Alvestad
@ 1994-02-23 10:06 ` Chris Seelig
  1994-02-24  2:56 ` Anthony Baxter
  1994-02-24  7:24 ` Andrew Rutherford
  3 siblings, 0 replies; 5+ messages in thread
From: Chris Seelig @ 1994-02-23 10:06 UTC (permalink / raw)



In article <2kec2n$po7@thebes.cc.waikato.ac.nz>,
hamish@thebes.cc.waikato.ac.nz (Hamish Marson) writes:
|>Umm.. Has anyone noticed anything odd with osf/1's mail? Like re-writing
|>the first word of each line to be uppercase? Or am I just (un)lucky? Is
|>this an undocumented feature?
|>
|>4 instance... I mail myself the password file with
|>
|>mail user@wherever < /etc/passwd
|>
|>and the file comes out like this
|>
|>Root: Hjdsflkjmn:0...
|>^^^^ ^^
|>
|>Notice the capitalisation, and the space inserted before the password...
|>
|>Is this just me? I'm sure it doesn't happen on anything else we've got.
|>
|>(PS The recipient m/c was a VAX running VMS and using DECWmail. Also a
|>bounced message turned up in my osf/1 mailbox with the smae problem. 
|>Destinatuion user doesn't seem to change it...)
|>

Looks like something is taking the lines of your passwd file
to be part of the headers for the mail message.

The headers should be separated from the message by a blank line.

Having just tried it, it seems that mail doesnt put that blank line
in when you redirect its input.

In fact (having just played a bit more!) mail does put the blank in
but it seems to look at the lines first, and if it thinks they are
a header line then it puts then in before the blank, it stops
looking at lines once it has read a blank line. Since passwd file lines
resemble a header line it is mistaking each entry in the file as part
of the header.

mailx (Mail) seems to be clear of this, that is it always puts the
blank line in to separate the headers and message.

Maybe it is like that so a program using mail can add header lines
to mail it is sending out (or something like that). But it seems to
need a better way of telling what is meant to be a header line.

Chris


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: DEC osf/1 mail
  1994-02-23  1:38 DEC osf/1 mail Hamish Marson
  1994-02-23  9:31 ` Magnus Y Alvestad
  1994-02-23 10:06 ` Chris Seelig
@ 1994-02-24  2:56 ` Anthony Baxter
  1994-02-24  7:24 ` Andrew Rutherford
  3 siblings, 0 replies; 5+ messages in thread
From: Anthony Baxter @ 1994-02-24  2:56 UTC (permalink / raw)


hamish@thebes.cc.waikato.ac.nz (Hamish Marson) writes:

>Umm.. Has anyone noticed anything odd with osf/1's mail? Like re-writing
>the first word of each line to be uppercase? Or am I just (un)lucky? Is
>this an undocumented feature?

I remember someone else mentioned this - it was something to do with a lack
of a blank line between the header and the body, so

From: me
To: me
root:dksldjfllsdfj:: : :
...

became 

From: me
To: me
Root: dksldjfllsdfj:: : :
...


Dont remember seeing a fix... anyone?

Anthony
--
anthony baxter @ /\/\||   |= Sarah McLachlan mailing =| australian artificial 
email: anthony@aaii.oz.au |= list: mail fte-request@ =| intelligence institute
phone: +613 663 7922      |= yoyo.cc.monash.edu.au.  =| 1 grattan st, carlton  
Practice random kindness and senseless acts of sarcasm.    australia 3053.


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: DEC osf/1 mail
  1994-02-23  1:38 DEC osf/1 mail Hamish Marson
                   ` (2 preceding siblings ...)
  1994-02-24  2:56 ` Anthony Baxter
@ 1994-02-24  7:24 ` Andrew Rutherford
  3 siblings, 0 replies; 5+ messages in thread
From: Andrew Rutherford @ 1994-02-24  7:24 UTC (permalink / raw)


Hamish Marson (hamish@thebes.cc.waikato.ac.nz) wrote:

: Umm.. Has anyone noticed anything odd with osf/1's mail? Like re-writing
: the first word of each line to be uppercase? Or am I just (un)lucky? Is
: this an undocumented feature?

: 4 instance... I mail myself the password file with

: mail user@wherever < /etc/passwd

: and the file comes out like this

: Root: Hjdsflkjmn:0...
: ^^^^ ^^

: Notice the capitalisation, and the space inserted before the password...

	I think you'll find it wouldn't capitalise it if you did this:

(echo "" ; cat /etc/passwd) | mail user@wherever

	Why? Well, until it sees either a blank line, or something to
convince it it's not in header land, it assumes it's all headers. The
password file is full of "Valid-ish-type-header-name:lots-of-data", so
mail thinks the entire file is a ton of headers and acts accordingly.

	You get a similar fun effect (I first noticed this from our
News system on Ultrix) from cron jobs where all output is of the form
"commandname: message string", where most of the output ends up in
the headers. :-)

Hope this helps,
		Andrew.

/*
 * andrewr@iagu.itd.adelaide.edu          Andrew Rutherford
 * +61 8 303 5669                      Network Specialist, ITD
 * Room 1060, Adelaide Uni         University of Adelaide, SA, 5005
 */
T


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~1994-02-24  7:24 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1994-02-23  1:38 DEC osf/1 mail Hamish Marson
1994-02-23  9:31 ` Magnus Y Alvestad
1994-02-23 10:06 ` Chris Seelig
1994-02-24  2:56 ` Anthony Baxter
1994-02-24  7:24 ` Andrew Rutherford

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox