Hi devs !
Currently working on
[
XWIKI-14353](https://jira.xwiki.org/browse/XWIKI-14353), I think that
the live e-mail notification system could be implement as 2 different ways :
1. In its notification preferences, a user can select if he wants a mail
daily, hourly or weekly (that’s already in place). We could add a new
"live" option that does exactly what is expected : it sends a mail as
soon as a document has been updated.
2. We could also provide a completely different option that sends live
e-mails, but regular notification mails are still sent depending on the
user preference and acts as a hourly / daily or weekly "digest".
Finally one idea would be to use the same system that is implemented in
discourse : a mail is sent approximately 10 minutes after an event is
triggered, this means that if a user A is subscribed to the events
coming form a document X, if this document is updated by someone else,
the updates coming from the document in the next 10 minutes will be
grouped in a single mail that will be sent to A. This could potentially
be more scalable as less mails are sent to the users.
WDYT ?
Thanks,
--
Clément Aubin
Web Developer Intern @XWiki SAS
clement.aubin(a)xwiki.com
More about us at
http://www.xwiki.com