Index: DefaultNotificationSchemeManager.java =================================================================== RCS file: /home/cvs/infra/jira/DefaultNotificationSchemeManager.java,v retrieving revision 1.1 diff -c -r1.1 DefaultNotificationSchemeManager.java *** DefaultNotificationSchemeManager.java 21 Oct 2005 19:58:42 -0000 1.1 --- DefaultNotificationSchemeManager.java 21 Oct 2005 21:04:00 -0000 *************** *** 84,89 **** --- 84,105 ---- NotificationType notificationType = ManagerFactory.getNotificationTypeManager().getNotificationType(notification.getString("type")); List newRecipients = notificationType.getRecipients(event, notification.getString("parameter")); + + // Filter all bogus email addresses, e.g. @example.com + // The List contains NotificationRecipient objects + if (newRecipients.size() != 0) + { + java.util.Iterator iter = newRecipients.iterator(); + while (iter.hasNext()) + { + NotificationRecipient nr = (NotificationRecipient)(iter.next()); + if (nr.getEmail().indexOf("example.com") != -1) + { + iter.remove(); + } + } + } + recipients.addAll(newRecipients); //if the notification type is Issue Assigned and there are recipients then notify the previous assignee as well