sanitize_email 1.1.3 → 1.1.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/CHANGELOG.md +3 -0
- data/lib/sanitize_email/mail_header_tools.rb +5 -2
- data/lib/sanitize_email/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
NWFiN2NjNmYwNjk0YjNkNjkxZjg5ZDI1NDI0ZmMwY2M4MWI3MWZjZg==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
MjljOGVmM2UxZTE3MjY4OTM5ODQ4ZTk5OGEzN2JkNTYyNTNkYmRkMQ==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
MGIxNjYyNzY4NGFkMDg3NTc0OGNlNjIxNDFhNjcyY2Q2YzM1YTM1MmFhYjM1
|
10
|
+
OGU2M2EyNzU3Njc3ZDdiZTczZDFkZmYxNjE1YTIwYjg1OWM5ZTI3MWQ2YzY3
|
11
|
+
YWIwZTk2MGU5ZmRiMTliNGUwMWZjM2NkOTc3OTEzYmI0OGIzNDU=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
ODA0YTM4YzczMDY2ZjBkYTVkODY1N2U2ZDIwNjIyY2FlNGE1MzNmZTgyYjA3
|
14
|
+
NzdmODIzNTBmMTRmOWZlMmQ3ODkwMzVkYWZkMWFlYTQzNjgwMDE2MTU0NzA1
|
15
|
+
MjEzYjAxYzliMjgzMjcxNmQ3NDFhNTYxOGQ4ZWUyNjM4NzQzNGI=
|
data/CHANGELOG.md
CHANGED
@@ -31,8 +31,11 @@ module SanitizeEmail
|
|
31
31
|
end
|
32
32
|
|
33
33
|
def self.prepend_custom_subject(message)
|
34
|
-
message.subject
|
35
|
-
|
34
|
+
if message.subject
|
35
|
+
message.subject.insert(0, SanitizeEmail::MailHeaderTools.prepend_subject_array(message).join(' ') + ' ')
|
36
|
+
else
|
37
|
+
message.subject = SanitizeEmail::MailHeaderTools.prepend_subject_array(message).join(' ')
|
38
|
+
end
|
36
39
|
end
|
37
40
|
|
38
41
|
# According to https://github.com/mikel/mail this is the correct way to update headers.
|