ZeroMail icon indicating copy to clipboard operation
ZeroMail copied to clipboard

Support to notifications

Open danimesq opened this issue 8 years ago • 8 comments

danimesq avatar Apr 11 '17 18:04 danimesq

Unfortunetly with the current working method it's not possible, because you need the display logic to decrypt the messages

HelloZeroNet avatar Apr 11 '17 20:04 HelloZeroNet

Possible when web workers come to ZeroNet (sites working in background). "Like" BitMessage does.

danimesq avatar Apr 11 '17 20:04 danimesq

Are the metadata also encrypted ? If not we could just display notifications like "You got 1 new message today", without any more information.

Emeraude avatar Sep 09 '17 20:09 Emeraude

Yes everything is encrypted, so it's not possible right now

HelloZeroNet avatar Sep 10 '17 07:09 HelloZeroNet

What a pity there is no notifier. It is impressive to see a serverless asynchronous messaging tool working like a charm.

amuuza avatar Oct 05 '17 14:10 amuuza

Here you go https://git.gnu.io/chbinnc/binchan-s-messy-repo/tree/master/ZeroMailBot

a Python2 script that decrypts your ZeroMail and sends them to a local bot. After you schedule the bot and follow it, you can receive new ZeroMail notification from ZeroHello newsfeed.

And according to shortcutme, it needs a lot of efforts to make it into a ZeroNet plugin:

Currently the site's notification feed is defined by a sql request. To make zeromail notifications possible we need to allow javascript logic to return the latest message list. It could be possible by extending the newsfeed plugin to support javascript function call signups. After that when the user visits ZeroHello, the plugin would create a sandboxed iframe to load and run the newsfeed returning javascript function and then inserts the items returned to the newsfeed.

stbinan avatar Feb 23 '18 11:02 stbinan

Yes, this is an essential feature. I have two more solution ideas:

  • Update hook Run a script after a zite update (specified in content.json). This causes possible hangs after updates, so I think this idea should be rejected. Unless one develops an easy-to-write and forcefully deterministic language for the purpose. Needs change in HelloZero/ZeroNet

  • On-query decryption Provide more scripting oppurtunity feedFollow Yes, a single query should be enough, but with some more advanced SQL functions (decrypt(), getUserAddress()). This needs an external change too.

  • SiteWorker See previos comment. Since the reference refers to ZeroNetPlus, which is "just" a fork, I think we shouldn't rely on that globally.

I think at least on solution should be implemented. The problem this site is facing could arise by the development of other sites too.

lezsakdomi avatar Nov 09 '18 18:11 lezsakdomi

@lezsakdomi

There is already BackgroundProcessing Plugin, made by @imachug, that can power this notifications feature for encrypted data

danimesq avatar Nov 09 '18 23:11 danimesq