Of the 16,000 messages, only 600 had a `patnum` value set. Running the following query:
Code: Select all
select FromAddress, count(FromAddress) from emailmessage
group by FromAddress
ORDER BY count(FromAddress) DESC
The curious thing is, the Gmail account is using about 8GB of storage, so OpenDental isn't downloading everything, which is nice, but not sure how it is prioritizing what to download, and as it is, it doesn't seem like a sustainable model. Looking at a backup from a couple years ago, they weren't using this feature, so within a couple years their database has grown 1.5GB?
Do they really have to delete spam through OpenDental AND Gmail? Can't we check to see if those messages still exist on the server and remove them if it isn't AND if it isn't assigned to a patient?
Alternatively, delete all messages that are over 30-60 days old that aren't assigned to a patient?
Anyway, just trying to think through what the plan is here as more time goes by.