[#2529] concerns about Proc,lambda,block — "David A. Black" <dblack@...>

Hi --

39 messages 2004/03/01
[#2531] Re: concerns about Proc,lambda,block — ts <decoux@...> 2004/03/01

>>>>> "D" == David A Black <dblack@wobblini.net> writes:

[#2533] Re: concerns about Proc,lambda,block — "David A. Black" <dblack@...> 2004/03/01

Hi --

[#2537] Re: concerns about Proc,lambda,block — matz@... (Yukihiro Matsumoto) 2004/03/01

Hi,

[#2542] Re: concerns about Proc,lambda,block — Mathieu Bouchard <matju@...> 2004/03/02

[#2545] Re: concerns about Proc,lambda,block — matz@... (Yukihiro Matsumoto) 2004/03/02

Hi,

[#2550] Re: concerns about Proc,lambda,block — Mauricio Fern疣dez <batsman.geo@...> 2004/03/03

On Wed, Mar 03, 2004 at 07:51:10AM +0900, Yukihiro Matsumoto wrote:

[#2703] Proposed patch to add SSL support to net/pop.rb — Daniel Hobe <daniel@...>

This patch adds support to Net::POP for doing POP over SSL. Modeled on how

19 messages 2004/03/27
[#2704] Re: Proposed patch to add SSL support to net/pop.rb — Daniel Hobe <daniel@...> 2004/03/27

This is v2 of the patch. Cleaned up a bit and added some more docs.

[#2707] Re: Proposed patch to add SSL support to net/pop.rb — Daniel Hobe <daniel@...> 2004/03/28

v3 of the patch:

[#2721] Re: Proposed patch to add SSL support to net/pop.rb — Minero Aoki <aamine@...> 2004/03/30

Hi,

Re: Proposed patch to add SSL support to net/pop.rb

From: "Daniel Hobe" <daniel@...>
Date: 2004-03-31 04:27:31 UTC
List: ruby-core #2728
> On Tue, 30 Mar 2004 16:24:17 +0900, Daniel Hobe wrote:
>> I agree that there are a lot of arguments to #start, but I think it is
>> the best way.  I looked at https.rb and imap.rb and I think the way that
>> imap.rb implements this is the best way for pop.  I felt that adding SSL
>> this way was the least invasive and kept the ability to do things like
>> this:
>>
>> Net::POP3.start(args...,usessl=true) { |pop|
>> do stuff
>> }
>>
>>
>> Since people can do this now (without SSL), I wanted to add the ability
>> to have the same code but add SSL support.  I also don't think people
>> should have to create ssl contexts to use ssl, that should all be hidden
>> away.
>
> What about:
>
> Net::POP3.start(address, port, account, password, isapop = false) { |pop|
> ... }
> Net::POP3.start_with_ssl(address, port, account, password, certs, verify,
> isapop = false) { |pop| ... }

That might work.

What about the case where I want a client that can do either POP or POP
over SSL depending on a users input?  In the first case I just set usessl
= true and pass that to #start.  In this case I have to call a whole
separate method.  This seems less elegant to me.


> -austin
> --
> austin ziegler    * austin@halostatue.ca * Toronto, ON, Canada
> software designer * pragmatic programmer * 2004.03.30
>                                          * 09.38.47
>
>
>
>
>


-- 
Daniel Hobe <daniel@nightrunner.com>

In This Thread