🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.mail.misc
Article #2486

Re: how to use mail with preformatted file (including headers)

#2486
From: Chris Davies
Date: Thu, 20 Dec 1990 09:53
35 lines
1901 bytes
In article <1990Dec17.234241.15715@nntp-server.caltech.edu> todd@Quotron.COM (Todd_Booth) writes:
>1) Is there a direct way with mail or sendmail to mail files such as the following?
>
>To: (comment) user
>Subject: subject goes here
>
>msg goes here.

On the systems we have in house (mainly SysV.3 with Lachman IP additions) I
can feed this directly to sendmail, viz -

	/usr/lib/sendmail -v user@site < mail_file

Where "user@site" is the address part of your "To: (comment) user" line, and
"mail_file" is the file you are wanting to send.  Sendmail will automagically
add the RFC822(?) lines such as "From: " and "Date: ".

I believe you can do much the same thing with /bin/rmail, but you won't
get extra headers (such as "From: ") added to the message.

>2) Is there a way to include comments in an alias file?
>.mailrc
>alias todd (todd booth) todd@quotron.com

Comments in an alias file start with a hash (#) in the first column.  Real
names aliases can be specified (at least on the SysV systems I use) like this -

	alias todd 'todd@quotron.com (Todd Booth)'

Chris
-- 
VISIONWARE LTD         | UK: chris@vision.uucp    JANET: chris%vision.uucp@ukc
57 Cardigan Lane       | US: chris@vware.mn.org   BANGNET: ...!ukc!vision!chris
LEEDS LS4 2LE, England | VOICE:  +44 532 788858   FAX:  +44 532 304676
-------------- "VisionWare:   The home of DOS/UNIX/X integration" -------------
Technical Details
Message-ID: <1353@vision.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!mcsun!ukc!axion!vision!chris
References: <1990Dec17.234241.15715@nntp-server.caltech.edu>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!mcsun!ukc!axion!vision!chris
From: chris@vision.UUCP (Chris Davies)
Newsgroups: comp.mail.misc
Subject: Re: how to use mail with preformatted file (including headers)
Keywords: post
Message-ID: <1353@vision.UUCP>
Date: 20 Dec 90 09:53:07 GMT
References: <1990Dec17.234241.15715@nntp-server.caltech.edu>
Reply-To: chris@vision.UUCP (Chris Davies)
Organization: VisionWare Ltd., Leeds, UK
Lines: 35