So I’ve been wanting to crack open Mail-in-a-Box and start modifying it, but it’s kinda a mess sometimes, so I have a few questions, and I will probably ask more as I go.
So, I understand that Mail-in-a-Box has an SQLlite database for users, but I’m kinda lost where all the data is stored. I intend to add email notifications subscriptions for all Mail-in-a-Box administrators (see Mail-in-a-Box Mailing List ), but I am trying to figure out the most appropriate place to store the configuration.
I have found these locations for data:
So I’m not exactly sure where I should store the settings for the subscriptions.
I am thinking what I’ll try to do is have the mail-in-a-Box daemon Python script run on an infinite loop and check using an HTTPS request every 15-30 minutes (randomly) for email announcements, then send an email (send using SMTP to localhost) to all the administrators.
However, I want to have opt-in/opt-out features that the user can configure.