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]