[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Nmh-workers] [PATCH] test of scan with Local-Mailbox demonstrating

From: David Levine
Subject: Re: [Nmh-workers] [PATCH] test of scan with Local-Mailbox demonstrating bug
Date: Sat, 31 Jan 2015 06:12:46 -0500

Eric wrote:

> Bug is when Local-Mailbox is a substring of a From address, scan
> (and repl) think it's a message from yourself.
> Anyone know how to fix it? :)

The relevant code starts at line 416 of sbr/addrsbr.c, in
ismymbox().  cp is set to the From: address (address@hidden) in
the message, pp is set to the local mailbox (address@hidden).
The W_MBEG test is used, which does the substring test as you saw.
I can't wrap my ahead around why right now, can you or anyone else?

That code structure is repeated starting at line 442.  It might
be worth trying to rework all of it.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]