internal package
Foswiki::Contrib::MailerContrib::WebNotify $Foswiki::Plugins::SESSION
is used to find the Foswiki session, and
must be set up before this class is used.
ClassMethod
new($web, $topic) $web
- web name
$topic
- topic name
$noexpandgroups
- True will prevent expansion of group subscriptions (False is best for checking subscriptions, but True is best for writing results back to $topic)
ObjectMethod
writeWebNotify() ObjectMethod
getSubscriber($name, $noAdd) $name
- Name of subscriber (wikiname with no web or email address)
$noAdd
- If false or undef, a new subscriber will be created for this name
ObjectMethod
getSubscribers() ObjectMethod
subscribe($name, $topics, $depth, $options) $name
- Name of subscriber (wikiname with no web or email address)
$topics
- wildcard expression giving topics to subscribe to
$depth
- Child depth to scan (default 0)
$options
- Bitmap of Mailer::Const options
ObjectMethod
unsubscribe($name, $topics, $depth) $name
- Name of subscriber (wikiname with no web or email address)
$topics
- wildcard expression giving topics to subscribe to
$depth
- Child depth to scan (default 0)
ObjectMethod
stringify([$subscribersOnly]) → string $subscribersOnly
parameter to only print the parsed subscription list.
Used when running a mailnotify, where printing out the entire WebNotify topic is confusing,
as it's different from the actual topic contents, but doesn't inform the user why.
ObjectMethod
processChange($change, $db, $changeSet, $seenSet, $allSet) $change
- ref of a Foswiki::Contrib::Mailer::Change
$db
- Foswiki::Contrib::MailerContrib::UpData database of parent references
$changeSet
- ref of a hash mapping name&emails to sets of changes
$seenSet
- ref of a hash recording indices of topics already seen for each name&email addressee
$allSet
- ref of a hash that maps topics to name&email ids for news subscriptions
ObjectMethod
processCompulsory($topic, $db, \%allSet) $topic
- topic name
$db
- Foswiki::Contrib::MailerContrib::UpData database of parent references
\%allSet
- ref of a hash that maps topics to name&email addresses for news subscriptions
ObjectMethod
isEmpty() → boolean ObjectMethod
parsePageSubscriptions($who, $spec, $unsubscribe) ![]() |
© 2025 D.Soost & D.Marxsen - All rights reserved © Of all articles by authors Trademarks are the property of their respective owners © Logo by Wikipedia, modified by Administrator | Impressum Disclaimer Datenschutzerklärung |