🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.mail.mush
Article #709

Re: Generating report headers with mush

#709
From: Barton E. Schaefer
Date: Sun, 17 Mar 1991 07:46
20 lines
1561 bytes
In article <1991Mar15.225012.5764@digi.lonestar.org> mmitchel@digi.lonestar.org (Mitch Mitchell) writes:
} I am trying to create a mush script to submit report via email.
} Has anyone written a script to create a banner etc. in a temporary
} file, edit the file, and the mail it to the recipients?

How does this differ from creating a bunch of custom headers with the
my_hdr command and using "set edit_hdrs"?  Also look at the -h and -H
options to the internal "mail" command ...

} I've started by looking at the "digestify" script to get some ideas,
} one thing I can figure out is how I might get the output of mush's
} "echo" command to write to a temporary file...

What exactly do you want to echo?  You can always use "sh echo ..." to
get the /bin/sh echo command, and then you can use ">" to redirect.
If you want some of the features of "echo -h" or "echo -p", try using
"eval -h sh echo ... > file" or the same thing with "eval -p".
-- 
Bart Schaefer                                           schaefer@zipcode.com
Z-Code Software Corporation                             schaefer@cse.ogi.edu
Technical Details
Message-ID: <18749@ogicse.ogi.edu>
Path: arc1-ca.pugleaf.net!utzoo!news-server.csri.toronto.edu!rutgers!att!linac!uwm.edu!ogicse!schaefer
References: <1991Mar15.225012.5764@digi.lonestar.org>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!news-server.csri.toronto.edu!rutgers!att!linac!uwm.edu!ogicse!schaefer
From: schaefer@ogicse.ogi.edu (Barton E. Schaefer)
Newsgroups: comp.mail.mush
Subject: Re: Generating report headers with mush
Message-ID: <18749@ogicse.ogi.edu>
Date: 17 Mar 91 07:46:50 GMT
References: <1991Mar15.225012.5764@digi.lonestar.org>
Distribution: usa
Organization: Oregon Graduate Institute (formerly OGC), Beaverton, OR
Lines: 20