40acf87ed43e83e699abd759d87dd9dfa054d04e
[openafs-wiki.git] / TWiki / WebChangesAlert.mdwn
1 ## <a name="Monitoring Site Changes"></a> Monitoring Site Changes
2
3 Each %WIKITOOLNAME% web does an automatic email notification of recent changes. Users can subscribe / unsubscribe themselves in [[WebNotify]] of each TWiki web. The Perl script <code>**mailnotify**</code> is called by a deamon in regular intervals. The script is sending an automated email to subscribed users in case some topics changed in a web within this interval.
4
5 ### <a name="Configuring Outgoing Mail"></a> Configuring Outgoing Mail
6
7 %WIKITOOLNAME% will use the <code>**Net::SMTP**</code> module in case it is installed on your system. You need to specify the <code>**SMTPMAILHOST**</code> variable in [[TWikiPreferences]].
8
9 You can use an external mail program like <code>**sendmail**</code> in case the <code>**Net::SMTP**</code> module is not installed. In this case specify the <code>**$mailProgram**</code> in <code>**twiki/bin/TWiki.cfg**</code>.
10
11 ### <a name="Call &lt;code&gt;&lt;b&gt;mailnotify&lt;/b&gt;&lt;/code&gt; at Regular I"></a> Call <code>**mailnotify**</code> at Regular Intervals
12
13 **For Unix platforms:** Edit the cron table so that <code>**mailnotify**</code> is called in an interval of your choice. Please consult <code>**man crontab**</code> of how to modify the table that schedules program execution at certain intervals. Example:
14
15     % crontab -e
16     15,45 * * * * (cd ~twiki/public_html/bin; ./mailnotify -q)
17
18 The above line will call mailnotify at 15 minutes and 45 minutes past every hour. The <code>**-q**</code> switch suppresses all normal output.
19
20 On Windows NT / 2000 you can use a scheduled task.
21
22 -- [[PeterThoeny]] - 16 Mar 2001 <br />