[comp.mail.misc] Problem with large aliases in mailx

bgo@PacBell.COM (Bud Odekirk) (07/12/89)

When I send a message to a mailx alias that has many userids in it (like 200)
everyone that recieves the message see all of the userids on the "To:" line.
Is there any way that I can suppress all of the userids and just show the alias name ?? 

I know that you can suppress anything on the header by putting the command;
set ignore "To:" in your .mailrc file, but I want to see the "To" line. I have 
tried embedding aliases, creating fictitious mailboxes, etc.

Thanks
/\*/\*/\*/\*/\*/\*/\*/\*/\*/\*/\*/\*/\*/\*/\*/\*/\*/\*/\*/\*/\*/\*/\*/\*/\*/\*/\
  Bud Odekirk
  2600 Camino Ramon, Room 3W600E
  San Ramon, Ca. 94583
  415 823-1379
  {att,bellcore,sun,ames,pyramid}!pacbell!pbhya!bgo
/\*/\*/\*/\*/\*/\*/\*/\*/\*/\*/\*/\*/\*/\*/\*/\*/\*/\*/\*/\*/\*/\*/\*/\*/\*/\*/\

argv%eureka@Sun.COM (Dan Heller) (07/12/89)

In article <28509@pbhya.PacBell.COM> bgo@PacBell.COM (Bud Odekirk) writes:
> When I send a message to a mailx alias that has many userids in it (like 200)
> everyone that recieves the message see all of the userids on the "To:" line.
> Is there any way that I can suppress all of the userids and just show the alias name ?? 

In mush you can do this by setting "no_expand".  Anything you have on the To:
line remains untouched.

This is an often asked question by new mush users, so I thought I'd mention it.

dan <island!argv@sun.com>
-----
My postings reflect my opinion only -- not the opinion of any company.

rob@PacBell.COM (Rob Bernardo) (07/12/89)

In article <28509@pbhya.PacBell.COM> bgo@PacBell.COM (Bud Odekirk) writes:
+When I send a message to a mailx alias that has many userids in it (like 200)
+everyone that recieves the message see all of the userids on the "To:" line.
+Is there any way that I can suppress all of the userids and just show the
+alias name ?? 

One problem that will occur if you do find a way to put the alias on the
To: line is that if a recipient uses a mailer (e.g.  ELM) that can do a
group reply (to the sender and the other recipients), the alias on the
To: line, being a private alias of the sender, will not be an
appropriate mail address.
-- 
Rob Bernardo      ...![backbone]!pacbell!pbhyf!rob -or- rob@pbhyf.PacBell.COM
  Product engineer, UNIX/C Reusable Code Library        Editor, "Go `C' UNIX"
  Office: (415) 823-2417                Pacific * Bell, San Ramon, California
  Residence: (415) 827-4301                     R BAR JB, Concord, California

lyndon@cs.AthabascaU.CA (Lyndon Nerenberg) (07/12/89)

In article <114962@sun.Eng.Sun.COM> argv@sun.com (Dan Heller) writes:
>In article <28509@pbhya.PacBell.COM> bgo@PacBell.COM (Bud Odekirk) writes:
>> When I send a message to a mailx alias that has many userids in it (like 200)
>> everyone that recieves the message see all of the userids on the "To:" line.
>> Is there any way that I can suppress all of the userids and just show the alias name ?? 
>
>In mush you can do this by setting "no_expand".  Anything you have on the To:
>line remains untouched.

YOW! This is not a Good Thing to do. Say your local alias is called foo.
When someone on the expansion list tries to reply, the reply will go to
foo@your.domain. Odds are your MTA will have NO IDEA what foo corresponds
to, and will bounce the mail. The UA has absolutely no business doing
something like this. This can be a pain when you have a large mailing list,
but it's better to have a painful working list rather than a painless
broken one.

If you're up to 200 users, why not ask your postmaster to install an
global system alias for your list?

>This is an often asked question by new mush users, so I thought I'd mention it.

Thanks for the broken software warning :-)



-- 
Lyndon Nerenberg  VE6BBM / Computing Services / Athabasca University
    {alberta,decwrl,ncc}!atha!lyndon || lyndon@cs.AthabascaU.CA
        If everyone quit smoking, drinking, and buying gas,
               the nation would probably go bankrupt.

argv%eureka@Sun.COM (Dan Heller) (07/13/89)

In article lyndon@cs.AthabascaU.CA (Lyndon Nerenberg) writes:
> In article <114962@sun.Eng.Sun.COM> argv@sun.com (Dan Heller) writes:
> >In mush you can do this by setting "no_expand".  Anything you have on the To:
> >line remains untouched.
> 
> YOW! This is not a Good Thing to do. Say your local alias is called foo.
> When someone on the expansion list tries to reply, the reply will go to
> foo@your.domain.  Odds are your MTA will have NO IDEA what foo corresponds

Precisely.  That is the intention.  And it's not uncommon either.  There
are many mailing lists that are supposed to be "one-way" -- that is, the
moderator mails out, but no one can mail to the list.  This is one way to
do that.  Since the alias is not registered with /usr/lib/aliases (or its
equivalent for your MTA) then outside mail to that "alias" at your machine
should be rejected.

>  This can be a pain when you have a large mailing list,
> but it's better to have a painful working list rather than a painless
> broken one.
Obviously, if you want everyone to know who's on the list, then you
don't want to use no_expand.  I believe the original question asked how
to "hide" the list of users from the recipients.

> If you're up to 200 users, why not ask your postmaster to install an
> global system alias for your list?

If the original question was to not hide the list of users, but just
not have the list be so long, then yes, this is the correct solution.

> Thanks for the broken software warning :-)
I hope you think differently about that now.

> Lyndon Nerenberg  VE6BBM / Computing Services / Athabasca University
>     {alberta,decwrl,ncc}!atha!lyndon || lyndon@cs.AthabascaU.CA
>         If everyone quit smoking, drinking, and buying gas,
>                the nation would probably go bankrupt.

dan <island!argv@sun.com>
-----
My postings reflect my opinion only -- not the opinion of any company.

loverso@Xylogics.COM (John Robert LoVerso) (07/13/89)

In article <115054@sun.Eng.Sun.COM> argv@sun.com (Dan Heller) writes:
> In article lyndon@cs.AthabascaU.CA (Lyndon Nerenberg) writes:
> > In article <114962@sun.Eng.Sun.COM> argv@sun.com (Dan Heller) writes:
> > >In mush you can do this by setting "no_expand".  Anything you have on the
> > >To: line remains untouched.
> > 
> > YOW! This is not a Good Thing to do.
> 
> Precisely.  That is the intention.  And it's not uncommon either.  There
> are many mailing lists that are supposed to be "one-way" -- that is, the
> moderator mails out, but no one can mail to the list.  This is one way to
> do that.

But the `real' way to do this is with mail groups, ala RFC822.  The `To:' line
can be specified as:

	To: user1, some_alias: user2, user3, ..., usern ;

to which the originating MTA is supposed to strip the mailboxes from the group,
leaving:
	
	To: user1, some_alias:;

Thus, this is a "one-way" alias - it can't be replied to.  Sadly, some
sendmail's become ill when originating group syntax.

BTW, I just put up 6.5.6 and installed the new default Mushrc.  Next time
I ran mush, it said "oh I see you're a new user to mush...".  While this
behavior might be desireable for someone who's really a new user to mush,
having to create a .mushexpert file to elide that behavior just clogs my
home directory.  Worse still, I realized that mush was always sourcing the
default Mushrc (before my .mushrc!).  So, naturally I thought to use "mush -n"
to prevent the sourcing of it, but that also prevents it from sourcing my
.mushrc - and leaves me with no identical way of having my .mushrc sourced
before the folder is read.  *Sigh*.  I wouldn't mind leaving the new default
Mushrc there for new users (its a help to them), but when a user has a .mushrc,
mush shouldn't go off and amuse what it should be sourcing.  My fix: I left
the Mushrc there, but removed the code from main.c that first sources Mushrc
and then goes off to source the .mushrc.  (It even looks from this code that
if I don't have a .mushrc, it will source Mushrc twice!).

Lastly, while it's nice mush no longer makes complains about changing the
"From:" header, it still provides its own (incorrect) "From:" header, even
when I've got a better set in my_hdrs.  This is just a matter of an #ifdef
here and there.  While this can be used for when I have to send mail from
my other domain, it would at least allow me to get around one other problem,
which is that mush makes From: headers thus:
	From: loverso@xylogics.com (John Robert LoVerso)
instead of:
	From: "John Robert LoVerso" <loverso@xylogics.com>
I prefer the latter, since I don't like putting somewhat important imformation
(my name!) in what is actually a comment that any MTA is allowed to strip off.

I've now been using mush for nearly 10 months - thats the longest I've stuck
with a new mailer ever.  Every time I switched to MH (almost a dozen times over
the course of 5 years), it would last for two or three weeks before I'd plod
back into UCB Mail.  I doubt that could happen now.  The best feature of mush
is the ability to incorporate new mail into the window interface - its good
for those like me who end up with 500 messages sitting around from the last
few weeks...  (I still miss the ability to make composition drafts, and leave
them incomplete - edit_hdrs *almost* lets me do this painlessly).
Anyway, this is to say, "mush is great - thanks a lot, Dan, Bart, et al!".

Ramblingly yours...
John

-- 
John Robert LoVerso			Xylogics, Inc.  617/272-8140
loverso@Xylogics.COM			Annex Terminal Server Development Group
buita!xylogics!loverso			[formerly of Encore Computer Corp]

clewis@eci386.uucp (Chris Lewis) (07/13/89)

In article <28509@pbhya.PacBell.COM> bgo@PacBell.COM (Bud Odekirk) writes:
>When I send a message to a mailx alias that has many userids in it (like 200)
>everyone that recieves the message see all of the userids on the "To:" line.
>Is there any way that I can suppress all of the userids and just show the 
>alias name ?? 

If you're running sendmail or smail (probably others), you can set up your 
alias in *their* alias files (eg: /usr/lib/aliases for smail, depending on 
configuration), and the To: line will only show the alias name (because 
mailx isn't doing the expansion, and smail/sendmail won't insert the
expansion into the message itself, just the uux command lines).

This is how I run my mailing list.
-- 
Chris Lewis, R.H. Lathwell & Associates: Elegant Communications Inc.
UUCP: {uunet!mnetor, utcsri!utzoo}!lsuc!eci386!clewis
Phone: (416)-595-5425