MBOX-Line: From snowjn at aol.com  Tue Mar 13 18:32:29 2007
To: imap-protocol@u.washington.edu
From: John Snow <snowjn@aol.com>
Date: Fri Jun  8 12:34:38 2018
Subject: [Imap-protocol] SEARCH restricted to one mailbox? Extensions?
In-Reply-To: <07Mar13.082943pst."57996"@synergy1.parc.xerox.com>
References: <07Mar12.152936pst."57996"@synergy1.parc.xerox.com>
	<1173743673.9167.65.camel@hurina> <45F6A2E4.3060502@aol.com>
	<07Mar13.082943pst."57996"@synergy1.parc.xerox.com>
Message-ID: <45F750AD.3020507@aol.com>


Bill Janssen wrote:
>> How about combining the multiple mailbox search with a select command to 
>> create a temporary mailbox view that contains the search result?  Since 
>> it doesn't exists as a listable mailbox, then it can't be the 
>> destination for a copy command, avoiding any issue of which underlying 
>> mailbox should be the destination.  The untagged exists response 
>> response would show the number of hits to the search query.  Also, the 
>> result set could be referenced by sequence number instead of the 
>> individual UIDs as returned by the standard search command.
>>     
>
> How would the client know to SELECT it?
>
> I was actually thinking of doing what Timo reminded me of yesterday,
> using a CREATE/SELECT combo, which would create a new mailbox the name
> of which would be the query, and would then rescan the query if it was
> selected.  They would be persistent in the server, but since they would
> be smart virtual mailboxes, this wouldn't be a big cost.
>
> Bill
>   

The client would know to use this method the same way it would know to 
do any other extension, it would be written to take advantage of the 
advertised capability.

Is there a way to identify a mailbox as read-only?  What happens when a 
client tries to copy or append a new message to your "search all 
folders" mailbox?  I suppose you'd have to respond NO, but there should 
be a way for the client to know before trying such an operation.

snow.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman13.u.washington.edu/pipermail/imap-protocol/attachments/20070313/96b60da1/attachment.html>
