gridcoin-community / Gridcoin-Tasks

Gridcoin community tasks repository
https://gridcoin.us
MIT License
24 stars 5 forks source link

A way to notify crunchers of polls and updates (an opt-in email notification). #255

Open Weber462 opened 1 year ago

Weber462 commented 1 year ago

Is there an easy way to implement some sort of opt-in notification of polls/updates etc. I feel a lot of crunchers might be running headless servers. I believe this will increase polling participation and help with wallet updates

Weber462 commented 1 year ago

“The right way to handle it would be a core config file entry such as enablepollemailnotification=1 that would default to 0 (false). This entry could also be changed via the GUI just like the staking checkbox, etc.” “The question is the best way to actually implement the notification. Needs to be an operating system level mailto:...”

Weber462 commented 1 year ago

“The beacon structures on the blockchain and the BOINC statistics handled by the scrapers do NOT contain the email or any other PII associated with the CPID. However, the wallet node that is linked to the CPID does possess a valid email, as this must be provided for the wallet to validate the CPID and go into researcher (cruncher) mode. We could use this email to have the local wallet node send an email notification on receipt of a valid new poll contract. This would at least notify crunchers.“

div72 commented 1 year ago

Having a config key to send e-mail is out of scope for the wallet in my opinion. All important discussions are made in this repo beforehand, so why not use this repo instead?

barton2526 commented 1 year ago

This just seems like feature bloat. Why can't a third party offer this service?

Weber462 commented 1 year ago

Is there one? I tried to look but couldn't find any. It would be nice if wallet could somehow send email/notification. I would think it would be most reliable/accurate. As long as it doesn't affect wallet negatively and you need to opt in, I don't think it would be too bloaty. I just know it would be a feature that I would find extremely useful. More importantly, could help with community involvement.

jamescowens commented 1 year ago

Most (99.9%+) people running headless are running Linux. Linux has sendmail functionality. Unfortunately, most people don't even bother to configure it for even the most basic forwarding/sending.

iFoggz commented 1 year ago

No reason the wallet can't curl the gridcoin website mail server with the email address if new poll detected or poll about to expire and they haven't voted. The mail server could then locally send via a noreply to the said email address of cpid or custom notification email address. This would also pass spam related detections as well.

jamescowens commented 1 year ago

I like that idea. You want to give coding that a shot? I still think the curl send itself should be controlled by a config entry and also have a GUI tickbox.

jamescowens commented 1 year ago

By the way, @iFoggz, since the email would be sent to a centralized Gridcoin service (the Gridcoin website mail server), and even though it would be encrypted, this represents someone sending potential confidential information (their email). I think this means that if we implement this functionality, clicking the checkbox should present a warning that their email will be sent to the Gridcoin web server email service for notification. The email will not be retained.

Weber462 commented 3 months ago

Were there any updates on this function?