|
Thanks very much for taking the time to respond. I assume that the physmessages table would contain the message headers, and in that sense it could be deduced who the message was from and who it was sent to. Is that correct? On a side note, is there a reason that mailboxes are physically deleted from the DB? Surely taking a similar approach to mailboxes as is taken for messages would be better? I.e., when a mailbox is deleted, it is marked as deleted along with all messages in it, and it is only destroyed when a purge is done. Is there a reason that approach was not taken? Is there an easy way for me to implement this? We really do need a comprehensive perpetual record of messages. - Naz Aaron Stone wrote: Sorry for the jargon response. The schema is described here: http://dbmail.org/dokuwiki/doku.php?id=er-modelusers -> mailboxes -> messages -> physmessages -> messageblks. The physmessages and messgaeblks tables holds the raw bytes of the message. They doesn't know what mailbox it is in or which user owns the message. It is the messages and mailboxes tables that contain those mappings. When a message is deleted in IMAP, it is flagged \Delete in messages. When you expunge the mailbox, the message is internally marked with a status = 'deleted' in DBMail. When you run dbmail-util, messages with status 'purged' are destroyed, while messages with status 'deleted' are marked to be 'purged'. If you simply don't purge the messages, that's one approach to having a forever record of the message. Once a physmessages is no longer references by any messages, it is deleted, and its messageblks are deleted, too. When a mailbox is deleted, however, those steps are not followed; the messages rows are removed from the database directly; so in that respect, it is not a good forever record of the message. Aaron On Thu, 2008-04-17 at 14:28 +1000, Naz Gassiep wrote: |
_______________________________________________ DBmail mailing list [email protected] https://mailman.fastxs.nl/mailman/listinfo/dbmail
