maedana-ar_mailer 2.1.6 → 2.1.6.1

Sign up to get free protection for your applications and to get access to all the features.
data/History.txt CHANGED
@@ -1,3 +1,6 @@
1
+ = 2.1.6.1
2
+ * Fix bug when occured Net::SMTPFatalError.
3
+
1
4
  = 2.1.6
2
5
 
3
6
  * Add 'smtp_failover_activerecord'. 'smtp_failover_activerecord' allows you to store db if a mail send failed by smtp.
@@ -42,7 +42,7 @@ class ActionMailer::ARSendmail
42
42
  ##
43
43
  # The version of ActionMailer::ARSendmail you are running.
44
44
 
45
- VERSION = '2.1.6'
45
+ VERSION = '2.1.6.1'
46
46
 
47
47
  ##
48
48
  # Maximum number of times authentication will be consecutively retried
@@ -382,8 +382,11 @@ class ActionMailer::ARSendmail
382
382
  log "sent email %011d from %s to %s: %p" %
383
383
  [email.id, email.from, email.to, res]
384
384
  rescue Net::SMTPFatalError => e
385
- log "5xx error sending email #{email.id}: #{e.message}"
386
- raise e
385
+ email.last_send_attempt = Time.now.to_i
386
+ email.save rescue nil
387
+ log "5xx error sending email %d: %p(%s):\n\t%s" %
388
+ [email.id, e.message, e.class, e.backtrace.join("\n\t")]
389
+ break
387
390
  rescue Net::SMTPServerBusy => e
388
391
  log "server too busy, sleeping #{@delay} seconds"
389
392
  sleep delay
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: maedana-ar_mailer
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.6
4
+ version: 2.1.6.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eric Hodel
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2009-10-01 00:00:00 +09:00
13
+ date: 2009-10-02 00:00:00 +09:00
14
14
  default_executable: ar_sendmail
15
15
  dependencies: []
16
16