Forum: Ruby Ruby Email handling / TMail / ActionMailer

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
374717e4aceb8b92431f3bd9b5673636?d=identicon&s=25 chrisjroos (Guest)
on 2005-12-01 10:31
(Received via mailing list)
Hi,

I've used TMail in the past, mainly in conjunction with ActionMailer.

I now need email parsing outside of rails and don't really need
ActionMailer.  I know there have been changes to the TMail source that
is included in ActionMailer.  I don't think that these changes have
been fed back into standard TMail itself.  If I wanted to use the
latest TMail outside of rails, should I just include ActionMailer gem
and use TMail from there or use the standalone version from
i.loveruby.net?

Alternatively, I know there are a few other mail parsing libs for Ruby.
 Can anyone suggest a good alternative?

Thanks in advance,

Chris
6ea6d870dca01610bf455951220db3ac?d=identicon&s=25 Poornima Dhanasekar (poornimad)
on 2009-02-19 05:48
Hi,
    I  am trobling wit an email problem for getting my messages.I have
to retrieve my attachements from my inbox messages.i dint' get a
solution yet.can you plz give me a solution to me.I got "Running Mail
Importer...
execution expired
Finished Mail Importer " error.


my code is

require "rubygems"
require 'net/pop'

def index

puts  "Running Mail Importer..."
begin
if Net::POP3.start("pop.gmail.com", nil, "poornima.dgl@gmail.com",
"password")
  Net::POP3.start("pop.gmail.com", nil, "poornima.dgl@gmail.com",
"password") do |pop|
  puts "After....."
  if pop.mails.empty?
    puts  "NO MAIL"
  else
    pop.mails.each do |email|
      begin
        puts  "receiving mail..."
        Notifier.receive(email.pop)
        email.delete
      rescue Exception => e
        puts "Error receiving email at " + Time.now.to_s + "::: " +
e.message
      end
    end
  end
end
else
 puts "Not Connecting..."
end
rescue Exception => e
  puts e
end

puts  "Finished Mail Importer."

end
This topic is locked and can not be replied to.