🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nn
Article #7016

Re: how to get macros to work

#7016
From: David Wolfe
Date: Wed, 18 Jan 1995 20:09
38 lines
1922 bytes
In <3fhivcINNrcf@daffy.sps.mot.com> hunter@risc.sps.mot.com (Hunter Scales) writes:

>	I cant seem to get the macro capability to
>	work.  Below is that text of a macro that will mail a 
>	file (while in the read mode) to a person at another site.
>	I use :define 1 to define the macro and then attempt to 
>	execute it with 
>	:macro 1.  I get and error message: Command 257 not supported

>Macro file:
>'m'
>"foo@somewhere.edu"
>'^m'
>'n'
>end
>this is supposed to 
>1) invoke the "mail" command ('m')
>2) set the "To:" line to foo@somewhere.edu
>3) send no subject line ('^M')
>4) not edit the file ('n')

I got the same results as you did when I tried to invoke the macro with
":macro 1", but when I mapped a key to the macro, it worked fine, once
I supplied an answer to the first prompt: "Include original article?".
Setting a null subject just defaults the original subject, but you
probably knew that. My version of the macro is as follows:

:define 1
DEFINE MACRO 1 -- END WITH 'end'

mail yes "foo@somewhere.edu" "" no
end

:map show 1 macro 1

-- 
 Dave Wolfe    | 6501 William Cannon Dr. W. | (512) 891-3246
 Motorola MMTG | Austin, TX  78735-8598     | dwolfe@pets.sps.mot.com
Technical Details
Message-ID: <dwolfe.790459780@talos4>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.nn.mbox.zip!nntp.gmd.de!Germany.EU.net!howland.reston.ans.net!gatech!udel!news.mathworks.com!uunet!spstimes.sps.mot.com!mogate!risc.sps.mot.com!talos4!dwolfe
References: <3fhivcINNrcf@daffy.sps.mot.com>

Show Full Headers
Complete Article Headers
Message-ID: <dwolfe.790459780@talos4>
Subject: Re: how to get macros to work
Date: Wed, 18 Jan 1995 20:09:40 +0000
From: dwolfe@miaow.sps.mot.com (David Wolfe)
References: <3fhivcINNrcf@daffy.sps.mot.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.nn.mbox.zip!nntp.gmd.de!Germany.EU.net!howland.reston.ans.net!gatech!udel!news.mathworks.com!uunet!spstimes.sps.mot.com!mogate!risc.sps.mot.com!talos4!dwolfe
Newsgroups: news.software.nn
Organization: Motorola (Austin,TX)
Lines: 38
NNTP-Posting-Host: miaow.sps.mot.com