Wiki source code of [AUTOMATED] Live email notifications with filter
Last modified by Ilie Andriuta on 2026/10/22 13:28
Show last authors
| author | version | line-number | content |
|---|---|---|---|
| 1 | Preconditions: | ||
| 2 | - The Mail Sending should be configured: [[Configure Mail Sending>>doc:Administration Tests.Configure Mail Sending||rel="__blank"]] | ||
| 3 | - An user with an email address set in the profile already exists | ||
| 4 | - A set of nested pages are already created: http://localhost:8080/xwiki/bin/view/Main/a/b/c/d/e/ | ||
| 5 | - Eventually, go to {{code}}webapps\xwiki\WEB-INF\xwiki.properties{{/code}} and set {{code}}notifications.emails.live.graceTime = 0{{/code}} to enable the sending of e-mails instantly. Make sure the line is not commented out (doesn't have an # at the start of it). | ||
| 6 | |||
| 7 | 1. Log in as a simple user (with email address in the profile) | ||
| 8 | 1. Click on the bell in the top right corner | ||
| 9 | 1. **Make sure the entire wiki is followed (on a page, click on Notifications button, select 'Follow entire wiki' and Save)** | ||
| 10 | 1. Click on Settings, in the right side of Notifications | ||
| 11 | 1. Set "Email Frequency" to Live | ||
| 12 | 1. Set ON all the options in the Email column | ||
| 13 | 1. Click on the "Add filter" button from Custom Filters section | ||
| 14 | 1*. Location -> Page "c": "Home/a/b/c/" | ||
| 15 | 1*. Action -> Ignore the event | ||
| 16 | 1*. Events type (Pages) -> A page is modified | ||
| 17 | 1*. Channel -> Email | ||
| 18 | 1. Log in with another user or with Admin | ||
| 19 | 1. Update all pages a/b/c/d/e |