- Timestamp:
- 11/19/08 15:00:00 (4 years ago)
- Location:
- trunk/MailerContrib/lib/Foswiki
- Files:
-
- 1 edited
- 1 moved
-
. (moved) (moved from trunk/MailerContrib/lib/TWiki)
-
Contrib/MailerContrib/Subscriber.pm (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/MailerContrib/lib/Foswiki/Contrib/MailerContrib/Subscriber.pm
r781 r811 2 2 # 3 3 # Copyright (C) 2004 Wind River Systems Inc. 4 # Copyright (C) 1999-2006 TWiki Contributors.5 # All Rights Reserved. TWiki Contributors4 # Copyright (C) 1999-2006 Foswiki Contributors. 5 # All Rights Reserved. Foswiki Contributors 6 6 # are listed in the AUTHORS file in the root of this distribution. 7 7 # NOTE: Please extend that file, not this notice. … … 23 23 =pod 24 24 25 ---+ package TWiki::Contrib::MailerContrib::Subscriber25 ---+ package Foswiki::Contrib::MailerContrib::Subscriber 26 26 Object that represents a subscriber to notification. A subscriber is 27 27 a name (which may be a wikiName or an email address) and a list of … … 33 33 =cut 34 34 35 package TWiki::Contrib::MailerContrib::Subscriber;36 37 use TWiki;38 use TWiki::Plugins;35 package Foswiki::Contrib::MailerContrib::Subscriber; 36 37 use Foswiki; 38 use Foswiki::Plugins; 39 39 use Assert; 40 40 41 require TWiki::Contrib::MailerContrib::WebNotify;41 require Foswiki::Contrib::MailerContrib::WebNotify; 42 42 43 43 =pod … … 87 87 return $emails unless $name; 88 88 89 if ( $name =~ /^$ TWiki::cfg{MailerContrib}{EmailFilterIn}$/ ) {89 if ( $name =~ /^$Foswiki::cfg{MailerContrib}{EmailFilterIn}$/ ) { 90 90 push( @{$emails}, $name ); 91 91 } else { 92 my $users = $ TWiki::Plugins::SESSION->{users};92 my $users = $Foswiki::Plugins::SESSION->{users}; 93 93 if ($users->can('findUserByWikiName')) { 94 94 # User is represented by a wikiname. Map to a canonical … … 210 210 ---++ isSubscribedTo($topic, $db) -> $subscription 211 211 * =$topic= - Topic object we are checking 212 * =$db= - TWiki::Contrib::MailerContrib::UpData database of parents212 * =$db= - Foswiki::Contrib::MailerContrib::UpData database of parents 213 213 Check if we have a subscription to the given topic. Return the subscription 214 214 that matches if we do, undef otherwise. … … 232 232 ---++ isUnsubscribedFrom($topic) -> $subscription 233 233 * =$topic= - Topic object we are checking 234 * =$db= - TWiki::Contrib::MailerContrib::UpData database of parents234 * =$db= - Foswiki::Contrib::MailerContrib::UpData database of parents 235 235 Check if we have an unsubscription from the given topic. Return the subscription that matches if we do, undef otherwise. 236 236 … … 267 267 268 268 my $name = $this->{name}; 269 if ($name =~ /^$ TWiki::regex{wikiWordRegex}$/) {269 if ($name =~ /^$Foswiki::regex{wikiWordRegex}$/) { 270 270 $name = '%USERSWEB%.'.$name; 271 } elsif ($name !~ /^$ TWiki::cfg{MailerContrib}{EmailFilterIn})$/) {271 } elsif ($name !~ /^$Foswiki::cfg{MailerContrib}{EmailFilterIn})$/) { 272 272 $name = $name =~ /'/ ? '"'.$name.'"' : "'$name'"; 273 273 }
Note: See TracChangeset
for help on using the changeset viewer.
