It's a really horrible hack, but I've got around it by *removing* the
alternate-mailboxes profile entry, and putting this in for CC in
replgroupcomps:
%(lit)%(formataddr{to})%(formataddr{cc})%(formataddr(lit
[EMAIL PROTECTED]))\
%<(nonnull)%(void(width))%(putaddr cc: )\n%>%>\
I hope someone can come up with something better :)
Uggh ... brain fried ... need caffeine ... looking at insert() in replsbr.c,
it doesn't look like is does any checking with alternates:
for (mp = &mq; mp->m_next; mp = mp->m_next) {
if (!strcasecmp (np->m_host, mp->m_next->m_host)
&& !strcasecmp (np->m_mbox, mp->m_next->m_mbox))
return 0;
}
Maybe I can come up with a patch ...
~Iain
Iain MacDonnell - Sun UK - SunPS IT Operations - Project Specialist writes:
:
: I'm glad it's not just me whose head it hurts :)
:
: I've tried as much as:
:
: Alternate-Mailboxes: *iain*@*, iain*@*, *macdonnell@*,
: [EMAIL PROTECTED]
:
: with no avail. I think, since -nocc me works as expected, that either there's
: a bug, or my assumption of how it's supposed to work is wrong.
:
: MH-PROFILE(5) says:
:
: "For each address, if a host is not given, then that address on any host is
: considered to be you."
:
: ~Iain
:
:
:
:
: Jerry Peek writes:
: : > My username is "im50766", but I have a primary alias "Iain.MacDonnell",
: : > which gets rewritten into the sender fields on my outgoing mail by sendma
+ il
: + .
: : >
: : > To handle this, I have:
: : >
: : > smithers:~$ grep Alternate .mh_profile
: : > Alternate-Mailboxes: iain.macdonnell
: : > smithers:~$
: : >
: : ...deleted...
: : >
: : > If my understanding is correct, repl should have removed one or other of
: : > "[EMAIL PROTECTED]" and "im50766", since both should be valid
: : > mailboxes for me.
: :
: : This whole replgroup stuff makes my head hurt ;-), but I think your
: : problem is related to the mailbox. It needs to be an exact match of
: : the *whole* address; otherwise, use glob-style wildcards. (See the
: : mh-profile(5) manual page.) For instance, here's mine:
: :
: : Alternate-Mailboxes: jerry@*ora.com, jpeek@*, *@jpeek*
: :
: : Maybe that'll help?
: :
: : Jerry
: : --
: : Jerry Peek, [EMAIL PROTECTED], http://www.jpeek.com/
: :
:
:
:
Re: repl -group and alternate-mailboxes (fwd)
Iain MacDonnell - Sun UK - SunPS IT Operations - Project Specialist Tue, 2 Nov 1999 08:13:19 -0800
- repl -... Iain MacDonnell - Sun UK - SunPS IT Operations - Project Specialist
