Opened 3 years ago

Last modified 3 months ago

#2197 new New feature

PDFReports - Add possibility to unsubscribe from the "mailing list"

Reported by: peterb Owned by:
Priority: normal Milestone: 2.x - The Great Piwik 2.x Backlog
Component: Core Keywords:
Cc: Sensitive: no

Description

I received some emails with this feature request since they were not able to switch off the email reports (probably via the additional email-addresses field). And they were not even able to determine, who had set up this reports.

Possible solutions

  • Unsubscribe Link in the Reporting eMails
  • Provide information about the user who set up the report (e-Mail-Address, etc. - so the receiver can quickly get in contact with him)

Any thoughts on this?

Change History (16)

comment:1 Changed 3 years ago by vipsoft (robocoder)

The unsubscribe link should be doable using something like the password reset email where the token is a hash of the receiver's email + salt, e.g.,

<a href="http://example.com/piwik/?module=PDFReports&action=unsubscribe&email=XXX&token=YYY&&idreport=ZZZ">Unsubscribe</a>

The only downside is where the email address is actually a mailing list / alias for multiple recipients.

comment:2 Changed 3 years ago by peterb (peterbo)

Indeed, this would be not good.

At least the system should send an unsubscription message then, that the other list owners are also notified. Then the piwik admin must enter the single email-addresses seperately in the additional receivers input field instead of the mailing list address.

If a user is the only one recipient of the Report, should the report then be disabled or should this unsubscription be possible then at all?

comment:3 Changed 3 years ago by vipsoft (robocoder)

  • Milestone set to 1.x - Piwik 1.x

comment:4 Changed 3 years ago by matt (mattab)

I prefer the other proposal: put in the email, something like This Email report was scheduled by $login ($email) and only put this sentence, if the user is different from the user being emailed. thoughts?

(strange I didn't get emails for this ticket, or maybe it was in spam and is now deleted after 30 days...)

comment:5 Changed 3 years ago by matt (mattab)

Peter proposals are good, in fact I think both solutions are needed to properly solve this issue 1) tell who setup the report 2) allow to "unsuscribe" ie. only remove this one email address from the report

comment:6 Changed 3 years ago by matt (mattab)

  • Milestone changed from 1.x - Piwik 1.x to 1.7 Piwik 1.7

Considered a bug, increasing priority

comment:7 Changed 3 years ago by peterb (peterbo)

  • Owner set to peterb
  • Status changed from new to assigned

comment:8 Changed 23 months ago by JulienM (JulienMoumne)

I am currently performing a lot of refactoring on the PDFReport plugin as part of #3088 and #2708.

Since I am currently dedicated in improving scheduled reports I would like to own this ticket.

Is this ok Peter?

comment:9 Changed 22 months ago by JulienM (JulienMoumne)

  • Owner changed from peterb to JulienM
  • Status changed from assigned to new

comment:10 Changed 22 months ago by JulienM (JulienMoumne)

  • Status changed from new to assigned

comment:11 follow-up: Changed 22 months ago by JulienM (JulienMoumne)

After reading all comments, I found two pending questions :

  • should we send a confirmation mail after successfully unsubscribing an e-mail address? As mentioned in comment:2, this would solve the mailing list issue.
  • what happens when the last recipients is removed from the report? I took care of this issue in r6478 by replacing the 'send now' button by 'This report has no recipients'. The report is still downloadable and editable.

comment:12 in reply to: ↑ 11 Changed 22 months ago by matt (mattab)

Replying to JulienM:

  • should we send a confirmation mail after successfully unsubscribing an e-mail address? As mentioned in comment:2, this would solve the mailing list issue.

+1 to email-confirm the unsuscribe

  • what happens when the last recipients is removed from the report? I took care of this issue in r6478 by replacing the 'send now' button by 'This report has no recipients'. The report is still downloadable and editable.

Great!

comment:13 Changed 21 months ago by matt (mattab)

For example currently one of the reports I receive is in German. I know I've tested German language while logged in, but I didn't know the account. Displaying which user scheduled the report will greatly help (display Login + Alias?)

comment:14 Changed 13 months ago by matt (mattab)

  • Milestone changed from 1.12 - The Great 1.x Backlog to 2.x - Piwik 2.x

comment:15 Changed 3 months ago by matt (mattab)

  • Type changed from Bug to New feature

comment:16 Changed 3 months ago by matt (mattab)

  • Owner JulienM deleted
  • Status changed from assigned to new

Removing owner from tickets. from now on, I suggest we assign tickets to ourselves for cases when we we plan to actively work on them in the coming days/weeks. let's discuss if needed during our team call.

Note: See TracTickets for help on using tickets.