internal package
Foswiki::Contrib::MailerContrib Package of support for extended WebNotify notification, supporting per-topic notification and notification of changes to children.
Also supported is a simple API that can be used to change the WebNotify topic from other code.
StaticMethod
mailNotify($webs, $exwebs) $webs
- filter list of names webs to process. Wildcards (*) may be used.
$exwebs
- filter list of webs to exclude.
verbose
- true to get verbose (debug) output.
news
- true to process news
changes
- true to process changes
reset
- true to reset the clock after processing
mail
- true to send emails from this run
mailnotify
scripts.
StaticMethod
changeSubscription($web, $who, $topicList, $unsubscribe) WebNotify
for a web. $web
- web to edit the WebNotify for
$who
- the user's wikiname
$topicList
- list of topics to (un)subscribe to(from)
$unsubscribe
- false to subscribe, true to unsubscribe
$topicList
are subscribed to by $who
.
Can ignore all valid special characters that can be used on the WebNotify topic
such as NewsTopic! , TopicAndChildren (2)
$spec
line $object→{topicSub}
once per identified topic entry. $object
(a hashref) may be a hashref that has the field topicSub
, which may be a sub ref as follows: &topicSub($object, $who, $unsubscribe, $webTopic, $options, $childDepth)
$unsubscribe
can be set to '-' to force an unsubscription (used by SubscribePlugin)