[comp.text] [nt]roff mass mailing macro

don@grc.UUCP (Donald D. Woelz) (11/23/87)

I need a [nt]roff macro that would allow me to print individual copies
of a letter with information inserted from a list of names, addresses,
and inserts.  The letter would be a form letter with macro commands
in it that would designate where the inserts go.

If anyone out there has such a beasty, could you please send me some
email with information on how to obtain it, or better yet, send me
a copy of the macro file.

-- 
Don Woelz              {ames, rutgers, harvard}!uwvax!uwmcsd1!grc!don
GENROCO, Inc.                              Phone: 414-644-8700
205 Kettle Moraine Drive North             Fax:   414-644-6667
Slinger, WI 53086                          Telex: 6717062

brad@bradley.UUCP (11/25/87)

we do mass mailings like this (this is a shorten letter)

brad

============
.sp
.nf
.rd			------reads in inside address
Todays date		-------me allows \*(td
.sp
.fi
Dear
.rd			------gets Dear Name
.pp
I was pleased to have your company,
.rd			------gets company name
give us 10 pencils
.
.
.			------rest of letter here
.
.
Sincerely
.sp
Brad Smith
.bp
.nx letter		-------start letter all over again


Now the name file looks like this

Mr. John Doe
John Doe Inc.
1234 Main Street

Mr. Doe:

John Doe Inc.,

Ms. Jane Doe
Other Doe Inc.
4321 Main Street

Ms. Doe:

Other Doe Inc.,

.ex


And that is it.

morrell@hpsal2.HP.COM (Michael Morrell) (11/26/87)

/ hpsal2:comp.text / don@grc.UUCP (Donald D. Woelz) / 12:14 pm  Nov 23, 1987 /
I need a [nt]roff macro that would allow me to print individual copies
of a letter with information inserted from a list of names, addresses,
and inserts.  The letter would be a form letter with macro commands
in it that would designate where the inserts go.

-- 
Don Woelz              {ames, rutgers, harvard}!uwvax!uwmcsd1!grc!don
GENROCO, Inc.                              Phone: 414-644-8700
205 Kettle Moraine Drive North             Fax:   414-644-6667
Slinger, WI 53086                          Telex: 6717062
----------

I don't know quite how it works, but the .rd request was made just for
things like form letters.  Look it up and try it.

 Michael Morrell
 hpda!morrell

karen@cdp.UUCP (11/28/87)

Actually, plain old troff has what you need, and it's only a bit
tricky getting it set up.  Look up the 3 commands: .rd, .nx and .ex.
The .rd reads an insertion from another file (nroff letter < inserts);
the .nx goes at the end of the textfile (.nx letter), and the .ex
goes at the end of the list of inserts.  There's a nice example in
this great book...troff Typesetting for Unix Systems, by Emerson
and Paulsell.  (I am Paulsell.)