I claimed hastily: > > I think you're right. There's even no method in POPMail to call > > POP3Command's method quit to send 'QUIT'. But Minero Aoki corrected: > No, POP3 send QUIT when POP3#finish is called. > The cause is that original source code never call #finish. You're right. Of course it was part of the Protocol. > I recommend to call POP3#start (and also SMTP#start, HTTP#start) > with block ALWAYS. see also RD document in net/pop.rb. I'd say the use and meaning of the block form was pretty predictable. So my appreciation to your code just went up (again :). I hope I'll obtain some your insight sometime. > I decide to add a class method for easy use... > > Net::POP3.foreach_with_delete( server, nil, account, pass ) do |m| > m > end Quite handy. I wonder if there could be better name for it. Maybe delete_all is better, and associated block will be called for each mail to be deleted. Maybe not. - Aleksi