[net.mail] Responding to a letter with many CC's

ken@turtlevax.UUCP (Ken Turkowski) (10/30/84)

Recently I have received mail addressed to something like a dozen
people including myself.  I would like to respond directly to all of
them, but the paths generated are far from optimal.  Is there a way I
could get the names out of the To:, Cc:, and Bcc: lines so that I could
process them in the editor or a path optimizing program without having
to type them all in by hand?  Could I use sendmail directly somehow?
-- 
Ken Turkowski @ CADLINC, Palo Alto, CA
UUCP: {amd,decwrl,flairvax,nsc}!turtlevax!ken
ARPA: turtlevax!ken@DECWRL.ARPA

dave@uwvax.UUCP (Dave Cohrs) (11/02/84)

> Recently I have received mail addressed to something like a dozen
> people including myself.  I would like to respond directly to all of
> them, but the paths generated are far from optimal.  Is there a way I
> could get the names out of the To:, Cc:, and Bcc: lines so that I could
> process them in the editor or a path optimizing program without having
> to type them all in by hand?  Could I use sendmail directly somehow?

You can save the message is a file.  Next, edit this file making a new
message from it.  Make sure the header of the new message has a 'From:',
and a 'To:' line (subject is nice too).  Make sure there is *not* a
'From ' line in the new header.  Basically, you new header should look
like the header 2.10.2 vnews gives you in a reply.  Then, start
sendmail on the message with a '-t' option to look at the headers to
decide who to send to.

I now use a mail sender which basically does this (puts me in vi and
does a 'sendmail -t' on the resulting message).  I like this much
better than the ucb/Mail interface.

-- 
(Bug?  What bug?  That's a feature!)

Dave Cohrs
...!{allegra,heurikon,ihnp4,seismo,uwm-evax}!uwvax!dave
dave@wisc-rsch.arpa

mark@cbosgd.UUCP (Mark Horton) (11/04/84)

In fact, you don't even need to save the message in a file, just
invoke the editor directly from Mail using the 'v' command:
	& v
	... edit headers ...
	& r (or R as the local custom may dictate)

It is also possible to just create a file with the To: and Cc:
lines (and other headers and body of the reply you're trying to
create) and invoke "/usr/lib/sendmail -t < file".  The news
reply program has a similar purpose, but works on systems that
don't have sendmail.

rpw3@redwood.UUCP (Rob Warnock) (11/05/84)

+---------------
| I now use a mail sender which basically does this (puts me in vi and
| does a 'sendmail -t' on the resulting message).  I like this much
| better than the ucb/Mail interface.
| 
| Dave Cohrs
| ...!{allegra,heurikon,ihnp4,seismo,uwm-evax}!uwvax!dave
| dave@wisc-rsch.arpa
+---------------

I too prefer to be able to diddle the headers directly, but don't have
'sendmail' available, but I do have 'recmail', so:

I have been playing around with having 'rmail' post mail to newsgroup
"mail.to.<person>" (e.g. "mail.to.rpw3") for local mail (no "!"s or "@"s), and
then using 'vnews' as a reader, and 'recmail' as a sender (either indirectly
from the 'vnews' "r" (reply) command or from a small shell script, for new
letters). So far, I have been chicken about turning this on permanently...
I'm on a single user system, but is it "safe"? Any comments, folks?
(I know, I know, on a multi-user system anyone could read anyone's mail, but
I presume yet-another-option-switch to 'inews' could fix that, or maybe even
just careful ownerships/modes on the "$SPOOLDIR/mail/to/<person>/" directory.)

B.t.w., with regard to the "r" versus "R" versus command-flag discussion,
given that the "reply" script calls your editor with both letters, it
IS possible to make a single 'vi' macro ("map") that can (1) go to the
":n"ext file (the letter/news we are responding to), (2) "y"ank it into
a named register, (3) ":e#" back to the letter, and (4) drop the referenced
mail/article. I use the <SHIFTED-NEXT-SCREEN> key, myself. ;-}

Rob Warnock

UUCP:	{ihnp4,ucbvax!amd}!fortune!redwood!rpw3
DDD:	(415)572-2607
Envoy:	rob.warnock/kingfisher
USPS:	510 Trinidad Ln, Foster City, CA  94404