[comp.mail.mh] Alternate-Mailboxes

mesard@bbn.com (Wayne Mesard) (12/09/89)

> It may be useful to add an "Alternate-Mailboxes:" line to your
> .mh_profile to remove the permutations of your mailbox name that can
> arrive.  I use:
> 
> Alternate-Mailboxes: bgg@yarra, bgg@yarra.oz, bgg@yarra.oz.au, yarra!bgg

For as long as I can remember (since 6.5) Alternate-Mailboxes has
matched the start of the address.  So you should be able to replace the
first three entries above with just "bgg".

As long as we're on the subject, I list all the mailing lists to which I
subscribe in my Alternate-Mailboxes line.  Normally, if you're not
careful repl'ing to a message that came from a mailing list, the message
will get sent to the entire list as well as the author.  But with a
.mh_profile like the following, one's carelessness is less likely to
lead to one's embarrassment:

    Alternate-Mailboxes: mesard, connectionists, bargain, ga-list
    repl: -nocc me

Wayne();

version: MH 6.6 #8[UCI] (sonny.bbn.com) of Tue Dec 27 19:33:52 EST 1988
options: [BSD42] [TTYD] [DUMB] [OVERHEAD] [BIND] [MHRC] [MHE] [NFS]
         [MMDFMTS] [MMDFII]

mcgrew@ichthous.Sun.COM (Darin McGrew) (12/09/89)

In article <253@yarra.UUCP> bgg@yarra.oz.au (Benjamin G. Golding) writes:
>It may be useful to add an "Alternate-Mailboxes:" line to your
>.mh_profile to remove the permutations of your mailbox name that can
>arrive.  I use:
>
>Alternate-Mailboxes: bgg@yarra, bgg@yarra.oz, bgg@yarra.oz.au, yarra!bgg
>
>which picks up most of the names I get called.

The alternate-mailboxes line in your .mh_profile understands
wildcarding.  Here's an excerpt from mine:

    alternate-mailboxes: mcgrew@*, *!mcgrew, *!mcgrew@*, *!mcgrew%*

I would just go ahead and use

    alternate-mailboxes: *mcgrew*

except that there are other McGrew's here.

Darin McGrew			mcgrew@Eng.Sun.COM
Affiliation stated for identification purposes only.

jerry@ora.ora.COM (Jerry Peek) (02/25/91)

On 24 Feb 91 08:30:47 GMT, Stuart David Cheshire <agate!shelby!neon!cheshire@ucbvax.berkeley.edu> wrote:
> Whenever I use repl, it sends TWO copies of the message back
> to me, one addressed to "cheshire@pescadero.stanford.edu" and one just to
> "cheshire". The first obviously is copied from the "To" line, the second
> is added automatically so that I have a copy of the mail. How can I stop this?

Add these two lines to your MH profile file:

	Alternate-Mailboxes: cheshire@pescadero.stanford.edu, xxxx
	repl: -nocc me

The "xxxx" is a list of other addresses where mail might come to you
like cheshire@foobar.stanford.edu.  Wildcards work here, too.

> ... I can't find anything about it on the man pages.

It's in repl(1) and mh-profile(5).

--Jerry Peek, jerry@ora.com

cheshire@Neon.Stanford.EDU (Stuart David Cheshire) (02/26/91)

In article <m0jAho7-00003yC@ora.ora.com> jerry@ora.ora.COM (Jerry Peek) writes:
>Add these two lines to your MH profile file:
>
>	Alternate-Mailboxes: cheshire@pescadero.stanford.edu, xxxx
>	repl: -nocc me
>

Thanks for this advice, it is certainly part of the solution. However, when I
complained that I got TWO copies of the message, what I thought I had implied
was that I meant TWO as opposed to ONE copy, not no copies at all as I seem to
get now. I still want to keep a copy of all but the shortest messages I have
sent, since otherwise I tend to forget I've done it and write to the same
person three times. Now, what I really want to do is to persuade mh to keep one,
and only one copy of everything I send. There must be a way to do this.

Thanks.

Stuart Cheshire (cheshire@cs.stanford.edu)

wohler@sapwdf.UUCP (Bill Wohler) (02/26/91)

cheshire@Neon.Stanford.EDU (Stuart David Cheshire) writes:
>person three times. Now, what I really want to do is to persuade mh to keep one,
>and only one copy of everything I send. There must be a way to do this.

stuart,

  indeed.  add the following to your components/replcomps/forwcomps
  files:

	Fcc: +out

  all outgoing mail will go into the +out folder with no effort
  on your part.

						--bw
						wohler@sap-ag.de


ps.  if you meet up with leann sucht, tell her i said hi.

jerry@ORA.ORA.COM (Jerry Peek) (02/26/91)

Return-Path: ICS.UCI.EDU!mh-users-request
Return-Path: <mh-users-request@ICS.UCI.EDU>
Received: by ora.ora.com (/\=-/\ Smail3.1.18.1 #18.76)
	id <m0jB3zu-00009iC@ora.ora.com>; Tue, 26 Feb 91 07:41 EST
Received: from ics.uci.edu by ICS.UCI.EDU id aa00292; 26 Feb 91 3:49 PST
Received: from ucbvax.berkeley.edu by ICS.UCI.EDU id aa00282; 26 Feb 91 3:48 PST
Received: by ucbvax.Berkeley.EDU (5.63/1.42)
	id AA17077; Tue, 26 Feb 91 03:34:48 -0800
Received: from USENET by ucbvax.Berkeley.EDU with netnews
	for mh-users@ics.uci.edu (mh-users@ics.uci.edu)
	(contact usenet@ucbvax.Berkeley.EDU if you have questions)
On 26 Feb 91 10:02:54 GMT, Stuart David Cheshire wrote:
> In article <m0jAho7-00003yC@ora.ora.com> jerry@ora.ora.COM (Jerry Peek) writes:
>> Add these two lines to your MH profile file:
>> 	Alternate-Mailboxes: cheshire@pescadero.stanford.edu, xxxx
>> 	repl: -nocc me
>
> Now, what I really want to do is to persuade mh to keep one,
> and only one copy of everything I send. There must be a way to do this.

The "-nocc me" tells repl not to send you *any* copies.
The "Alternate-Mailboxes" tells repl what addresses are "me".

To get one copy, you can either:
	- Take out the "-nocc me"... then you'll get exactly one copy
	  of your replies (assuming all your addresses are listed in
	  Alternate-Mailboxes), or
	- Add an "Fcc: foldername" to the headers of messages you
	  send.  That will drop a copy of the message in the folder
	  "foldername".  You can do this for *all* MH messages you send
	  (not just with repl) by putting an "Fcc:" entry in your
	  personal copy of the files "components", "replcomps", and
	  "forwcomps" in your MH directory.  (If you make a "distcomps"
	  file, it needs "Resent-Fcc:".)  For more info, see the man
	  pages comp(1), repl(1), forw(1), dist(1) and mh-mail(5).

--Jerry Peek, jerry@ora.com

brnstnd@kramden.acf.nyu.edu (Dan Bernstein) (02/27/91)

In article <m0jB4cJ-0000B3C@ora.ora.com> jerry@ORA.ORA.COM (Jerry Peek) writes:
> To get one copy, you can either:
> 	- Take out the "-nocc me"... then you'll get exactly one copy
> 	  of your replies (assuming all your addresses are listed in
> 	  Alternate-Mailboxes), or
> 	- Add an "Fcc: foldername" to the headers of messages you
> 	  send.  That will drop a copy of the message in the folder
> 	  "foldername".

Or: Leave in the -nocc me, and add your address manually to replcomps.

---Dan