carterdte_smtp_filter 0.0.6.6 → 0.0.6.7

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: 655cd23a6e08c6f0be4fb5836af90daf1d1fa00d
4
- data.tar.gz: 0eec135424ae7ea6c2399b8f0f84ad0cf2c0dd7d
3
+ metadata.gz: 443b84f02f4ecd8f1cf76c6a7dd0952e122becab
4
+ data.tar.gz: f90bb8695e220540bad317b08a271769434eac4c
5
5
  SHA512:
6
- metadata.gz: 89a9412f55cfdbdcbc248df2e286de56fd0dc6749c7fec11ca3280309f19dc0eed969ecbbd256af5c68436b33f851d5badd3c27c578aa615e26b5806deb1c4ef
7
- data.tar.gz: aae897bb7c1cf84b22e6fd1562702c1b95f0fea3911affab1c93742a9c238dce8f21a6f76c05f6579497bc16ce7643ebac062550d34bcf4d4a469493b7086f75
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.force_encoding("BINARY")
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
- message.return_email unless CarterdteSmtpFilter::Config::stand_alone
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
@@ -1,3 +1,3 @@
1
1
  module CarterdteSmtpFilter
2
- VERSION = "0.0.6.6"
2
+ VERSION = "0.0.6.7"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: carterdte_smtp_filter
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.6.6
4
+ version: 0.0.6.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Patricio Bruna