carterdte_smtp_filter 0.0.6.6 → 0.0.6.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 443b84f02f4ecd8f1cf76c6a7dd0952e122becab
|
4
|
+
data.tar.gz: f90bb8695e220540bad317b08a271769434eac4c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: da72509a2db6bf1a51abfd6bc3edd0b280dc8f423a2b4ba4b3660b7296a00838f33363fb3099313986bb7de7dc85567fa984f66062c2789e7b7ee2b082fa980f
|
7
|
+
data.tar.gz: b4e07f2475ce7449ed0bb121730740bc62d7ce0af3267c438ad8f4223cfb8fd69c312b14e12f9eaa6680356674f35d5359ff83967aa4da79c77e417f04c7dfb9
|
@@ -8,7 +8,7 @@ module CarterdteSmtpFilter
|
|
8
8
|
|
9
9
|
def initialize(raw_data, envelope = nil, qid = nil)
|
10
10
|
set_mail_defaults
|
11
|
-
@raw_data = raw_data
|
11
|
+
@raw_data = raw_data
|
12
12
|
@email = parse_email(envelope)
|
13
13
|
@logger = CarterdteSmtpFilter.logger
|
14
14
|
@dte = extract_dte
|
@@ -23,7 +23,14 @@ module CarterdteSmtpFilter
|
|
23
23
|
|
24
24
|
# return the email back, and extract queue_id unless we are not
|
25
25
|
# working with Postfix
|
26
|
-
|
26
|
+
begin
|
27
|
+
message.return_email unless CarterdteSmtpFilter::Config::stand_alone
|
28
|
+
rescue Smtpd451Exception => e
|
29
|
+
# Esto pasa cuando colocan acento en el subject
|
30
|
+
# y no avisan con el encoding que corresponde
|
31
|
+
message.email.subject = message.email.subject.force_encoding('ISO-8859-1').encode('UTF-8')
|
32
|
+
message.return_email unless CarterdteSmtpFilter::Config::stand_alone
|
33
|
+
end
|
27
34
|
|
28
35
|
# We send it to CarterDte App
|
29
36
|
@logger.debug("Message DTE: #{message.dte}") if CarterdteSmtpFilter::Config::debug
|