storing a mirror of IMAP/pop3 folder/inbox in a local DB, what choices are there?
You could try DBMail as local IMAP storage, and either use any of various IMAP syncing solutions or regular SMTP forwarding to get the mail in there.