WARNING LocalSite.cfg could not be found (This is normal for a new installation)
This Foswiki is running using a bootstrap configuration worked out by detecting the layout of the installation. To complete the bootstrap process you should either:
  • Restore the missing LocalSite.cfg from a backup, or
  • Complete the new Foswiki installation:

You have been logged in as a temporary administrator. Any requests made to this Foswiki will be treated as requests made by an administrator with full rights Your temporary administrator rights will "stick" until you've logged out from this session.

PerlDoc

See PublishedAPI for packages intended to be used by Plugin and Contrib authors, or browse all packages.
See also Developing plugins, Developer's Bible, Technical Overview


Parent package: Foswiki::Contrib
Child packages:

SMELL / FIX / TODO count: 8

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.
  • =%options%
    • 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
Main entry point.

Process the WebNotify topics in each web and generate and issue notification mails. Designed to be invoked from the command line; should only be called by mailnotify scripts.

StaticMethod changeSubscription($web, $who, $topicList, $unsubscribe)

Modify a user's subscription in 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

The current user must be able to modify WebNotify, or an access control violation will be thrown.

TODO: this limits us to subscribing to one web.

isSubscribedTo ($web, $who, $topicList) → boolean

Returns true if all topics mentioned in the $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)

TODO: need to check $childDepth topics too (somehow)

parsePageList ( $object, $who, $spec, $unsubscribe ) → unprocessable remainder of $spec line

Calls $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)

TODO: refine the $2 regex to be proper web.topic/topic/* style..
SMELL: we don't check if read fails. But that just means there was no prior run.
SMELL: this code is almost identical to PublishContrib
SMELL: Have to hack into the core to set internal preferences :-(
SMELL: this code is identical to PublishContrib!
SMELL: See ** above
Topic revision: r1 - 15 Mar 2026, UnknownUser
This site is powered by FoswikiCopyright © by the contributing authors. All material on this site is the property of the contributing authors.
Ideas, requests, problems regarding Foswiki? Send feedback