Additions to pop.rb

Hello all. I don’t quite know if this is the place to post these types of
submissions but I cannot seem to find anywhere else.

Anyway, I have made an update to pop.rb (from the ruby-1.6.8 distribution)
to give POP3 STAT command functionality (POP3#stat). The method returns an
array of [numMessages, size]. I have also added a BadResponseError class to
the bottom like it is in smtp.rb since I could not find where BadResponse
(in the POP3#list method) was located and it seemed like a problem as it is.

I have attached a diff (pop_diff.txt) to this email and would be more than
willing to send the whole new file on request.

Comments and criticisms are welcome!

–frank

pop_diff.txt (1.61 KB)

Hi Frank,

In mail “Additions to pop.rb…”

Hello all. I don’t quite know if this is the place to post these types of
submissions but I cannot seem to find anywhere else.

Anyway, I have made an update to pop.rb (from the ruby-1.6.8 distribution)
to give POP3 STAT command functionality (POP3#stat). The method returns an
array of [numMessages, size]. I have also added a BadResponseError class to
the bottom like it is in smtp.rb since I could not find where BadResponse
(in the POP3#list method) was located and it seemed like a problem as it is.

Thank you very much. Your patch seems good, except `stat’ method
should belongs to POPMail object. I’ll commit your patch with little
modification.

Best regards,
Minero Aoki

P.S.
Sorry for late response. I’m quite busy these days…

···

Frank S.Fejes III frank@fejes.net wrote:

Great! I do think, though, that stat should belong to the POP3 object since
(if I understand correctly) POPMail is only one email object. The ‘stat’
method returns information on the size of the entire POP3 mailbox and the
number of emails (POPMail objects) inside.

–frank

···

On Sun, 2 Mar 2003 14:36:50 +0900 Minero Aoki aamine@loveruby.net wrote:

Hi Frank,

In mail “Additions to pop.rb…”
Frank S.Fejes III frank@fejes.net wrote:

Hello all. I don’t quite know if this is the place to post these types
of submissions but I cannot seem to find anywhere else.

Anyway, I have made an update to pop.rb (from the ruby-1.6.8
distribution) to give POP3 STAT command functionality (POP3#stat). The
method returns an array of [numMessages, size]. I have also added a
BadResponseError class to the bottom like it is in smtp.rb since I could
not find where BadResponse(in the POP3#list method) was located and it
seemed like a problem as it is.

Thank you very much. Your patch seems good, except `stat’ method
should belongs to POPMail object. I’ll commit your patch with little
modification.

Best regards,
Minero Aoki

P.S.
Sorry for late response. I’m quite busy these days…

Hi,

In mail “Re: Additions to pop.rb…”

···

Frank S.Fejes frank@oopdreams.com wrote:

Great! I do think, though, that stat should belong to the POP3 object since
(if I understand correctly) POPMail is only one email object. The ‘stat’
method returns information on the size of the entire POP3 mailbox and the
number of emails (POPMail objects) inside.

Ah, just I forgot it. Thanks.

Regards,
Minero Aoki