Ticket #315 (closed defect: fixed)

Opened 6 months ago

Last modified 2 weeks ago

MailNotifier sends multiple copies of the same email

Reported by: igor Assigned to:
Priority: minor Milestone: 0.8.0
Component: statusplugins Version: 0.7.7
Keywords: Cc:

Description

MailNotifier? will send multiple copies of the same email whenever there are several recipients specified (i.e., as extraRecipients). This is due to the following for loop in sendMessage:

for recip in recipients:

ds.append(sendmail(self.relayhost, self.fromaddr, recip, s))

A trivial patch is attached.

Attachments

mail.py.diff (0.5 kB) - added by igor on 09/04/08 12:24:18.
patch for status/mail.py

Change History

07/11/08 19:54:27 changed by igor

  • priority changed from major to minor.

09/04/08 11:20:56 changed by igor

  • keywords set to review.

09/04/08 11:54:07 changed by igor

  • owner changed.
  • component changed from other to statusplugins.

09/04/08 12:24:18 changed by igor

  • attachment mail.py.diff added.

patch for status/mail.py

09/06/08 17:05:30 changed by dustin

  • milestone changed from undecided to 0.8.0.

Looks good to me. I wonder why the loop existed in the first place.

12/28/08 21:12:51 changed by dustin

  • keywords deleted.
  • status changed from new to closed.
  • resolution set to fixed.

merged in my branch