Aaron Stone wrote:
>> Can I just delete the folder's record from dbmail_mailboxes? Or change 
>> the value of dbmail_mailboxes.name? I've only had a very brief look at 
>> the table structure at the moment.
> 
> If you delete the record in dbmail_mailboxes, the messages will be
> unlinked and will be flushed out by dbmail-util.

That's incorrect. If you delete a mailbox, all connected messages will
be deleted by the on delete cascade setting on the foreign key.

What Aaron describes (mailbox deleted -> flag messages for deletion by
dbmail-util) is a wishlist feature request in the tracker.

> If you simply change
> dbmail_mailboxes.name, then the new name will appear everywhere
> (subscriptions, etc) *except* mailboxes below it will not be renamed
> because we don't calculate the mailbox tree, we simply store full paths.

Actually, though this is true at the moment, I believe it could quite
easily be remedied with a trigger for those backends that support them.

-- 
  ________________________________________________________________
  Paul Stevens                                      paul at nfg.nl
  NET FACILITIES GROUP                     GPG/PGP: 1024D/11F8CD31
  The Netherlands________________________________http://www.nfg.nl

Reply via email to