Just one quick question for add this features..

you said:
that multiple calls to store(Mail) using the same mail will create a new
object in the store the first time and update the same object the
following calls.

So if store(Mail) is called again with the same email (what you mean
with same ? identical?) it should override the "old" email ? Or what for
updates you talk about?


The problem with random keys is fixed here now by generate a md5 for
each message and use this as Key. So the key is on every call the same
for each message.

bye
 

Am Freitag, den 24.03.2006, 13:03 +0100 schrieb Stefano Bagnara:
> Norman Maurer wrote:
> > Hm.. now i understand.. But still no idea how to solve this issue.. 
> > 
> > Maybe workaround for this is to use a method like in Mbox.. So just
> > generate a MD5 for each message and use this as unique key. 
> > 
> > you see any probs with that ?
> 
> There are big problems with the javamail Folder interface.
> 
> I've just read that the only way to retrieve a given message is by its 
> number, but the number can change at any Folder operation.
> 
> So, the only way would be to recalculate all of the MD5 every time a 
> message is wrote to the Folder: blocking issue (performance).
> 
> the Folder object provides callbacks for "changed message" and "changed 
> count".
> 
> By current James usage we must ensure at lease:
> 
> - that multiple calls to store(Mail) using the same mail will create a 
> new object in the store the first time and update the same object the 
> following calls.
> 
> - concurrent operations (multiple concurrent list/retrieve/delete)
> 
> - coherent locking: locking is done at message key name, so a single 
> message in the store must be identifiead by a single key (so we cannot 
> generate new random keys at each list() call)
> 
> I stop here (lack of time :-( )
> 
> Stefano
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> !EXCUBATOR:1,4423e0ee200622129820242!

Attachment: signature.asc
Description: Dies ist ein digital signierter Nachrichtenteil

Reply via email to