Defect #24786 » mail_threading.patch
app/models/mailer.rb | ||
---|---|---|
46 | 46 |
|
47 | 47 |
# Notifies users about a new issue |
48 | 48 |
def self.deliver_issue_add(issue) |
49 |
Thread.new do |
|
49 | 50 |
to = issue.notified_users |
50 | 51 |
cc = issue.notified_watchers - to |
51 | 52 |
issue.each_notification(to + cc) do |users| |
52 | 53 |
Mailer.issue_add(issue, to & users, cc & users).deliver |
53 | 54 |
end |
55 |
end |
|
54 | 56 |
end |
55 | 57 |
|
56 | 58 |
# Builds a mail for notifying to_users and cc_users about an issue update |
... | ... | |
78 | 80 |
|
79 | 81 |
# Notifies users about an issue update |
80 | 82 |
def self.deliver_issue_edit(journal) |
83 |
Thread.new do |
|
81 | 84 |
issue = journal.journalized.reload |
82 | 85 |
to = journal.notified_users |
83 | 86 |
cc = journal.notified_watchers - to |
... | ... | |
86 | 89 |
Mailer.issue_edit(journal, to & users2, cc & users2).deliver |
87 | 90 |
end |
88 | 91 |
end |
92 |
end |
|
89 | 93 |
end |
90 | 94 |
|
91 | 95 |
def reminder(user, issues, days) |