dvdplm-ar_mailer 2.0.4 → 2.0.5
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.
- data/lib/action_mailer/ar_sendmail.rb +2 -2
- metadata +1 -1
|
@@ -182,7 +182,7 @@ end
|
|
|
182
182
|
create_timestamp.strftime '%a %b %d %H:%M:%S'
|
|
183
183
|
end
|
|
184
184
|
|
|
185
|
-
puts "%10d %8d %s
|
|
185
|
+
puts "%10d %8d %s %s %7d %s -> %s" % [email.id, size, created, Time.at(email.last_send_attempt) || ' '*19, email.attempts, email.from, email.to]
|
|
186
186
|
end
|
|
187
187
|
|
|
188
188
|
puts "-- #{total_size/1024} Kbytes in #{emails.length} Requests."
|
|
@@ -467,7 +467,7 @@ end
|
|
|
467
467
|
res = session.send_message email.mail, email.from, email.to
|
|
468
468
|
email.failed = false
|
|
469
469
|
email.sent_at = Time.now
|
|
470
|
-
email.success_status = res.string
|
|
470
|
+
email.success_status = res.string rescue res.inspect # NOTE: some rubies return an Net::HTTP::Response here, others just a stupid String (dvd, 11-05-2009)
|
|
471
471
|
|
|
472
472
|
log "#{self.class}#deliver sent email %011d from %s to %s: %p" %
|
|
473
473
|
[email.id, email.from, email.to, res]
|