#1808 Should have an option to disable email notifications
Closed: Invalid Opened by mreynolds.

There should be an option to disable email notifications. This is useful for trac migrations, because when you import a Issue (open or closed) it emails the creator and assignee. In our case this means thousands of emails go out. During a test run of a migration many users were spammed with hundreds of emails. Some of those people got VERY upset.

So having an option to disable email notifications for migrations, or maintenance, would be very nice.

I'm going to start working on this...


IIRC, it doesn't send email upon acting loading items from the git repo. Had fedmsg been turned off when the import was done? Because quite a few people forget to do that and FMN does send the notifications then

There are still places where it sends emails regardless of fedmsg setting. I'm not sure yet if turning off fedmsg will resolve the ticket migration email notifications or not. And now I'm afraid to do another import to test it. Not sure how else to test this?

Anyway, I'm waiting for responses from people who got spammed, but the common email notification was " commented on ticket...". So it's sending out emails for each update to each ticket during the migration - and we have thousands of tickets...

Which project was that?

389-TEST

The Issue import process (migration) apparently notified people every time they created, edited, assigned, changed milestone in a ticket (regardless if the ticket was open or closed). Pretty much everything except closing a ticket caused an email notification during the migration.

Yeah, so I'm pretty sure that was FMN sending notifications for fedmsg message. If you can access one of these emails, look at the headers, I'm 90% sure they were not coming from pagure itself.

Yeah, so I'm pretty sure that was FMN sending notifications for fedmsg message. If you can access one of these emails, look at the headers, I'm 90% sure they were not coming from pagure itself.

All I have is a forwarded email which looks like:

Subject: 
simo commented on ticket 389-TEST#47904: "RFE: new ACI to limit new entry RDN"
From: 
notifications@fedoraproject.org
Date: 
01/18/2017 03:59 PM
To: 
ssorce@redhat.com
simo commented on ticket 389-TEST#47904: "RFE: new ACI to limit new entry RDN"
    https://pagure.io/389-TEST/issue/47904#comment-63031
--
You received this message due to your preference settings at
https://apps.fedoraproject.org/notifications/simo.id.fedoraproject.org/email/23903

Indeed, it looks like it is from fedoraproject, and not Pagure. So is this a pure fedmsg issue - disabling it would of prevented these emails?

So is this a pure fedmsg issue - disabling it would of prevented these emails?

Yes, there is a boolean to turn off in the projet's settings just before the push (I believe pagure-importer mentions it) and that can/should be turned back on after the push so that regular fedmsg notif can go through :)

Thanks for confirming! Closing issue...

@mreynolds changed the status to Closed

Metadata