Prev: SmartImage 0.0.3 - simple yet powerful cross-platformthumbnail generation and image manipulation in Ruby
Next: FasterCSV - Merge CSV
From: Henrique Testa on 1 Jul 2010 21:02 Hi there! I must be missing something about Mail gem, bounced? and error_status don't work for me. I have just one message on the server, and it is a bounced e-mail. So I tried the following: Mail.defaults do retriever_method :pop3, { :address => "pop.gmail.com", :port => 995, :user_name => '<username>', :password => '<password>', :enable_ssl => true } end mail = Mail.first # #<Mail::Message:2201530420, Multipart: false, Headers: <Return-Path: <>>,... mail.subject # "Delivery Status Notification (Failure)" mail.bounced? # nil mail.error_status # nil mail.diagnostic_code # nil Shouldn't "bounced?" return true? Thanks ! -- Posted via http://www.ruby-forum.com/. |