Item15159: MailerContrib can only process subscriptions that are a wikiWord or an email
Priority: Normal
Current State: New
Released In: 2.1.8
Target Release: patch
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