synox / void-mail

self-hosted disposable email service (nodejs) using catch-all and imap
GNU General Public License v3.0
134 stars 54 forks source link

Suggestion - Add email GET request counter #14

Open erm3nda opened 5 years ago

erm3nda commented 5 years ago

Having a counter from imap email with catchall will lend to just a counter wich also reflects all spam on it. For better accuracy i do recommend to count also each GET, getting a count of "used emails from website" and "number of emails readed".

Regards.

synox commented 5 years ago

Where would you store the statistics?

erm3nda commented 5 years ago

Anywhere into a file or home .void-mail/stats.json, json'ed data with every GET and a counter. Maybe something like stats.json:

{"stats": {
              "get_counter_all": "55",
              "get_counter_last", "4",
              "get_history": {
                                     "<uuid>", "GET call 1 data",
                                     "<uuid>": "GET call 2 data, etc"
                                      }
               }
}

~~ Self signed ~~

EDIT: Actually i can monitor and save GET requests because i do nginx's proxy_pass void-mail http server with ngnix/apache, so i have at least 2 logs (even with rotate) to get enough data.

Why i did that? Well, i do install vestacp on every vps I do setup, and also that enables me to serve over https on top of the local http request to http://localhost:3000 (void-mail) or show an html page if server goes off, instead of just crash server. Fallback things ...

El jue., 11 jul. 2019 a las 13:22, Aravindo Wingeier (< notifications@github.com>) escribió:

Where would you store the statistics?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/synox/void-mail/issues/14?email_source=notifications&email_token=AB4TAAQZ6NCKL2KID7OF5VDP64JYTA5CNFSM4IBAP5U2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODZWMQII#issuecomment-510445601, or mute the thread https://github.com/notifications/unsubscribe-auth/AB4TAAQ4WMOTXGD3KXMPPJ3P64JYTANCNFSM4IBAP5UQ .