delete? and everything in memory?

17 views
Skip to first unread message

k

unread,
Nov 16, 2009, 1:15:24 AM11/16/09
to Ruby's Mail Discussion Group
No way to delete from the server?

And does Mail.get_all_mail read all messages into memory at once? So
if the account has lots of messages with fat attachments ... sudden
RAM death? :-)

Mikel Lindsaar

unread,
Nov 16, 2009, 5:32:36 AM11/16/09
to mail...@googlegroups.com
On Mon, Nov 16, 2009 at 5:15 PM, k <ke...@simplyideas.com> wrote:

No way to delete from the server?

Yes, the POP3 and SMTP support are pretty basic right now.

Feel free to add some more features.
 
And does Mail.get_all_mail read all messages into memory at once? So
if the account has lots of messages with fat attachments ... sudden
RAM death? :-)

Yes.  True :)

Buy more RAM? ;)

Again, the POP3 module is fairly straight forward, you could add a get_each_message method or something similar and yield each time.

Again, patches welcome! :)

I am working on getting Mail into ActionMailer for the Rails 3 release now, to replace out TMail.

Mikel


--
http://lindsaar.net/
Rails, RSpec and Life blog....


Reply all
Reply to author
Forward
0 new messages