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.

Enabling the Plugin

It’s as simple as:

[components]
wikinotification.* = enabled

smtp_enabled has to be enabled in notification configuration section.

Available Configuration Options

These are the options available to include on your trac.ini under wiki-notification. You can configure them through the web admin interface, too.

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:).

from_email

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 $pagename $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
from_email = trac.wiki@localhost
from_name = Custom Name
use_public_cc = false
attach_diff = true
subject_template = Foo $prefix $pagename $action
banned_addresses = banned.user1@somedomain, banned.user2@somedomain

Download and Installation

Run the following to install this plugin:

> sudo pip install TracWikiNotification

Aditional Notes(from user input)

  • pip 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
    from_email = 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 :))

  • Please note that older versions of the plugin may set a subject_template config value, similar to subject_template = $prefix $page.name $action. This will result in ‘UndefinedError: “page” not defined’. Use $pagename instead of $page.name.

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.4.2.zip (25.0 kB view details)

Uploaded Source

TracWikiNotification-0.4.2.tar.gz (14.1 kB view details)

Uploaded Source

TracWikiNotification-0.4.2.tar.bz2 (13.8 kB view details)

Uploaded Source

File details

Details for the file TracWikiNotification-0.4.2.zip.

File metadata

File hashes

Hashes for TracWikiNotification-0.4.2.zip
Algorithm Hash digest
SHA256 134709189d3cb4c9f683c069f8478f539f791ff79366d4e1ab03a475e768db78
MD5 6425ff10966de93d59aa251ba5dba7eb
BLAKE2b-256 53bf4f15664d8f75150f63f80b1934b06d5fbf7f2c7bff898f8e3b7576e41a44

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for TracWikiNotification-0.4.2.tar.gz
Algorithm Hash digest
SHA256 6e13472490d0d320b3f12f4dff0ad414761b7564c582311e0f570e1c58999c52
MD5 1b361dd6cdc3f3b7ab8e57a671d1590d
BLAKE2b-256 9eead5517f7b107677c321b5771982fb41e4eff1d20f3ad6dd218b365f635411

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for TracWikiNotification-0.4.2.tar.bz2
Algorithm Hash digest
SHA256 fdabe43a7973a5bee858001873e6f9b693279bdac0b44c57d2e61ffc5275a09d
MD5 f05be4ae1ebcac6d6f663b4e6df501cc
BLAKE2b-256 fc732b7b3aef10dcac5b1874a0d8c5790d935eafb1d3fb6100990533515fe519

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