tools/mailnotify
tools/mailnotify
. This script is designed to be run from 'cron' (or an equivalent offline job scheduler), and processes the contents of the standard WebNotify topic. As well as providing the usual notification service, it also provides per-topic notification services. The script may be run from the command line or a cron job.
Subscribers are listed in WebNotify following one of these bullet list formats:
three spaces * [ webname . ] wikiName - SMTP mail address * daisy@flowers.com * daisy@flowers.com: Web* * DaisyCutter: Petal* (1) WeedKillers (3) Red*Phlox * StarTrekFan: * - *Wars - *sInTheirEyes - *shipTroopersA user may be listed many times in the WebNotify topic. Where a user has several lines in WebNotify that all match the same topic, they will only be notified of changes to that topic once. If a TWiki group is listed for notification, the group will be recursively expanded to the e-mail addresses of all members. Tip: List names in alphabetical order to make it easier to find the names. In the future it is intended that individual users will be able to control the frequency with which they are notified of topic changes, by changing a schedule specification in their home topic. However at present, the notification schedule is controlled by the frequency of activation of the
cron
job that runs the mailnotify
script.
Note mailnotify
ignores permissions in webs. It is entirely possible for a user to get added to a WebNotify topic in a web, when they are not authorised to view the topics in that web. This could result in them having limited access to sensitive information (the topic summaries).
TWiki/Contrib/MailerContrib
code library WebNotify
package described below.
MailerContrib.zip
in your twiki installation directory.
MailContrib_intaller.pl
or alternatively resolve all dependencies manually.
mailnotify
script from the command line, with no parameters. In this case it will print out what it would have done to STDOUT.
cron
(or equivalent) job to run mailnotify
.
Usage: perl -I <bin> mailnotify [-q] [ web1 web2 ... webN ]
<bin> is the path to the TWiki bin directory (usually ../bin
), so that the script can find the rest of TWiki.
-q | Don't print progress information |
web1 web2 ... webN | List of webs to process, separated by spaces or commas. Default is to process all legal TWiki webs. Wildcards (*) are supported. |
perl -I /usr/local/twiki/bin mailnotify -q Public Private
will generate notifications for the Public and Private webs.
Author: | TWiki:Main/CrawfordCurrie (http://c-dot.co.uk) |
Copyright ©: | 2004, Wind River Systems |
License: | GPL |
Change History: | |
8808 | Item1654 mailnotify must enter the command_line context |
8625 | Item1508 Making the dashes in the separatator clearer |
8606 | Item1508 MailerContrib: Brushing up HTML mailnotify template |
8602 | Item1508 MailerContrib: Cleaning up plaintext e-mail template, removing TEXTAREA |
8522 | Item1511 arguments to getScriptUrl in wrong order |
8434 | Item1465 Fix 'TWiki.' to '%TWIKIEB%.' |
8398 | Item1460 polished up the comment a bit |
8308 | Item1362 moving mailnotify cron script |
7848 | Item1167 forced all mail operations to generate absolute URLs |
7568 | Item910 use SCRIPTURL{view} instead of complex url expr |
6864 | Item624 mailer templates moved the the right places |
6861 | Item624 Added proper templates support for plain text mails |
6809 | Item623 don't print anything if verbosity is switched off. |
6659 | Item528 Updated MailerContrib. it's working and the sendmail parameter is used. |
6474 | Item420 removed spurious remove_obsolete_locks from MailerContrib |
5924 | Item153 fix mail URL-fixing scheme |
5269 | Minor doc fixes |
5266 | Doc tidy-ups, added filtering of _ webs, added obsolete lock script |
5264 | Changed default to add web name to user name (I hope) |
5263 | Minor doc tidyups |
5261 | Documentation changes, and fixed to scan all webs. |
5253 | runnable as CGI script, minor bugfixes, removed dependency on DBCacheContrib? |
5234 | Minor doc changes |
5231 | Made a change an object, added unit tests to CVS, lots of testing. |
4 March 2005 | 1.010 Dakar release ready. |
12 Oct 2004 | 1.004 Added support for anti-subscriptions. Doc fixes from TWiki:Main.PeterThoeny. Bug fixes to permissions code. Back-off and retry if the mailer can't be reached (should really be in Net::sendEmail) |
6 Oct 2004 | 1.003 Excluded _ webs from processing, added bin/remove_obsolete_locks for full reverse-compatibility |
1 Oct 2004 | 1.002 PeterThoeny provided additional documentation |
27 Sep 2004 | 1.001 runnable as CGI script, minor bugfixes, removed dependency on DBCacheContrib |
8 Sep 2004 | 1.000 Initial version |
Home: | TWiki:Plugins/MailerContrib |
Feedback: | TWiki:Plugins/MailerContribDev |
Appraisal: | http://TWiki.org/cgi-bin/view/Plugins/MailerContribAppraisal |
USER REFERENCES
ADMIN MAINTENANCE
CATEGORIES WEBS PERSONAL |
Copyright © by the contributing authors. Bernstein - The Memory of Paper http://www.bernstein.oeaw.ac.at Ideas, requests, problems regarding Bernstein? Send feedback Note: Please contribute updates to this topic on TWiki.org at TWiki:TWiki.MailerContrib |