ses_blacklist_rails 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cba9d2b22ab2f7af0dd888b73884bd8a3f8b4096
|
4
|
+
data.tar.gz: d9716df91dfe9259a3174720076c327e25ba263f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 573d0534796dcaf12dacd220284241a6a90380bc8a4e3be0560c8e474c90434d3d1c9c13f7f3cd179d9915632464545ed046bcaf67e7148b352e1cd4b8c25bd9
|
7
|
+
data.tar.gz: dabb5897b51d6e582a949544d973903d326c8eaec6e047195b337fa782460ff836ba9a6202de2b75338905e3a432e097f340ae4c0b435fa54fc71244b75a6e27
|
@@ -17,24 +17,25 @@ module SesBlacklistRails
|
|
17
17
|
return render plain: '', status: 500
|
18
18
|
end
|
19
19
|
|
20
|
-
|
21
|
-
|
20
|
+
elsif @params[:Type] == 'Notification'
|
21
|
+
message = @params[:Message]
|
22
|
+
case message[:notificationType]
|
22
23
|
when 'Bounce'
|
23
|
-
|
24
|
+
message[:bounce][:bouncedRecipients].each do |r|
|
24
25
|
create_notification(r, :bounce)
|
25
26
|
end
|
26
27
|
when 'Complaint'
|
27
|
-
|
28
|
+
message[:complaint][:complainedRecipients].each do |r|
|
28
29
|
create_notification(r, :complaint)
|
29
30
|
end
|
30
31
|
when 'Delivery'
|
31
|
-
|
32
|
+
message[:delivery][:recipients].each do |r|
|
32
33
|
create_notification(r, :delivery)
|
33
34
|
end
|
34
|
-
else
|
35
|
-
create_notification('', :other)
|
36
|
-
render plain: '', status: 403
|
37
35
|
end
|
36
|
+
else
|
37
|
+
create_notification('', :other)
|
38
|
+
render plain: '', status: 403
|
38
39
|
end
|
39
40
|
end
|
40
41
|
|