[prev in list] [next in list] [prev in thread] [next in thread] 

List:       imap
Subject:    Re: SEARCH HEADER question
From:       Erik Forsberg <erik.forsberg () isocor ! com>
Date:       1997-04-15 21:54:38
[Download RAW message or body]

Just to add my 2 cents; I agree with the conclusions by Barry below;
I believe my server always did the correct thing (according to this 
interpreation which I completeky agree with)

On Tue, 15 Apr 1997 09:09:21 -0400 Barry Leiba <leiba@watson.ibm.com> 
wrote:

> On Mon, 14 Apr 97 14:40:40 -0700 Chris Newman <Chris.Newman@innosoft.com> 
> wrote:
> > I am also inclined to dismiss this as a bug.
> 
> I agree.
> 
> > > provides one useful feature: one can say
> > > A001 SEARCH NOT HEADER "Foo:" "Foo:"
> > > and get back a list of all messages that do not have the "Foo:" header.
> 
> I agree with what I think Chris thinks: that this is bad.  My server has 
> this bug also, because the code for "SEARCH HEADER xxx yyy" is exactly the 
> same as the code for "FETCH BODY[HEADER.FIELDS (xxx)]" with a filter for 
> "Does it contain 'yyy'?" on the back end.  It would not be hard to fix 
> this, though, and I'm inclined to do so (but I'll wait for the dust to 
> settle on this discussion first).
> 
> > Shouldn't
> > 
> > A001 SEARCH NOT HEADER "Foo" ""
> > 
> > get the same results under either semantics?
> 
> This works correctly on my server, selecting only those messages that have 
> a "Foo:" header record.  This is because I extract the header record(s) in 
> question, and then say "If I got something *and* it contains the search 
> string, then say yes."
> 
> I should point out that the current behaviour makes it impossible to search 
> for all messages, say, that have a subject containing the word "subject".  
> That, alone, is reason enough to "fix" it.  Don't others agree?
> 
> Let's clarify the spec so that it explicitly states what it seems to say 
> anyway: that SEARCH HEADER should search only the *body* of the header 
> records, not the tags, and that searching for "" (as above) should match 
> exactly all messages that *have* the header record in question.
> 
> Barry Leiba, Multimedia Messaging  (leiba@watson.ibm.com)
> http://www.research.ibm.com/people/l/leiba
> 

----------------------
Erik Forsberg
erik.forsberg@isocor.com

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic