You are here: Foswiki>Tasks Web>Item15159 (20 Jul 2022, MichaelDaum)Edit Attach

Item15159: MailerContrib can only process subscriptions that are a wikiWord or an email

pencil
Priority: Normal
Current State: New
Released In: 2.1.8
Target Release: patch
Applies To: Extension
Component: MailerContrib
Branches:
Reported By: MichaelDaum
Waiting For:
Last Change By: MichaelDaum
However this is not the case when importing LDAP groups. These aren't wiki words necessarily.

Proposed patch:

diff --git a/lib/Foswiki/Contrib/MailerContrib/WebNotify.pm b/lib/Foswiki/Contrib/MailerContrib/WebNotify.pm
index e31ad14e8..2127efcd4 100644
--- a/lib/Foswiki/Contrib/MailerContrib/WebNotify.pm
+++ b/lib/Foswiki/Contrib/MailerContrib/WebNotify.pm
@@ -386,7 +386,7 @@ sub _load {
                    }x;
     my $stdRE = qr{^\s+\*\s$webRE
                        (
-                           $Foswiki::regex{wikiWordRegex}
+                           [A-Z][A-Za-z0-9_]+
                            | '.*?'
                            | ".*?"
                            | $Foswiki::cfg{MailerContrib}{EmailFilterIn}
www-data@intranet:~/foswiki (master)$ 

-- MichaelDaum - 20 Jul 2022

 

ItemTemplate edit

Summary MailerContrib can only process subscriptions that are a wikiWord or an email
ReportedBy MichaelDaum
Codebase
SVN Range
AppliesTo Extension
Component MailerContrib
Priority Normal
CurrentState New
WaitingFor
Checkins
TargetRelease patch
ReleasedIn 2.1.8
CheckinsOnBranches
trunkCheckins
masterCheckins
ItemBranchCheckins
Release02x01Checkins
Release02x00Checkins
Release01x01Checkins
Topic revision: r1 - 20 Jul 2022, MichaelDaum
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy