data/TWiki/MailerContrib.txt,v
changeset 0 414e01d06fd5
child 1 e2915a7cbdfa
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/data/TWiki/MailerContrib.txt,v	Sat Jan 26 15:50:53 2008 +0100
     1.3 @@ -0,0 +1,803 @@
     1.4 +head	1.5;
     1.5 +access;
     1.6 +symbols;
     1.7 +locks; strict;
     1.8 +comment	@# @;
     1.9 +
    1.10 +
    1.11 +1.5
    1.12 +date	2008.01.22.03.21.28;	author TWikiContributor;	state Exp;
    1.13 +branches;
    1.14 +next	1.4;
    1.15 +
    1.16 +1.4
    1.17 +date	2007.01.16.04.11.59;	author TWikiContributor;	state Exp;
    1.18 +branches;
    1.19 +next	1.3;
    1.20 +
    1.21 +1.3
    1.22 +date	2006.06.25.16.26.31;	author TWikiContributor;	state Exp;
    1.23 +branches;
    1.24 +next	1.2;
    1.25 +
    1.26 +1.2
    1.27 +date	2006.04.01.05.55.29;	author TWikiContributor;	state Exp;
    1.28 +branches;
    1.29 +next	1.1;
    1.30 +
    1.31 +1.1
    1.32 +date	2006.02.01.12.01.22;	author TWikiContributor;	state Exp;
    1.33 +branches;
    1.34 +next	;
    1.35 +
    1.36 +
    1.37 +desc
    1.38 +@new-topic
    1.39 +@
    1.40 +
    1.41 +
    1.42 +1.5
    1.43 +log
    1.44 +@buildrelease
    1.45 +@
    1.46 +text
    1.47 +@---+!! Mailer Contrib
    1.48 +<a href="http://wikiring.com"><img src="%ATTACHURL%/logo.gif" style="float:right" /></a>
    1.49 +
    1.50 +Allows users to "subscribe" to regularly scheduled e-mails containing either:
    1.51 +   * A report on changes to all topics that have changed within a particular TWiki web.
    1.52 +   * A report on changes to a specific topic or set of topics the user can define flexibly.
    1.53 +   * The entire content of a specific topic or set of topics. This is referred to as "news mode."
    1.54 +   * The companion plugin (TWiki:Plugins.SubscribePlugin) lets you trivially add a "Subscribe to changes" button to topics
    1.55 +
    1.56 +<!--
    1.57 +
    1.58 +   PLEASE DO NOT EDIT THIS TOPIC
    1.59 +
    1.60 +   It is automatically generated from the subversion repository, and any changes
    1.61 +   you make will simply be overwritten the next time a release is generated.
    1.62 +
    1.63 +   Instead, you could check your fix in, raise a bug in the Bugs web, or mail the author.
    1.64 +-->
    1.65 +
    1.66 +
    1.67 +<div class="twikiBroadcastMessage">WARNING: TWiki-4 only. If you want to use this extension with an earlier version of TWiki, please use [[http://twiki.org/cgi-bin/attach/Plugins/%TOPIC%?filename=%TOPIC%.zip&revInfo=1][revision 17 of the zip]].</div>
    1.68 +
    1.69 +%TOC%
    1.70 +
    1.71 +---++ tools/mailnotify
    1.72 +The central component of !MailerContrib is a script, =tools/mailnotify=, that generates and sends out the emails based on analysis of
    1.73 +   1 users' subcriptions listed in the <nop>%NOTIFYTOPIC%  topic in each web, and
    1.74 +   1  changes within the respective webs.
    1.75 +This script is designed to be run from =cron= (or an equivalent off-line job scheduler), or from the command-line. 
    1.76 +
    1.77 +The script collates the changes emails so that each subscriber only receives one changes notification for all changes in all webs in the TWiki. Furthermore, users can elect to receive just summaries of changes, or the entire content of topics that have changed.
    1.78 +
    1.79 +Each web can optionally contain a topic called <nop>%NOTIFYTOPIC%.
    1.80 +<!-- Included by %TWIKIWEB%.WebChangesAlert -->
    1.81 +%STARTINCLUDE%
    1.82 +Users subscribe to email notifications using their %TWIKIWEB%.WikiName or an alternative email address, and can specify the webs/topics they wish to track, WWhole groups of users can also be subscribed for notification.
    1.83 +
    1.84 +The general format of a subscription is:
    1.85 +
    1.86 +_three spaces_ =*= _subscriber_ [ =:= _topics_ ]
    1.87 +
    1.88 +Where _subscriber_ can be a %TWIKIWEB%.WikiName, an E-mail address, or a
    1.89 +group name. If _subscriber_ contains any characters that are not legal in
    1.90 +an email address, then it must be enclosed in 'single' or "double" quotes.
    1.91 +
    1.92 +_topics_ is an optional space-separated list of topics:
    1.93 +   * ... *without* a _Web._ prefix
    1.94 +   * ...that exist in this web.
    1.95 +Users may further customize the specific content they will receive using the following controls:
    1.96 +   * You can use =*= in a topic name, where it is treated as a [[http://en.wikipedia.org/wiki/Wildcard_character][wildcard character]]. A =*= will match zero or more other characters - so, for example, =Fred*= will match all topic names starting with =Fred=, =*Fred= will match all topic names _ending_ with =Fred=, and =*= will match _all_ topic names.
    1.97 +   * Each topic may optionally be preceded by a '+' or '-' sign. The '+' sign means "subscribe to this topic". The '-' sign means "unsubscribe" or "don't send notifications regarding this particular topic". This allows users to elect to filter out certain topics. Topic filters ('-') take precedence over topic includes ('+') i.e. if you unsubscribe from a topic it will cancel out any subscriptions to that topic.
    1.98 +   * Each topic may optionally be followed by an integer in parentheses, indicating the depth of the tree of children below that topic. Changes in all these children will be detected and reported along with changes to the topic itself. _Note_ This uses the TWiki "Topic parent" feature.
    1.99 +   * Each topic may optionally be immediately followed by an exclamation mark ! or a question mark ? with no intervening spaces, indicating that the topic (and children if there is a tree depth specifier as well) should be mailed out as *complete topics* instead of change summaries. ! causes the topic to be mailed every time _even if there have been no changes_, and ? will mail the topic only if there have been changes to it. This only makes sense for subscriptions, and is intended for mailshotting regular newletters.
   1.100 +
   1.101 +For example:
   1.102 +Subscribe Daisy to all changes to topics in this web.
   1.103 +<verbatim>
   1.104 +   * daisy.cutter@@flowers.com
   1.105 +</verbatim>
   1.106 +Subscribe Daisy to all changes to topics that start with =Web=.
   1.107 +<verbatim>
   1.108 +   * daisy.cutter@@flowers.com : Web*
   1.109 +</verbatim>
   1.110 +Subscribe Daisy to changes to topics starting with =Petal=, and their immediate children, !WeedKillers and children to a depth of 3, and all topics that match start with =Pretty= and end with =Flowers= e.g. =PrettyPinkFlowers=
   1.111 +<verbatim>
   1.112 +   * DaisyCutter: Petal* (1) WeedKillers (3) Pretty*Flowers
   1.113 +</verbatim>
   1.114 +Subscribe !StarTrekFan to changes to all topics that start with =Star= *except* those that end in =Wars=, =sInTheirEyes= or =shipTroopers=.
   1.115 +<verbatim>
   1.116 +   * StarTrekFan: Star* - *Wars - *sInTheirEyes - *shipTroopers
   1.117 +</verbatim>
   1.118 +Subscribe Daisy to the full content of !NewsLetter whenever it has changed
   1.119 +<verbatim>
   1.120 +   * daisy@@flowers.com: NewsLetter?
   1.121 +</verbatim>
   1.122 +Subscribe buttercup to !NewsLetter and its immediate children, even if it hasn't changed.
   1.123 +<verbatim>
   1.124 +   * buttercup@@flowers.com: NewsLetter! (1)
   1.125 +</verbatim>
   1.126 +Subscribe !GardenGroup (which includes Petunia) to all changed topics under !AllnewsLetters to a depth of 3. Then unsubscribe Petunia from the !ManureNewsLetter, which she would normally get as a member of GardenGroup:
   1.127 +<verbatim>
   1.128 +   * GardenGroup: AllNewsLetters? (3)
   1.129 +   * petunia@@flowers.com: - ManureNewsLetter
   1.130 +</verbatim>
   1.131 +Subscribe =IT:admins= (a non-TWiki group defined by an alternate user mapping) to all changes to Web* topics.
   1.132 +<verbatim>
   1.133 +   * 'IT:admins' : Web*
   1.134 +</verbatim>
   1.135 +
   1.136 +A user may be listed many times in the <nop>%NOTIFYTOPIC% topic. Where a user has several lines in <nop>%NOTIFYTOPIC% that all match the same topic, they will only be notified about _changes_ that topic _once_ (though they will still receive individual mails for news topics).
   1.137 +
   1.138 +If a _group_ is listed for notification, the group will be recursively expanded to the e-mail addresses of all members.
   1.139 +
   1.140 +__%X% Warning: Because an email address is not linked to a user name, there is no way for TWiki to check access controls for email addresses. A user identified by an email address will only be sent change notifications if the topic they are asubscribed to is readable by guest users. You can limit what email addresses can be used in <nop>%NOTIFYTOPIC%, or even block use of emails altogther, using the ={MailerContrib}{EmailFilterIn} setting in =configure=.
   1.141 +
   1.142 +__%T% Tip:__ List names in alphabetical order to make it easier to find the names.
   1.143 +%STOPINCLUDE%
   1.144 +
   1.145 +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.
   1.146 +
   1.147 +Note that when using the "news mode" =!= or =?= specifiers the entire topic text is mailed out as HTML. The =newsletter= template is used to generate the content in this mail, using whatever skin is selected in the topic being mailed.
   1.148 +
   1.149 +In addition, the %<nop>STARTPUBLISH% and %<nop>STOPPUBLISH% markers used by TWiki:Plugins.PublishContrib to delimit the text to be published are respected in news mode.
   1.150 +
   1.151 +---++ TWiki/Contrib/MailerContrib code library
   1.152 +The second part of the module is a code library that provides the services for other applications to modify the subscription topics through a clean, well documented API. This allows (for example) plugin developers to add (for example) a "Register me for this newsletter" button to their pages. Developers should refer to the POD documentation for the !WebNotify class as their starting point.
   1.153 +
   1.154 +---++ Installation Instructions
   1.155 +You do not need to install anything in the browser to use this extension. The following instructions are for the administrator who installs the extension on the server where TWiki is running.
   1.156 +
   1.157 +Like many other TWiki extensions, this module is shipped with a fully
   1.158 +automatic installer script written using the Build<nop>Contrib.
   1.159 +   * If you have TWiki 4.2 or later, you can install from the =configure= interface (Go to Plugins->Find More Extensions)
   1.160 +      * See the [[http://twiki.org/cgi-bin/view/Plugins/BuildContribInstallationSupplement][installation supplement]] on TWiki.org for more information.
   1.161 +   * If you have any problems, then you can still install manually from the command-line:
   1.162 +      1 Download one of the =.zip= or =.tgz= archives
   1.163 +      1 Unpack the archive in the root directory of your TWiki installation.
   1.164 +      1 Run the installer script ( =perl &lt;module&gt;_installer= )
   1.165 +      1 Run =configure= and enable the module, if it is a plugin.
   1.166 +      1 Repeat for any missing dependencies.
   1.167 +   * If you are *still* having problems, then instead of running the installer script:
   1.168 +      1 Make sure that the file permissions allow the webserver user to access all files.
   1.169 +      1 Check in any installed files that have existing =,v= files in your existing install (take care *not* to lock the files when you check in)
   1.170 +      1 Manually edit !LocalSite.cfg to set any configuration variables.
   1.171 +
   1.172 +%IF{"defined 'SYSTEMWEB'" else="<div class='twikiAlert'>%X% WARNING: SYSTEMWEB is not defined in this TWiki. Please add these definitions to your %MAINWEB%.TWikiPreferences, if they are not already there:<br><pre>   * <nop>Set SYSTEMWEB = %<nop>TWIKIWEB%<br>   * <nop>Set USERSWEB = %<nop>MAINWEB%</pre></div>"}%
   1.173 +
   1.174 +   * To make sure the installation was successful, run the =mailnotify= script from the command line, with no parameters. In this case it will print out what it would have done to =STDOUT=.
   1.175 +*Additional settings*
   1.176 +   * You can change the regular expression that matches email addresses in <nop>%NOTIFYTOPIC% using the ={MailerContrib}{EmailFilterIn} setting in =configure=. This allows you to limit the domains to which emails can be sent, or even block email addresses altogether.
   1.177 +
   1.178 +---+++ Setting up your cron job(s)
   1.179 +You need to set up a =cron= (or equivalent) job to run the =tools/mailnotify= perl script.
   1.180 +
   1.181 +The script is used as follows: <code>perl -I _bin_ mailnotify [-q] [-news] [ <i>web1 web2 ... webN</i> ]</code>
   1.182 +| _bin_ | path to the TWiki bin directory, so that the script can find the rest of TWiki. |
   1.183 +| =-q= | Don't print progress information |
   1.184 +| =-news= | Run in news mode (process !NewsNotify instead of <nop>%NOTIFYTOPIC%) |
   1.185 +| <code><i>web1 web2 ... webN</i></code> | List of webs to process, separated by spaces or commas. The default is to process all webs. Wildcards (*) are supported. |
   1.186 +For example, assuming TWiki was installed at =/usr/local/twiki=, this cron entry:
   1.187 +<verbatim>
   1.188 +0 0 * * * cd /usr/local/twiki && perl -I bin tools/mailnotify -q Public Private
   1.189 +</verbatim>
   1.190 +will generate change notifications for the =Public= and =Private= webs every night at midnight. (Google for =crontab= for more information on what all the =0 0 * * *= fields mean)
   1.191 +<verbatim>
   1.192 +0 0 * * * cd /usr/local/twiki && perl -I bin tools/mailnotify -q -Sandbox
   1.193 +</verbatim>
   1.194 +will generate change notifications for all webs, except the =Sandbox= web.
   1.195 +<verbatim>
   1.196 +0 0 * * 0 cd /usr/local/twiki && perl -I bin tools/mailnotify -news
   1.197 +</verbatim>
   1.198 +will generate newsletters from *all* webs every week on midnight Saturday.
   1.199 +
   1.200 +<!--
   1.201 +	* Set STUB = TWiki::Contrib::Mailer
   1.202 +	* Set SHORTDESCRIPTION = Supports e-mail notification of changes.
   1.203 +-->
   1.204 +---++ Developer Notes
   1.205 +The changes mails sent to users are based on a TWiki template called =mailnotify=. This template must contain the following definitions. 
   1.206 +| =HTML:before= | Section of a HTML mail before the changes |
   1.207 +| =HTML:middle= | Repeated in a HTML mail for each change |
   1.208 +| =HTML:after= | Section of a HTML mail after the changes |
   1.209 +| =PLAIN:before= | Section of a plain text mail before the changes |
   1.210 +| =PLAIN:middle= | Repeated in a plain text mail for each changes |
   1.211 +| =PLAIN:after= | Section of a plain text mail after the changes |
   1.212 +| =MailNotifyBody= | All the above are embedded in this. %<nop>HTML_TEXT% expands to the HTML obtained by expanding the =HTML:*= templates, and %<nop>PLAIN_TEXT% from the =PLAIN:*= templates. |
   1.213 +The default template sends multipart mails containing both HTML and plaintext versions. You can easily provide a custom version of this template using a local skin.
   1.214 +
   1.215 +Newsletters are sent after formatting using the standard =view= template, using whatever skin is selected in the topic being mailed.
   1.216 +
   1.217 +---+++ Contrib Info
   1.218 +
   1.219 +Another great TWiki extension from the <a style="text-decoration:none" href="http://wikiring.com"><img src="%ATTACHURLPATH%/wikiring.png" alt="" /> *WikiRing* </a> - working together to improve your wiki experience!
   1.220 +
   1.221 +Many thanks to the following sponsors for supporting this work:
   1.222 +   * [[http://www.windriver.com][Wind River]]
   1.223 +   * [[http://wikigardens.com][WikiGardens]]
   1.224 +
   1.225 +|  Author: | TWiki:Main/CrawfordCurrie (http://c-dot.co.uk) |
   1.226 +|  Copyright &copy;: | 2004, Wind River Systems; 2006, http://WikiRing.com |
   1.227 +|  License: | GPL |
   1.228 +|  Version: | 16078 (22 Jan 2008) |
   1.229 +|  Change History: | |
   1.230 +|  2 Nov 2007 | Bugs:Item4818: added quotes to support non-alphabetic and other wierd group names Bugs:Item4887: corrected minor rendering error Bugs:Item4917: removed dependence on symbolic web names |
   1.231 +|  9 Sep 2007 | Bugs:Item4326 workaround for possible error in !WebNotify API in old releases, Should not affect most users. |
   1.232 +|  6 Sep 2007 | Bugs:Item4488 doc tweaks |
   1.233 +|  14550 | Bugs:Item4461 - 'Changed' link now points to most recent changes, not the entire history |
   1.234 +|  22 Jun 2007 | Bugs:Item4284 - added access control checks and email filter |
   1.235 +|  21 May 2007 | Bugs:Item3969 - 8bit email fix (TWiki:Main.WillNorris) |
   1.236 +|  13623 | Bugs:Item4014 no changes was resetting the notify time to 0. Thanks to TWiki:Main.JeffCrawford for nailing this down. |
   1.237 +|  12496 | <a rel='nofollow' href='http://develop.twiki.org/~twiki4/cgi-bin/view/Bugs/Item3415'>Item3415</a> mailnotify did not send notifications to intranet users because of wrong call to findUser. |
   1.238 +|  11672 | Added newsletter support, after much harassment from TWiki:Main.LynnwoodBrown |
   1.239 +|  11534 | <a rel='nofollow' href='http://develop.twiki.org/~twiki4/cgi-bin/view/Bugs/Item2153'>Item2153</a> Clarified docs.  <a rel='nofollow' href='http://develop.twiki.org/~twiki4/cgi-bin/view/Bugs/Item2698'>Item2698</a> Improved error reporting. |
   1.240 +|  8808 | <a rel='nofollow' href='http://develop.twiki.org/~twiki4/cgi-bin/view/Bugs/Item1654'>Item1654</a>  mailnotify must enter the command_line context |
   1.241 +|  8625 | <a rel='nofollow' href='http://develop.twiki.org/~twiki4/cgi-bin/view/Bugs/Item1508'>Item1508</a>  Making the dashes in the separatator clearer |
   1.242 +|  8606 | <a rel='nofollow' href='http://develop.twiki.org/~twiki4/cgi-bin/view/Bugs/Item1508'>Item1508</a>  MailerContrib: Brushing up HTML mailnotify template |
   1.243 +|  8602 | <a rel='nofollow' href='http://develop.twiki.org/~twiki4/cgi-bin/view/Bugs/Item1508'>Item1508</a>  MailerContrib: Cleaning up plaintext e-mail template, removing TEXTAREA |
   1.244 +|  8522 | <a rel='nofollow' href='http://develop.twiki.org/~twiki4/cgi-bin/view/Bugs/Item1511'>Item1511</a>  arguments to getScriptUrl in wrong order :-( |
   1.245 +|  8434 | <a rel='nofollow' href='http://develop.twiki.org/~twiki4/cgi-bin/view/Bugs/Item1465'>Item1465</a>  Fix 'TWiki.' to '%TWIKIEB%.' |
   1.246 +|  8398 | <a rel='nofollow' href='http://develop.twiki.org/~twiki4/cgi-bin/view/Bugs/Item1460'>Item1460</a>  polished up the comment a bit |
   1.247 +|  8308 | <a rel='nofollow' href='http://develop.twiki.org/~twiki4/cgi-bin/view/Bugs/Item1362'>Item1362</a>  moving mailnotify cron script |
   1.248 +|  7848 | <a rel='nofollow' href='http://develop.twiki.org/~twiki4/cgi-bin/view/Bugs/Item1167'>Item1167</a>  forced all mail operations to generate absolute URLs |
   1.249 +|  7568 | <a rel='nofollow' href='http://develop.twiki.org/~twiki4/cgi-bin/view/Bugs/Item910'>Item910</a>  use SCRIPTURL{view} instead of complex url expr |
   1.250 +|  6864 | <a rel='nofollow' href='http://develop.twiki.org/~twiki4/cgi-bin/view/Bugs/Item624'>Item624</a>  mailer templates moved the the right places |
   1.251 +|  6861 | <a rel='nofollow' href='http://develop.twiki.org/~twiki4/cgi-bin/view/Bugs/Item624'>Item624</a>  Added proper templates support for plain text mails |
   1.252 +|  6809 | <a rel='nofollow' href='http://develop.twiki.org/~twiki4/cgi-bin/view/Bugs/Item623'>Item623</a>  don't print anything if verbosity is switched off. |
   1.253 +|  6659 | <a rel='nofollow' href='http://develop.twiki.org/~twiki4/cgi-bin/view/Bugs/Item528'>Item528</a>  Updated MailerContrib. it's working and the sendmail parameter is used. |
   1.254 +|  6474 | <a rel='nofollow' href='http://develop.twiki.org/~twiki4/cgi-bin/view/Bugs/Item420'>Item420</a>  removed spurious remove_obsolete_locks from MailerContrib |
   1.255 +|  5924 | <a rel='nofollow' href='http://develop.twiki.org/~twiki4/cgi-bin/view/Bugs/Item153'>Item153</a>  fix mail URL-fixing scheme |
   1.256 +|  5269 | Minor doc fixes |
   1.257 +|  5266 | Doc tidy-ups, added filtering of _ webs, added obsolete lock script |
   1.258 +|  5264 | Changed default to add web name to user name (I hope) |
   1.259 +|  5263 | Minor doc tidyups |
   1.260 +|  5261 | Documentation changes, and fixed to scan all webs. |
   1.261 +|  5253 | runnable as CGI script, minor bugfixes, removed dependency on DBCacheContrib |
   1.262 +|  5234 | Minor doc changes |
   1.263 +|  5231 | Made a change an object, added unit tests to CVS, lots of testing. |
   1.264 +|  4 March 2005 | 1.010 Dakar release ready. |
   1.265 +|  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) |
   1.266 +|  6 Oct 2004 | 1.003 Excluded _ webs from processing, added =bin/remove_obsolete_locks= for full reverse-compatibility |
   1.267 +|  1 Oct 2004 | 1.002 Peter<nop>Thoeny provided additional documentation |
   1.268 +|  27 Sep 2004 | 1.001 runnable as CGI script, minor bugfixes, removed dependency on DB<nop>CacheContrib |
   1.269 +|  8 Sep 2004 | 1.000 Initial version |
   1.270 +|  Home: | TWiki:Plugins/%TOPIC% |
   1.271 +|  Feedback: | TWiki:Plugins/%TOPIC%Dev |
   1.272 +|  Appraisal: | http://TWiki.org/cgi-bin/view/Plugins/%TOPIC%Appraisal |
   1.273 +
   1.274 +%META:FILEATTACHMENT{name="wikiringlogo20x20.png" attr="h" comment="" version="1"}%
   1.275 +%META:FILEATTACHMENT{name="logo.gif" attr="h" comment="" version="1"}%
   1.276 +@
   1.277 +
   1.278 +
   1.279 +1.4
   1.280 +log
   1.281 +@buildrelease
   1.282 +@
   1.283 +text
   1.284 +@d1 2
   1.285 +a2 2
   1.286 +%META:TOPICINFO{author="TWikiAdminGroup" date="1168425636" format="1.1" version="4"}%
   1.287 +---+!! %TOPIC%
   1.288 +d4 1
   1.289 +a4 1
   1.290 +Add-on to the TWiki kernel that allows users to "subscribe" to regularly scheduled e-mails containing either:
   1.291 +d8 1
   1.292 +d21 1
   1.293 +a21 1
   1.294 +*WARNING: TWiki-4 only. If you want to use this extension with an earlier version of TWiki, please see [[http://twiki.org/cgi-bin/view/Plugins/%TOPIC%?rev=1.17][here]]*
   1.295 +d25 2
   1.296 +a26 2
   1.297 +---+ <code>tools/mailnotify</code>
   1.298 +The central component of MailerContrib is a script, =tools/mailnotify=, that generates and sends out the emails based on analysis of
   1.299 +d36 1
   1.300 +a36 1
   1.301 +Users subscribe to email notifications using their %TWIKIWEB%.WikiName or an alternative email address, and can specify the webs/topics they wish to track using one of these bullet list formats:
   1.302 +d38 14
   1.303 +a51 11
   1.304 +_three spaces_ * [ _webname_ . ] _wikiName_ - _SMTP mail address_ <br />
   1.305 +_three spaces_ * [ _webName_ . ] _wikiName_ <br />
   1.306 +_three spaces_ * _SMTP mail address_ <br />
   1.307 +_three spaces_ * _SMTP mail address_ : _topics_ <br />
   1.308 +_three spaces_ * [ _webname_ . ] _wikiName_ : _topics_
   1.309 +
   1.310 +In the above examples, _topics_ is a space-separated list of topic names. The user may further customize the specific content they will receive using the following formats:
   1.311 +   * Specify topics without a _Web._ prefix
   1.312 +   * Topics must exist in this web.
   1.313 +   * Topics may be specified using * wildcards
   1.314 +   * Each topic may optionally be preceded by a '+' or '-' sign. The '+' sign means "subscribe to this topic" (the same as not putting anything). The '-' sign means "unsubscribe" or "don't send notifications regarding this topic". This allows users to elect to filter out certain topics (and their children, to an arbitrary depth). Topic filters ('-') take precedence over topic includes ('+').
   1.315 +d53 1
   1.316 +a53 1
   1.317 +   * Each topic may optionally be immediately followed by an exclamation mark ! or a question mark ? with no intervening spaces, indicating that the topic (and children if there is a tree depth specifier as well) should be mailed out as *complete topics* instead of change summaries. ! causes the topic to be mailed every time even if there have been no changes, ? will mail the topic only if there have been changes to it. This only makes sense for subscriptions.
   1.318 +d60 1
   1.319 +a60 1
   1.320 +Subscribe Daisy to all changes in all webs that start with =Web=.
   1.321 +d62 1
   1.322 +a62 1
   1.323 +   * daisy.cutter@@flowers.com: Web*
   1.324 +d85 5
   1.325 +d92 3
   1.326 +a94 1
   1.327 +If a _TWiki group_ is listed for notification, the group will be recursively expanded to the e-mail addresses of all members.
   1.328 +d101 1
   1.329 +a101 130
   1.330 +%RED% __Note__ =mailnotify= ignores permissions in webs. It is entirely possible for a user to get added to one of the subscription topics in a web, when they are not authorised to view the topics in that web. This could result in them having access to sensitive information, particularly with news mode. %ENDCOLOR%
   1.331 +
   1.332 +Note that when using the "news mode" ! or ? specifiers are used the entire topic text is mailed out as HTML. The =newsletter= template is used to generate the content in this mail, using whatever skin is selected in the topic being mailed.
   1.333 +
   1.334 +In addition, the %<nop>STARTPUBLISH% and %<nop>STOPPUBLISH% markers used by TWiki:Plugins.PublishContrib to delimit the text to be published are respected.
   1.335 +
   1.336 +---+ <code>TWiki/Contrib/MailerContrib</code> code library
   1.337 +The second part of the module is a code library that provides the services for other applications to modify the subscription topics through a clean, well documented API. This allows (for example) plugin developers to add (for example) a "Register me for this newsletter" button to their pages. The main interface is the =Web<nop>Notify= package described below.
   1.338 +
   1.339 +---+ package TWiki::Contrib::MailerContrib::WebNotify
   1.340 +Object that represents the contents of a %NOTIFYTOPIC% topic in a TWiki web
   1.341 +
   1.342 +
   1.343 +---++ ClassMethod new($web, $topic)
   1.344 +Create a new object by parsing the content of the given topic in the
   1.345 +given web. This is the normal way to load a %NOTIFYTOPIC% topic. If the
   1.346 +topic does not exist, it will create an empty object.
   1.347 +
   1.348 +
   1.349 +---++ ObjectMethod writeWebNotify()
   1.350 +Write the object to the %NOTIFYTOPIC% topic it was read from.
   1.351 +If there is a problem writing the topic (e.g. it is locked),
   1.352 +the method will return an error message. If everything is ok
   1.353 +it will return undef.
   1.354 +
   1.355 +
   1.356 +---++ ObjectMethod getSubscriber($name, $noAdd)
   1.357 +   * =$name= - Name of subscriber (wikiname with no web or email address)
   1.358 +   * =$noAdd= - If false or undef, a new subscriber will be created for this name
   1.359 +Get a subscriber from the list of subscribers, and return a reference
   1.360 +to the Subscriber object. If $noAdd is true, and the subscriber is not
   1.361 +found, undef will be returned. Otherwise a new Subscriber object will
   1.362 +be added if necessary.
   1.363 +
   1.364 +
   1.365 +---++ ObjectMethod getSubscribers()
   1.366 +Get a list of all subscriber names (unsorted)
   1.367 +
   1.368 +
   1.369 +---++ ObjectMethod subscribe($name, $topics, $depth)
   1.370 +   * =$name= - Name of subscriber (wikiname with no web or email address)
   1.371 +   * =$topics= - wildcard expression giving topics to subscribe to
   1.372 +   * =$depth= - Child depth to scan (default 0)
   1.373 +   * =$mode= - ! if this is a non-changes subscription and the topics should
   1.374 +   be mailed evebn if there are no changes. ? to mail the full topic only
   1.375 +   if there are changes. undef to mail changes only.
   1.376 +Add a subscription, adding the subscriber if necessary.
   1.377 +
   1.378 +
   1.379 +---++ ObjectMethod unsubscribe($name, $topics, $depth)
   1.380 +   * =$name= - Name of subscriber (wikiname with no web or email address)
   1.381 +   * =$topics= - wildcard expression giving topics to subscribe to
   1.382 +   * =$depth= - Child depth to scan (default 0)
   1.383 +Add an unsubscription, adding the subscriber if necessary. An unsubscription
   1.384 +is a specific request to ignore notifications for a topic for this
   1.385 +particular subscriber.
   1.386 +
   1.387 +
   1.388 +---++ ObjectMethod stringify() -> string
   1.389 +Return a string representation of this object, in %NOTIFYTOPIC% format.
   1.390 +
   1.391 +
   1.392 +---++ ObjectMethod processChange($change, $db, $changeSet, $seenSet, $allSet)
   1.393 +   * =$change= - ref of a TWiki::Contrib::Mailer::Change
   1.394 +   * =$db= - TWiki::Contrib::MailerContrib::UpData database of parent references
   1.395 +   * =$changeSet= - ref of a hash mapping emails to sets of changes
   1.396 +   * =$seenSet= - ref of a hash recording indices of topics already seen
   1.397 +   * =$allSet= - ref of a hash that maps topics to email addresses for news subscriptions
   1.398 +Find all subscribers that are interested in the given change. Only the most
   1.399 +recent change to each topic listed in the .changes file is retained. This
   1.400 +method does _not_ change this object.
   1.401 +
   1.402 +
   1.403 +---++ ObjectMethod processCompulsory($topic, $db, \%allSet)
   1.404 +   * =$topic= - topic name
   1.405 +   * =$db= - TWiki::Contrib::MailerContrib::UpData database of parent references
   1.406 +   * =\%allSet= - ref of a hash that maps topics to email addresses for news subscriptions
   1.407 +
   1.408 +
   1.409 +---++ ObjectMethod isEmpty() -> boolean
   1.410 +Return true if there are no subscribers
   1.411 +
   1.412 +
   1.413 +---+ package TWiki::Contrib::MailerContrib::Subscriber
   1.414 +Object that represents a subscriber to notification. A subscriber is
   1.415 +a name (which may be a wikiName or an email address) and a list of
   1.416 +subscriptions which describe the topis subscribed to, and
   1.417 +unsubscriptions representing topics they are specifically not
   1.418 +interested in. The subscriber
   1.419 +name may also be a group, so it may expand to many email addresses.
   1.420 +
   1.421 +
   1.422 +---++ ClassMethod new($name)
   1.423 +   * =$name= - Wikiname, with no web, or email address, of user targeted for notification
   1.424 +Create a new user.
   1.425 +
   1.426 +
   1.427 +---++ ObjectMethod getEmailAddresses() -> list
   1.428 +Get a list of email addresses for the user(s) represented by this
   1.429 +subscription
   1.430 +
   1.431 +
   1.432 +---++ ObjectMethod subscribe($subs)
   1.433 +   * =$subs= - Subscription object
   1.434 +Add a new subscription to this subscriber object.
   1.435 +The subscription will always be added, even if there is
   1.436 +a wildcard overlap with an existing subscription.
   1.437 +
   1.438 +
   1.439 +---++ ObjectMethod unsubscribe($subs)
   1.440 +   * =$subs= - Subscription object
   1.441 +Add a new unsubscription to this subscriber object.
   1.442 +The unsubscription will always be added, even if there is
   1.443 +a wildcard overlap with an existing subscription or unsubscription.
   1.444 +
   1.445 +An unsubscription is a statement of the subscribers desire _not_
   1.446 +to be notified of changes to this topic.
   1.447 +
   1.448 +
   1.449 +---++ ObjectMethod isSubscribedTo($topic) -> $subscription
   1.450 +   * =$topic= - Topic object we are checking
   1.451 +   * =$db= - TWiki::Contrib::MailerContrib::UpData database of parents
   1.452 +Check if we have a subscription to the given topic. Return the subscription
   1.453 +that matches if we do, undef otherwise.
   1.454 +
   1.455 +
   1.456 +---++ ObjectMethod isUnsubscribedFrom($topic) -> $subscription
   1.457 +   * =$topic= - Topic object we are checking
   1.458 +   * =$db= - TWiki::Contrib::MailerContrib::UpData database of parents
   1.459 +Check if we have an unsubscription from the given topic. Return the subscription that matches if we do, undef otherwise.
   1.460 +d103 1
   1.461 +d105 2
   1.462 +a106 2
   1.463 +---++ ObjectMethod stringify() -> string
   1.464 +Return a string representation of this object, in Web<nop>Notify format.
   1.465 +d108 1
   1.466 +a108 104
   1.467 +
   1.468 +---+ package TWiki::Contrib::MailerContrib::Subscription
   1.469 +Object that represents a single subscription of a user to
   1.470 +notification on a page. A subscription is expressed as a page
   1.471 +spec (which may contain wildcards) and a depth of children of
   1.472 +matching pages that the user is subscribed to.
   1.473 +
   1.474 +
   1.475 +---++ ClassMethod new($pages, $childDepth, $news)
   1.476 +   * =$pages= - Wildcarded expression matching subscribed pages
   1.477 +   * =$childDepth= - Depth of children of $topic to notify changes for. Defaults to 0
   1.478 +   * =$mode= - ! if this is a non-changes subscription and the topics should
   1.479 +   be mailed evebn if there are no changes. ? to mail the full topic only
   1.480 +   if there are changes. undef to mail changes only.
   1.481 +Create a new subscription.
   1.482 +
   1.483 +
   1.484 +---++ ObjectMethod stringify() -> string
   1.485 +Return a string representation of this object, in Web<nop>Notify format.
   1.486 +
   1.487 +
   1.488 +---++ ObjectMethod matches($topic, $db, $depth) -> boolean
   1.489 +   * =$topic= - Topic object we are checking
   1.490 +   * =$db= - TWiki::Contrib::MailerContrib::UpData database of parent names
   1.491 +   * =$depth= - If non-zero, check if the parent of the given topic matches as well. undef = 0.
   1.492 +Check if we match this topic. Recurses up the parenthood tree seeing if
   1.493 +this is a child of a parent that matches within the depth range.
   1.494 +
   1.495 +
   1.496 +---++ ObjectMethod getMode() -> $mode
   1.497 +Return ! if this is a non-changes subscription and the topics should
   1.498 +be mailed even if there are no changes. ? to mail the full topic only
   1.499 +if there are changes. undef to mail changes only.
   1.500 +
   1.501 +
   1.502 +---
   1.503 +---+ package TWiki::Contrib::MailerContrib::Change
   1.504 +Object that represents a change to a topic.
   1.505 +
   1.506 +
   1.507 +---++ ClassMethod new($web)
   1.508 +   * =$web= - Web name
   1.509 +   * =$topic= - Topic name
   1.510 +   * =$author= - String author of change
   1.511 +   * =$time= - String time of change
   1.512 +   * =$rev= - Revision identifier
   1.513 +Construct a new change object.
   1.514 +
   1.515 +
   1.516 +---++ ObjectMethod merge($change)
   1.517 +   * =$change= - Change record to merge
   1.518 +Merge another change record with this one, so that the combined
   1.519 +record is a reflection of both changes.
   1.520 +
   1.521 +
   1.522 +---++ ObjectMethod expandHTML($html) -> string
   1.523 +   * =$html= - Template to expand keys within
   1.524 +Expand an HTML template using the values in this change. The following
   1.525 +keys are expanded: %<nop>TOPICNAME%, %<nop>AUTHOR%, %<nop>TIME%,
   1.526 +%<nop>REVISION%, %<nop>TEXTHEAD%.
   1.527 +
   1.528 +Returns the expanded template.
   1.529 +
   1.530 +
   1.531 +---++ ObjectMethod expandPlain() -> string
   1.532 +Generate a plaintext version of this change.
   1.533 +
   1.534 +
   1.535 +---+ package TWiki::Contrib::MailerContrib::UpData
   1.536 +Object that lazy-scans topics to extract
   1.537 +parent relationships.
   1.538 +
   1.539 +
   1.540 +---++ ClassMethod new($web)
   1.541 +   * =$web= - Web we are building parent relationships for
   1.542 +Constructor for a web; initially empty, will lazy-load as topics
   1.543 +are referenced.
   1.544 +
   1.545 +
   1.546 +---++ ObjectMethod getParent($topic) -> string
   1.547 +Get the name of the parent topic of the given topic
   1.548 +
   1.549 +
   1.550 +---+ package TWiki::Contrib::Mailer
   1.551 +
   1.552 +Package of support for extended Web<nop>Notify notification, supporting per-topic notification and notification of changes to children.
   1.553 +
   1.554 +Also supported is a simple API that can be used to change the Web<nop>Notify topic from other code.
   1.555 +
   1.556 +
   1.557 +---++ StaticMethod mailNotify($webs, $session, $verbose)
   1.558 +   * =$webs= - filter list of names webs to process. Wildcards (*) may be used.
   1.559 +   * =$session= - optional session object. If not given, will use a local object.
   1.560 +   * =$verbose= - true to get verbose (debug) output
   1.561 +
   1.562 +Main entry point.
   1.563 +
   1.564 +Process the Web<nop>Notify topics in each web and generate and issue
   1.565 +notification mails. Designed to be invoked from the command line; should
   1.566 +only be called by =mailnotify= scripts.
   1.567 +
   1.568 +
   1.569 +
   1.570 +---+ Installation Instructions
   1.571 +d111 12
   1.572 +a122 19
   1.573 +Like many other TWiki extensions, this module is shipped with a fully automatic installer script written using the Build<nop>Contrib.
   1.574 +   * If you have TWiki 4.1 or later, and Perl 5.8, you can install from the =configure= interface (Go to Plugins->Find More Extensions)
   1.575 +      * The webserver user has to have permission to write to all areas of your installation for this to work.
   1.576 +   * If you have a permanent connection to the internet (and Perl 5.8), you are recommended to use the automatic installer script
   1.577 +      * Just download the =MailerContrib_installer= perl script and run it.
   1.578 +   * *Notes:*
   1.579 +      * The installer script will:
   1.580 +         * Automatically resolve dependencies,
   1.581 +         * Copy files into the right places in your local install (even if you have renamed data directories),
   1.582 +         * check in new versions of any installed files that have existing RCS histories files in your existing install (such as topics).
   1.583 +         * If the $TWIKI_PACKAGES environment variable is set to point to a directory, the installer will try to get archives from there. Otherwise it will try to download from twiki.org or cpan.org, as appropriate.
   1.584 +         * (Developers only: the script will look for twikiplugins/MailerContrib/MailerContrib.tgz before downloading from TWiki.org)
   1.585 +      * If you don't have a permanent connection, you can still use the automatic installer, by downloading all required TWiki archives to a local directory.
   1.586 +         * Point the environment variable =$TWIKI_PACKAGES= to this directory, and the installer script will look there first for required TWiki packages.
   1.587 +            * =$TWIKI_PACKAGES= is actually a path; you can list several directories separated by :
   1.588 +         * If you are behind a firewall that blocks access to CPAN, you can build a local CPAN mini-mirror, as described at http://twiki.org/cgi-bin/view/Codev/BuildingDakar#CPAN_local_minimirror
   1.589 +   * If you don't want to use the installer script, or have problems on your platform (e.g. you don't have Perl 5.8), then you can still install manually:
   1.590 +      1 Download and unpack one of the =.zip= or =.tgz= archives to a temporary directory.
   1.591 +      1 Manually copy the contents across to the relevant places in your TWiki installation.
   1.592 +a124 2
   1.593 +      1 Run =configure= and enable the module, if it is a plugin.
   1.594 +      1 Repeat from step 1 for any missing dependencies.
   1.595 +d126 5
   1.596 +a130 1
   1.597 +   * To make sure the installation was successful, run the =mailnotify= script from the command line, with no parameters. In this case it will print out what it would have done to STDOUT.
   1.598 +d132 2
   1.599 +a133 2
   1.600 +---++ Setting up your cron job(s)
   1.601 +You need to set up a =cron= (or equivalent) job to run =tools/mailnotify=.
   1.602 +d135 2
   1.603 +a136 2
   1.604 +Usage: <code>perl -I &lt;bin&gt; mailnotify [-q] [-news] [ <i>web1 web2 ... webN</i> ]</code>
   1.605 +&lt;bin&gt; is the path to the TWiki bin directory, so that the script can find the rest of TWiki.
   1.606 +d139 1
   1.607 +a139 1
   1.608 +| <code><i>web1 web2 ... webN</i></code> | List of webs to process, separated by spaces or commas. Default is to process all legal TWiki webs. Wildcards (*) are supported. |
   1.609 +d144 5
   1.610 +a148 1
   1.611 +will generate change notifications for the =Public= and =Private= webs every night at midnight.
   1.612 +d158 1
   1.613 +a158 1
   1.614 +---+ Developer Notes
   1.615 +d171 7
   1.616 +a177 1
   1.617 +---++ Contrib Info
   1.618 +d182 1
   1.619 +d184 7
   1.620 +d228 2
   1.621 +a229 1
   1.622 +
   1.623 +@
   1.624 +
   1.625 +
   1.626 +1.3
   1.627 +log
   1.628 +@buildrelease
   1.629 +@
   1.630 +text
   1.631 +@d1 1
   1.632 +d4 4
   1.633 +a7 1
   1.634 +Add-on to the TWiki kernel that supports e-mail notification of changes.
   1.635 +d24 5
   1.636 +a28 3
   1.637 +---++ Summary of Contents
   1.638 +---+++ <code>tools/mailnotify</code>
   1.639 +The main part of the mailer module is a script, =tools/mailnotify=. This script is designed to be run from 'cron' (or an equivalent offline job scheduler), and processes the contents of the standard <nop>%NOTIFYTOPIC% 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.
   1.640 +d30 3
   1.641 +d35 1
   1.642 +a35 1
   1.643 +Subscribers are listed in <nop>%NOTIFYTOPIC% following one of these bullet list formats:
   1.644 +d43 1
   1.645 +a43 1
   1.646 +where _topics_ is a space-separated list of topic names.
   1.647 +d47 1
   1.648 +d49 1
   1.649 +a49 1
   1.650 +   * Each topic may optionally be preceded by a '+' or '-' sign. The '+' sign means "subscribe to this topic" (the same as not putting anything). The '-' sign means "don't send notifications regarding this topic". This allows users to elect to filter out changes to certain topics (and their children, to an arbitrary depth). Topic filters ('-') take precedence over topic includes ('+').
   1.651 +d52 25
   1.652 +d78 2
   1.653 +a79 4
   1.654 +   * daisy@@flowers.com
   1.655 +   * daisy@@flowers.com: Web*
   1.656 +   * DaisyCutter: Petal* (1) WeedKillers (3) Red*Phlox
   1.657 +   * StarTrekFan: * - *Wars - *sInTheirEyes - *shipTroopers
   1.658 +d81 1
   1.659 +a81 1
   1.660 +A user may be listed many times in the <nop>%NOTIFYTOPIC% topic. Where a user has several lines in <nop>%NOTIFYTOPIC% that all match the same topic, they will only be notified of changes to that topic _once_.
   1.661 +d90 124
   1.662 +a213 1
   1.663 +%RED% __Note__ =mailnotify= ignores permissions in webs. It is entirely possible for a user to get added to a <nop>%NOTIFYTOPIC% 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). %ENDCOLOR%
   1.664 +a214 2
   1.665 +---+++ <code>TWiki/Contrib/MailerContrib</code> code library
   1.666 +The second part of the module is a code library that provides the services for other applications to modify <nop>%NOTIFYTOPIC% through a clean, well documented interface. This allows (for example) plugin developers to add a "Register me for notification" button to their pages. The main interface is the =Web<nop>Notify= package described below.
   1.667 +d216 139
   1.668 +a354 5
   1.669 +---++ Installation Instructions
   1.670 +This Contrib is pre-installed as part of the TWiki release package, and should only have to be re-installed if an upgrade is required.
   1.671 +   * Download the ZIP file from the Plugin web (see below)
   1.672 +   * Unzip ==%TOPIC%.zip== in your twiki installation directory.
   1.673 +   * Run the installer script =MailContrib_intaller.pl= or alternatively resolve all dependencies manually.
   1.674 +d357 2
   1.675 +a358 2
   1.676 +---++ Setting up your cron job
   1.677 +You need to set up a =cron= (or equivalent) job to run =mailnotify=.
   1.678 +d360 2
   1.679 +a361 2
   1.680 +<code>Usage: perl -I &lt;bin&gt; mailnotify [-q] [ <i>web1 web2 ... webN</i> ]</code>
   1.681 +&lt;bin&gt; is the path to the TWiki bin directory (usually =../bin=), so that the script can find the rest of TWiki.
   1.682 +d363 1
   1.683 +d365 9
   1.684 +a373 1
   1.685 +For example, =perl -I /usr/local/twiki/bin mailnotify -q Public Private= will generate notifications for the Public and Private webs.
   1.686 +d375 1
   1.687 +a375 1
   1.688 +---++ Settings
   1.689 +d378 13
   1.690 +d395 1
   1.691 +a395 1
   1.692 +|  Copyright &copy;: | 2004, Wind River Systems |
   1.693 +d397 28
   1.694 +a424 25
   1.695 +| Change History: | |
   1.696 +| 8808 | <a rel='nofollow' href='http://develop.twiki.org/~develop/cgi-bin/view/Bugs/Item1654'>Item1654</a>  mailnotify must enter the command_line context |
   1.697 +| 8625 | <a rel='nofollow' href='http://develop.twiki.org/~develop/cgi-bin/view/Bugs/Item1508'>Item1508</a>  Making the dashes in the separatator clearer |
   1.698 +| 8606 | <a rel='nofollow' href='http://develop.twiki.org/~develop/cgi-bin/view/Bugs/Item1508'>Item1508</a>  MailerContrib: Brushing up HTML mailnotify template |
   1.699 +| 8602 | <a rel='nofollow' href='http://develop.twiki.org/~develop/cgi-bin/view/Bugs/Item1508'>Item1508</a>  MailerContrib: Cleaning up plaintext e-mail template, removing TEXTAREA |
   1.700 +| 8522 | <a rel='nofollow' href='http://develop.twiki.org/~develop/cgi-bin/view/Bugs/Item1511'>Item1511</a>  arguments to getScriptUrl in wrong order :-( |
   1.701 +| 8434 | <a rel='nofollow' href='http://develop.twiki.org/~develop/cgi-bin/view/Bugs/Item1465'>Item1465</a>  Fix 'TWiki.' to '%TWIKIEB%.' |
   1.702 +| 8398 | <a rel='nofollow' href='http://develop.twiki.org/~develop/cgi-bin/view/Bugs/Item1460'>Item1460</a>  polished up the comment a bit |
   1.703 +| 8308 | <a rel='nofollow' href='http://develop.twiki.org/~develop/cgi-bin/view/Bugs/Item1362'>Item1362</a>  moving mailnotify cron script |
   1.704 +| 7848 | <a rel='nofollow' href='http://develop.twiki.org/~develop/cgi-bin/view/Bugs/Item1167'>Item1167</a>  forced all mail operations to generate absolute URLs |
   1.705 +| 7568 | <a rel='nofollow' href='http://develop.twiki.org/~develop/cgi-bin/view/Bugs/Item910'>Item910</a>  use SCRIPTURL{view} instead of complex url expr |
   1.706 +| 6864 | <a rel='nofollow' href='http://develop.twiki.org/~develop/cgi-bin/view/Bugs/Item624'>Item624</a>  mailer templates moved the the right places |
   1.707 +| 6861 | <a rel='nofollow' href='http://develop.twiki.org/~develop/cgi-bin/view/Bugs/Item624'>Item624</a>  Added proper templates support for plain text mails |
   1.708 +| 6809 | <a rel='nofollow' href='http://develop.twiki.org/~develop/cgi-bin/view/Bugs/Item623'>Item623</a>  don't print anything if verbosity is switched off. |
   1.709 +| 6659 | <a rel='nofollow' href='http://develop.twiki.org/~develop/cgi-bin/view/Bugs/Item528'>Item528</a>  Updated MailerContrib. it's working and the sendmail parameter is used. |
   1.710 +| 6474 | <a rel='nofollow' href='http://develop.twiki.org/~develop/cgi-bin/view/Bugs/Item420'>Item420</a>  removed spurious remove_obsolete_locks from MailerContrib |
   1.711 +| 5924 | <a rel='nofollow' href='http://develop.twiki.org/~develop/cgi-bin/view/Bugs/Item153'>Item153</a>  fix mail URL-fixing scheme |
   1.712 +| 5269 | Minor doc fixes |
   1.713 +| 5266 | Doc tidy-ups, added filtering of _ webs, added obsolete lock script |
   1.714 +| 5264 | Changed default to add web name to user name (I hope) |
   1.715 +| 5263 | Minor doc tidyups |
   1.716 +| 5261 | Documentation changes, and fixed to scan all webs. |
   1.717 +| 5253 | runnable as CGI script, minor bugfixes, removed dependency on DBCacheContrib |
   1.718 +| 5234 | Minor doc changes |
   1.719 +| 5231 | Made a change an object, added unit tests to CVS, lots of testing. |
   1.720 +@
   1.721 +
   1.722 +
   1.723 +1.2
   1.724 +log
   1.725 +@buildrelease
   1.726 +@
   1.727 +text
   1.728 +@d1 4
   1.729 +a4 1
   1.730 +%META:TOPICINFO{author="TWikiContributor" date="1111929255" format="1.0" version="2"}%
   1.731 +d12 1
   1.732 +a12 1
   1.733 +   Instead, you could check your fix in, raise a bug in the Bugs web, or mail thge author.
   1.734 +d14 1
   1.735 +a14 1
   1.736 +This module is an add-on to the TWiki kernel that supports e-mail notification of changes.
   1.737 +d20 2
   1.738 +a21 2
   1.739 +---+ Summary of Contents
   1.740 +---++ <code>tools/mailnotify</code>
   1.741 +d59 1
   1.742 +a59 1
   1.743 +---++ <code>TWiki/Contrib/MailerContrib</code> code library
   1.744 +d62 1
   1.745 +a62 1
   1.746 +---+ Installation Instructions
   1.747 +d69 1
   1.748 +a69 1
   1.749 +---+ Setting up your cron job
   1.750 +d72 2
   1.751 +a73 2
   1.752 +<code>Usage: perl -I <bin> tools/mailnotify [-q] [ <i>web1 web2 ... webN</i> ]</code>
   1.753 +<bin> is the path to the TWiki bin directory, so that the script can find the rest of TWiki.
   1.754 +d78 3
   1.755 +a80 3
   1.756 +---+ Settings
   1.757 +   * Name of the perl package
   1.758 +      * Set STUB = TWiki::Contrib::Mailer
   1.759 +d82 1
   1.760 +a82 1
   1.761 +---+ Contrib Info
   1.762 +d120 1
   1.763 +a121 1
   1.764 +__Related Topics:__ %TWIKIWEB%.TWikiPreferences
   1.765 +a122 1
   1.766 +-- TWiki:Main/CrawfordCurrie
   1.767 +@
   1.768 +
   1.769 +
   1.770 +1.1
   1.771 +log
   1.772 +@buildrelease
   1.773 +@
   1.774 +text
   1.775 +@d1 2
   1.776 +a2 1
   1.777 +%META:TOPICINFO{author="TWikiContributor" date="1111929255" format="1.0" version="1"}%
   1.778 +d4 7
   1.779 +d13 2
   1.780 +d32 5
   1.781 +a36 5
   1.782 +	* Specify topics without a _Web._ prefix
   1.783 +	* Topics must exist in this web.
   1.784 +	* Topics may be specified using * wildcards
   1.785 +	* Each topic may optionally be followed by an integer in parentheses, indicating the depth of the tree of children below that topic. Changes in all these children will be detected and reported along with changes to the topic itself. _Note_ This uses the TWiki "Topic parent" feature.
   1.786 +	* Each topic may optionally be preceded by a '+' or '-' sign. The '+' sign means "subscribe to this topic" (the same as not putting anything). The '-' sign means "don't send notifications regarding this topic". This allows users to elect to filter out changes to certain topics (and their children, to an arbitrary depth). Topic filters ('-') take precedence over topic includes ('+').
   1.787 +d40 4
   1.788 +a43 4
   1.789 +	* daisy@@flowers.com
   1.790 +	* daisy@@flowers.com: Web*
   1.791 +	* DaisyCutter: Petal* (1) WeedKillers (3) Red*Phlox
   1.792 +	* StarTrekFan: * - *Wars - *sInTheirEyes - *shipTroopers
   1.793 +d61 4
   1.794 +a64 4
   1.795 +	* Download the ZIP file from the Plugin web (see below)
   1.796 +	* Unzip ==%TOPIC%.zip== in your twiki installation directory.
   1.797 +	* Run the installer script =MailContrib_intaller.pl= or alternatively resolve all dependencies manually.
   1.798 +	* To make sure the installation was successful, run the =mailnotify= script from the command line, with no parameters. In this case it will print out what it would have done to STDOUT.
   1.799 +d76 2
   1.800 +a77 2
   1.801 +	* Name of the perl package
   1.802 +		* Set STUB = TWiki::Contrib::Mailer
   1.803 +d84 25
   1.804 +a108 1
   1.805 +|  Change&nbsp;History: | <!-- versions below in reverse order -->&nbsp; |
   1.806 +@