1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
class GlsaMailer < ActionMailer::Base
default :from => GLSAMAKER_FROM_EMAIL,
:content_type => 'text/plain'
def new_request(recipient, glsa, requestor)
@requestor = requestor
@glsa = glsa
mail(:to => recipient.email,
:subject => "[GLSAMaker] New request: #{glsa.last_revision.title}")
end
def edit(recipient, glsa, diff, editor)
@editor = editor
@diff = diff
@glsa = glsa
mail(:to => recipient.email,
:subject => "[GLSAMaker] Draft edit: #{glsa.last_revision.title}")
end
def comment(recipient, glsa, comment, commentator)
@commentator = commentator
@comment = comment
@glsa = glsa
mail(:to => recipient.email,
:subject => "[GLSAMaker] Draft commented: #{glsa.last_revision.title}")
end
def approval(recipient, glsa)
@glsa = glsa
mail(:to => recipient.email,
:subject => "[GLSAMaker] Draft approved: #{glsa.last_revision.title}")
end
def text(recipient, subject, text, footer)
@text = text
@footer = footer
mail(:to => recipient.email,
:subject => subject)
end
end
|