]> sipb.mit.edu Git - ikiwiki.git/blob - doc/todo/mailnotification.mdwn
web commit by joey
[ikiwiki.git] / doc / todo / mailnotification.mdwn
1 Should support mail notification of new and changed pages.
2
3   Hmm, should be easy to implement this.. it runs as a svn post-coommit hook
4   already, so just look at the userdb, svnlook at what's changed, and send
5   mails to people who have subscribed.
6
7   A few details:
8   1. [[Joey]] mentioned that being able to subscribe to globs as well as
9      explicitly named pages would be desirable.
10   2. I think that since we're using Perl on the backend, being able to
11      let users craft their own arbitrary regexes would be good.
12
13      Joey points out that this is actually a security hole, because Perl
14      regexes let you embed (arbitrary?) Perl expressions inside them.  Yuck!
15
16      It would also be good to be able to subscribe to all pages except discussion pages or the SandBox: `* !*/discussion !sandobx`, maybe --[[Joey]]
17
18   3. Of course if you do that, you want to have form processing on the user
19      page that lets them tune it, and probably choose literal or glob by
20      default.
21
22      I think that the new globlist() function should do everything you need.
23      Adding a field to the prefs page will be trivial --[[Joey]]
24
25   The first cut, I suppose, could use one sendmail process to batch-mail all
26   subscribers for a given page.  However, in the long run, I can see users
27   demanding a bit of feature creep:
28
29   4. Each user should be able to tune whether they see the actual diff parts or
30      not.
31   5. Each user should be able to set a maximum desired email size.
32   6. We might want to support a user-specified shibboleth string that will be
33      included in the email they receive so they can easily procmail the messages
34      into a folder.
35
36   --[[BrandenRobinson]]