From: James Britt Date: 2006-04-19T05:40:29+09:00 Subject: Re: Google Summer of Code update Ryan Leavengood wrote: > On 4/18/06, tsuraan@tsuraan.net wrote: > >>One project I'd recommend, in case any more ideas are needed, is a >>python-grade email parsing library. At work, we do a lot of work with >>email handling, so I just can't get away from python. At a bare >>minimum, an email parsing library should be able to decode all the >>email encodings (base64, quoted-printable, etc), and convert the >>encoded header information (the way that unicode headers are converted >>into ascii) into their native formats. Other goodies, such as being >>able to read an mmap'd email rather than a string would be really nice >>:) > > > Somewhat related to this, I think it is entirely too hard to send > emails in Ruby. If you have a big Rails app and all that comes with > that you can use ActiveMailer, but from what I could see it was too > much for just a small app. Here is some idea of what I would like: > > require 'email' > > Email.send(:to=>'yoohoo@somewhere.com', :from=>'me@here.com', > subject=>'Hi there buddy', msg=>'How are you doing?') > That looks like the code I use to tell me when my arm of mutant robots has located a decent DVD listing on the local library Web site. Basic mail sending really is that simple. Aside from setting the MTA domain and mail headers, there's not much to it. (I believe I've posted my code to this list within the last month or so, too.) Sending mail over SSL is, I think, a different matter. But I've not had to do much to get basic mail sent out from an application. -- James Britt "In Ruby, no one cares who your parents were, all they care about is if you know what you are talking about." - Logan Capaldo