nmh-workers
[Top] [All Lists]

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

2015-01-31 05:13:06
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 (test1(_at_)example(_dot_)com) in
the message, pp is set to the local mailbox (est1(_at_)example(_dot_)com).
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.

David

_______________________________________________
Nmh-workers mailing list
Nmh-workers(_at_)nongnu(_dot_)org
https://lists.nongnu.org/mailman/listinfo/nmh-workers

<Prev in Thread] Current Thread [Next in Thread>