Kevin Smith <kevins14 / pacbell.net> wrote:
> > My weekend project was to write a little ruby program that
> > pulls mail from my POP3 server. Works great...except I can't 
> > delete the messages from the server. Here's my inner code loop:

Yuichi Masuda says:

> Messages marked 'deleted' will be actually deleted when POP3 
> server get
> 'QUIT' command.
> 
> It seems that pop.rb never send 'QUIT' message to POP3 server.

> I think this is pop.rb 's bug.

I think you're right. There's even no method in POPMail to call
POP3Command's method quit to send 'QUIT'.

I also think it should be on developers responsibility to issue QUIT in the
end. It's common functionality to mark messages and then revert by closing
connection without saying "QUIT" and deleting messages.

But my opinion on this is very weak. I guess POP3#start in block form could
send QUIT automatically after the block has been executed successfully.

	- Aleksi