Skip to main content

Trac Plugin to allow email notification of changes on wiki pages

Project description

Trac WikiNotification is a plugin that allows users(even anonymous, as long as email is set) to select the wiki pages that they wish to be notified(by email) when a change occurs on it.

Note: The user updating the wiki page won’t be notified about his own changes.

You can find more info on the trac WikiNotification site where bugs and new feature requests should go to.

Enabling the Plugin

It’s as simple as:

[components]
wikinotification.* = enabled

Available Configuration Options

These are the options available to include on your trac.ini under wiki-notification.

Config Setting

Default Value

Explanation

redirect_time

5 (in seconds)

The default seconds a redirect should take when watching/un-watching a wiki page. This value is also definable per user, ie, user is able to configure this, of course for himself.

smtp_always_bcc

empty

Comma separated list of email address(es) to always send notifications to, addresses do not appear publicly (Bcc:).

smtp_always_cc

empty

Comma separated list of email address(es) to always send notifications to, addresses can be seen by all recipients (Cc:).

smtp_from

trac.wiki@localhost

Sender address to use in notification emails.

from_name

None

Sender name to use in notification emails. Defaults to project name.

use_public_cc

False

Recipients can see email addresses of other CC’ed recipients. If this option is disabled(the default), recipients are put on BCC.

attach_diff

False

Send changes diff as an attachment instead of on the email text body.

subject_template

$prefix $page.name $action

A Genshi text template snippet used to get the notification subject.

banned_addresses

empty

Comma separated list of email addresses to never send notifications to.

If you want to override these settings then you can include it like the following example:

[wiki-notification]
redirect_time = 5
smtp_always_bcc = someone@somedomain, another.one@somedomain
smtp_always_cc = someone.else@somedomain
smtp_from = trac.wiki@localhost
from_name = Custom Name
use_public_cc = false
attach_diff = true
subject_template = Foo $prefix $page.name $action
banned_addresses = banned.user1@somedomain, banned.user2@somedomain

Note: For an up-to-date version of this info please read this.

Download and Installation

Trac WikiNotification can be installed with Easy Install by typing:

> sudo easy_install TracWikiNotification

To install the development version:

> sudo easy_install http://wikinotification.ufsoft.org/svn/trunk

If you run Trac versions < 0.11.x do the following instead:

> sudo easy_install "TracWikiNotification<0.2.0"

Trac 0.11 support And Latest WikiNotification Release

As of time of this writing (Mar 3 2008), trac>=0.11 only is supported. You won’t need ctxnavadd, aka, TracCtxtnavAdd no more.

Aditional Notes(from user input)

  • easy_install is run from the command line (on Linux) not from within Python.

  • After installing any plugin for Trac you’ll need to restart Apache to see it (not all changes to trac.ini require a restart but adding a plugin does).

  • Make sure to add the new plugin to trac.ini :

    [components]
    wikinotification.* = enabled
  • Also should be noted that the trac.ini configuration for the wiki notification should look something like:

    [wiki-notification]
    smtp_always_cc = someone@somedomain
    smtp_from = trac.wiki@localhost
  • Another note: a user will never get a notice of his/her own wiki modification (which is a little tricky when testing the plugin :))

Tweaking/Customizing The Notification Email Template

You can, if you wish, tweak the notification email template sent to your users.

Copy the wiki_notification_email_template.txt file to your trac environment templates/ sub-directory and tweak it to your needs.

Make sure you read the Genshi Text Templates documentation to see if you don’t break any of the logic in that template.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

TracWikiNotification-0.2.1.zip (25.9 kB view details)

Uploaded Source

TracWikiNotification-0.2.1.tar.gz (16.6 kB view details)

Uploaded Source

TracWikiNotification-0.2.1.tar.bz2 (14.5 kB view details)

Uploaded Source

Built Distribution

TracWikiNotification-0.2.1-py2.5.egg (29.3 kB view details)

Uploaded Source

File details

Details for the file TracWikiNotification-0.2.1.zip.

File metadata

File hashes

Hashes for TracWikiNotification-0.2.1.zip
Algorithm Hash digest
SHA256 be78bff7298f8e06d5f6db2891a52ca10efe07c9b71e2713ff075cf149704e85
MD5 686bcae1eabb115ad23ff17423954b31
BLAKE2b-256 642f6a73c6b44047f2af16a80244102ce354bda53f3874ab3789405667990ce5

See more details on using hashes here.

File details

Details for the file TracWikiNotification-0.2.1.tar.gz.

File metadata

File hashes

Hashes for TracWikiNotification-0.2.1.tar.gz
Algorithm Hash digest
SHA256 eb8d3e738a491a2f1bea5b13c3ef820b4578c62a5885897fdc63ea5609203b75
MD5 b4bfc885857f66f82d08259c7df6434f
BLAKE2b-256 4d9ad3156f11a6bfab5ebb56df8672779330832d0888ed6fb90ff016bf603f29

See more details on using hashes here.

File details

Details for the file TracWikiNotification-0.2.1.tar.bz2.

File metadata

File hashes

Hashes for TracWikiNotification-0.2.1.tar.bz2
Algorithm Hash digest
SHA256 c0417086373a54f8b68b1c6a232bcec5903bdb6fbba438a7064d72fa4c07917b
MD5 5c12880480b57b6c2c498341c75bcf64
BLAKE2b-256 4c3a611281589455b854102d59992f95508f84e578902d2ceee210cdd51585eb

See more details on using hashes here.

File details

Details for the file TracWikiNotification-0.2.1-py2.5.egg.

File metadata

File hashes

Hashes for TracWikiNotification-0.2.1-py2.5.egg
Algorithm Hash digest
SHA256 0cadf3ee53e8559c0d6420972c782530d1388cfe5ce8320b0131dbb56ca7474a
MD5 10038e3c457cb04b5e6c285f2e3ae9e1
BLAKE2b-256 8f203156947f609aed478f22ac12a35d1cf4fec6ebfb7c1619c9007c386583a7

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page