incubator-esme-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Robert Burrell Donkin <robertburrelldon...@gmail.com>
Subject Re: Other twitter functionality to implement
Date Wed, 25 Mar 2009 17:16:53 GMT
On Wed, Mar 25, 2009 at 5:58 PM, David Pollak
<feeder.of.the.bears@gmail.com> wrote:
> On Wed, Mar 25, 2009 at 9:46 AM, Darren Hague <dhague@fortybeans.com> wrote:
>
>> I think there's a distinction to be made here between mutable objects and
>> mutable data - or are you saying that SQL UPDATE is inherently evil? ;-)
>>
>> To preserve object immutability, a copy of the message object with
>> "deleted=true" could be created, and this could replace the previous message
>> in people's mailboxes as a side-effect of the method which updates the
>> message record in the database. Put another way, a mailbox which receives a
>> "deleted=true" message would cause a matter/antimatter-like annihilation of
>> the original message.
>
>
> Knowing which mailboxes a particular message made it to, especially in a
> federated system is a non-trivial task.

the way that this sort of thing seems to work best in IMAP (for
example) is to use an immutable message and store separate mutable
flags per mailbox per message

- robert

Mime
View raw message