Iain MacDonnell - Sun UK - SunPS IT Operations - Project Specialist writes:
: 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;
:     }

I thought the fix might be as simple as adding:

          if (ismymbox(mp->m_next) && ismymbox(np)) return 0;

but it seems that ismymbox() doesn't work here - it seems to be comparing
each new entry to what's been inserted in the to/cc list already - as if
the two lists are interfering with eachother.

Can anyone who knows the code better help me out ?

    ~Iain




PS, example:

    for (immp = &immq; immp->m_next; immp = immp->m_next) {
        if (!strcasecmp (np->m_host, immp->m_next->m_host)
                && !strcasecmp (np->m_mbox, immp->m_next->m_mbox))
            return 0;

        printf("%s %d\n%s %d\n", np->m_mbox, ismymbox (np), immp->m_next->m_mbox, 
ismymbox(immp->m_next));

    }
    printf("---\n");


smithers:~$ grep Altern .mh_profile
Alternate-Mailboxes: iain.macdonnell, dseven@*
smithers:~$ repl -group -editor /bin/cat
---
jpeek 0
Iain.MacDonnell 0
---
jpeek 0
Iain.MacDonnell 0
nmh-workers 1
Iain.MacDonnell 0
nmh-workers 1
jpeek 0
---
im50766 1
Iain.MacDonnell 0
im50766 1
jpeek 0
im50766 1
nmh-workers 1
---
From: Iain MacDonnell - Sun UK - SunPS IT Operations - Project Specialist 
<[EMAIL PROTECTED]>
To: Iain MacDonnell - Sun UK - SunPS IT Operations - Project Specialist
    <[EMAIL PROTECTED]>
cc: Jerry Peek <[EMAIL PROTECTED]>, [EMAIL PROTECTED], im50766
Subject: Re: repl -group and alternate-mailboxes (fwd) 
In-Reply-To: Message from Iain MacDonnell - Sun UK - SunPS IT Operations - Project 
Specialist <[EMAIL PROTECTED]> 
   of "Tue, 02 Nov 1999 17:11:07 GMT." <[EMAIL PROTECTED]> 
--------




What now? 
  • repl -... Iain MacDonnell - Sun UK - SunPS IT Operations - Project Specialist
    • R... Jerry Peek
    • R... Iain MacDonnell - Sun UK - SunPS IT Operations - Project Specialist
    • R... Iain MacDonnell - Sun UK - SunPS IT Operations - Project Specialist
    • R... Jerry Peek
    • Iain MacDonnell - Sun UK - SunPS IT Operations - Project Specialist

Reply via email to