• R/O
  • SSH
  • HTTPS

dietmemorer: Commit


Commit MetaInfo

Revision28 (tree)
Time2008-02-12 15:07:32
Authoryaggy

Log Message

エラー時にも続行できるようにした

Change Summary

Incremental Difference

--- trunk/src/mail_control.rb (revision 27)
+++ trunk/src/mail_control.rb (revision 28)
@@ -29,10 +29,14 @@
2929 pop.each_mail do |m|
3030
3131 mail = TMail::Mail.parse(m.pop)
32-
32+begin
3333 ma.analize(mail, smtpserver, smtpfrom)
34-
34+rescue => exc
35+ p exc
36+ p "mail error... next..."
37+ensure
3538 m.delete
39+end
3640 end
3741 Debug.p "#{pop.mails.size} mails popped."
3842 end
--- trunk/src/mail_analizer.rb (revision 27)
+++ trunk/src/mail_analizer.rb (revision 28)
@@ -589,7 +589,7 @@
589589 isth.finish
590590 end
591591
592- elsif 2 == field.size or 3 == field.size then
592+ elsif 1 < field.size then
593593 Debug.p field
594594
595595 if MailAnalizer.in_ary(@@body_weight, field[0]) then
Show on old repository browser