Re: [Dbmail-dev] Paranoid DELETEs / Archiving

2008-01-18 Thread Marc Dirix
that is what I mean by 're-assigning' mailboxes: when you delete a user, his/her mailboxes are re-assigned to a __archive__ system user, or maybe even __public__ with restricted ACLs. Right. I thought you meant reassigning to the deleted user, and then delete everything.

Re: [Dbmail-dev] Paranoid DELETEs / Archiving

2008-01-18 Thread Paul J Stevens
Erik Osterman wrote: This was a good suggestion, but after some research/attempts, I am not able to get the triggers working in MySQL to accomplish it. It all boils down to this error: Can't update table 'dbmail_mailboxes' in stored function/trigger because it is already used by statement

Re: [Dbmail-dev] Paranoid DELETEs / Archiving

2008-01-18 Thread Erik Osterman
Paul J Stevens wrote: Hrm... Well, since the first solution was satisfied without modifying any code, I'll probably just use a trigger to insert the deleted folders into a separate table. That might work if you break the constraint on the messages table against the mailboxes table. But

Re: [Dbmail-dev] Paranoid DELETEs / Archiving

2008-01-18 Thread Erik Osterman
First, thanks for taking an interest in this discussion. It wasn't my intention to shape a whole new feature, if it hadn't been proposed before. That said, I'd be delighted if it were to make its way into the mainline. Paul J Stevens wrote: - make sure mailboxes are re-assigned when a user

Re: [Dbmail-dev] Paranoid DELETEs / Archiving

2008-01-18 Thread Paul J Stevens
Marc Dirix wrote: - make sure mailboxes are re-assigned when a user is deleted (trigger) Doesn't this (at a higher level) sound a bit as the same mistake with deleting mailboxes versus messages? If we start using archive to be able to restore accidental mailboxes, at some point there

Re: [Dbmail-dev] Paranoid DELETEs / Archiving

2008-01-18 Thread Marc Dirix
- make sure mailboxes are re-assigned when a user is deleted (trigger) Doesn't this (at a higher level) sound a bit as the same mistake with deleting mailboxes versus messages? If we start using archive to be able to restore accidental mailboxes, at some point there will also be someone

Re: [Dbmail-dev] Paranoid DELETEs / Archiving

2008-01-18 Thread Jake Anderson
Erik Osterman wrote: First, thanks for taking an interest in this discussion. It wasn't my intention to shape a whole new feature, if it hadn't been proposed before. That said, I'd be delighted if it were to make its way into the mainline. Paul J Stevens wrote: - make sure mailboxes are

Re: [Dbmail-dev] Paranoid DELETEs / Archiving

2008-01-17 Thread Paul J Stevens
Erik Osterman wrote: Hrm... Well, since the first solution was satisfied without modifying any code, I'll probably just use a trigger to insert the deleted folders into a separate table. That might work if you break the constraint on the messages table against the mailboxes table. But you

Re: [Dbmail-dev] Paranoid DELETEs / Archiving

2008-01-16 Thread Erik Osterman
Paul J Stevens wrote: message deletion can be dealt with by *not* running 'dbmail-util -py'. In that case message status will be kept at 2, being invisible to the daemons, but still there in the database. Yes, this exactly what I want. Would be the process of restoring the emails?

Re: [Dbmail-dev] Paranoid DELETEs / Archiving

2008-01-16 Thread Erik Osterman
Paul J Stevens wrote: message deletion can be dealt with by *not* running 'dbmail-util -py'. In that case message status will be kept at 2, being invisible to the daemons, but still there in the database. To restore an email, is it as simple as setting the status back to 1 and setting the

Re: [Dbmail-dev] Paranoid DELETEs / Archiving

2008-01-16 Thread Marc Dirix
To restore an email, is it as simple as setting the status back to 1 and setting the deleted_flag to 0? Yes ___ Dbmail-dev mailing list Dbmail-dev@dbmail.org http://twister.fastxs.net/mailman/listinfo/dbmail-dev

[Dbmail-dev] Paranoid DELETEs / Archiving

2008-01-14 Thread Erik Osterman
Hi, I'm looking for a way to keep all email ever received whether deleted or not. As it stands, I don't see that this is possible with dbmail. The reason is two fold: users frequently delete messages that need to be restored; we're legally required to maintain a copy of all email. Storing a

Re: [Dbmail-dev] Paranoid DELETEs / Archiving

2008-01-14 Thread Marc Dirix
On Mon, Jan 14, 2008 at 05:50:34AM -0800, Erik Osterman wrote: Hi, I'm looking for a way to keep all email ever received whether deleted or not. As it stands, I don't see that this is possible with dbmail. The reason is two fold: users frequently delete messages that need to be restored;

Re: [Dbmail-dev] Paranoid DELETEs / Archiving

2008-01-14 Thread Erik Osterman
It's a valid point and mail will be warehoused on a certain interval. But we'd like to keep relatively recently deleted mail online. Restoration is trivial then, since it's just setting the deleted_at timestamp col back to null for a particular daterange. Erik Marc Dirix wrote: On Mon, Jan

Re: [Dbmail-dev] Paranoid DELETEs / Archiving

2008-01-14 Thread Aleksander Kamenik
Erik Osterman wrote: It's a valid point and mail will be warehoused on a certain interval. But we'd like to keep relatively recently deleted mail online. Restoration is trivial then, since it's just setting the deleted_at timestamp col back to null for a particular daterange. Aren't you

Re: [Dbmail-dev] Paranoid DELETEs / Archiving

2008-01-14 Thread Paul J Stevens
Erik Osterman wrote: Hi, I'm looking for a way to keep all email ever received whether deleted or not. As it stands, I don't see that this is possible with dbmail. The reason is two fold: users frequently delete messages that need to be restored; we're legally required to maintain a copy of