Load bugs in be-handle-mail.Message.subscriber_emails().
authorW. Trevor King <wking@drexel.edu>
Sat, 26 Sep 2009 16:48:42 +0000 (12:48 -0400)
committerW. Trevor King <wking@drexel.edu>
Sat, 26 Sep 2009 16:48:42 +0000 (12:48 -0400)
Because subscribe.get_bugdir_subscribers() only looks for subscribers
in bugs that are already in memory.

interfaces/email/interactive/be-handle-mail

index e8492bb2d80833433ec71bbce7ed0d1d7dc814da..18df7279c55726de316fc01727660f4858428cdf 100755 (executable)
@@ -617,7 +617,9 @@ class Message (object):
         if bd.vcs.versioned == False: # no way to tell what's changed
             raise NotificationFailed("Not versioned")
 
+        bd.load_all_bugs()
         subscribers = subscribe.get_bugdir_subscribers(bd, THIS_SERVER)
+
         if len(subscribers) == 0:
             return []