SA Bugzilla – Bug 537
EvalTests.pm 1.180 is a mistaken commit?
Last modified: 2002-08-04 09:01:28 UTC
I think this change in EvalTests.pm makes partial_rfc_2369() a no-op: - return (exists $count{'List-Unsubscribe'} && $#count < 2); + return (exists $count{'List-Unsubscribe'} && $#count < 1); (If one element of %count exists, $#count can't possibly be less than 1?)
Subject: Re: [SAdev] New: EvalTests.pm 1.180 is a mistaken commit? On Thu, Jul 11, 2002 at 09:40:27AM -0700, bugzilla-daemon@hughes-family.org wrote: > I think this change in EvalTests.pm makes partial_rfc_2369() a no-op: > > - return (exists $count{'List-Unsubscribe'} && $#count < 2); > + return (exists $count{'List-Unsubscribe'} && $#count < 1); > > (If one element of %count exists, $#count can't possibly be less than 1?) $#count refers to @count (# of last element in @count). $count{'...'} refers to %count. They're different. So this question can't be answered unless we know what's in @count. I don't know what this test is trying to do specifically, but if you mean "at least 2 elements in the hash", it'd be: return (exists $count{'List-Unsubscribe'} && keys %count < 2);
nope -- if 1 exists it'll return 1, if 2 or more exist, it'll return 0. 2 headers is what yahoo! groups send.
This change will make the test almost useless. Please attach a yahoo groups email and I will find a better way to exempt them.
reminder for myself to look at this change... I may have been hasty in my previous assessment.
any update on this? it's a WORKSFORME in my case ;)
finally got around to looking at this... new test works fine although I'm going to name it more properly since the test has changed from the original version.