Afficher un message
Vieux 06/09/2006, 15h39   #6
Pete Maclean
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: getting sequence number from UID

"Mark Crispin" <mrc@CAC.Washington.EDU> wrote in message
news:Pine.OSX.4.64.0609052218560.8219@pangtzu.pand a.com...
> On Wed, 6 Sep 2006, Pete Maclean wrote:
>>>> This should do it:
>>>> 123 SEARCH UID 456
>>> Better is
>>> tag UID FETCH 456 UID
>>> (or any other fetch item for the second UID).

>> Mark, Why do you think the FETCH is better?

>
> The FETCH result definitely associates the UID with the sequence number.
> With SEARCH, the application has to do so manually.


That seems rather minor..

> The FETCH can be pipelined with other fetches.
> The SEARCH can not be (not safely, anyway).


.... but this is a good point.

>> I chose SEARCH because it's cleaner in the sense that, if the
>> message with the given UID does not exist, the client does not have to
>> deal
>> with a NO response.

>
> What makes you think that you would get a NO response? Any server that
> returns a NO response in this case is broken.


Nothing other than my broken memory. Sorry!

Pete


  Réponse avec citation
 
Page generated in 0,04873 seconds with 9 queries