This question about Using an extension: Needs followup in Tasks

multiple emails to same email address

If multiple users that have the same email address are subscribed to a topic or web, multiple emails will be sent. With Foswiki 1.1.9, at least, MailerContrib would only send one email to each email address.

This is particularly an issue where wiki or LDAP groups are used in WebNotify.

For a simple example, our WebNotify contains:

   * %USERSWEB%.DevinBougie
   * %USERSWEB%.TestDevinBougie

And the subsequent logs from running mailnotify show:

Processing Sandbox
   * %USERSWEB%.TestDevinBougie: *
   * %USERSWEB%.DevinBougie: *
        Last notification was at 2017-08-18T01:08:01Z
        Change to PwmTest at 2017-09-07T12:16:31Z. New revision is 4
        Change to WebNotify at 2017-09-07T12:08:10Z. New revision is 9
Notified of changes in Sandbox
Notified of changes in Sandbox
        2 change notifications from Sandbox

-- DevinBougie - 07 Sep 2017

Comparing from 1.1.9 and 2.1.4, this appears to be intentional.

In the old version, emails were set to each unique $email in the subscriber list. In the new version, emails are sent to each unique $id = "$name&$email".

-- DevinBougie - 08 Sep 2017

This was changed by the fix to Item13126, distro:fac3457188f1.It seems that the wiki name is being passed through to enforce access controls on the topics. Since Foswiki mappers / Login Managers allow a N:M relationship between WikiNames and email addresses, (One WikiName may have multiple email addresses and one email address can be used by multiple Wiki Names), the only way to make sure that the intended recipient has access is to pass down the requesting WikiName.

I'm marking this "Needs followup in Tasks".

-- GeorgeClark - 08 Sep 2017

QuestionForm edit

Subject Using an extension
Extension MailerContrib
Version Foswiki 2.1.4
Status Needs followup in Tasks
Related Topics
Topic revision: r3 - 08 Sep 2017, GeorgeClark - This page was cached on 16 Jan 2018 - 09:05.

The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License