[plt-scheme] Re: email using ssl
On Thu, Feb 22, 2007 at 05:44:30AM +0800, Matthew Flatt wrote:
> At Wed, 21 Feb 2007 10:26:54 -0800 (PST), geb a wrote:
> > I've found this code snippet in the archives because
> > I've been tackling a similar problem with our school's
> > email system and I was wondering if this issue might
> > have been addressed and I've somehow overlooked it.
>
> The follow-up
>
> http://list.cs.brown.edu/pipermail/plt-scheme/2006-August/014479.html
>
> is still true: although implementing TLS looks easy to me, no one has
> actually implemented it in "smtp.ss".
It's pretty straightforward. Just need to do the following IIRC:
* Issue an EHLO (I notice that smtp-unit.ss already does)
* Check to see if the returned list of commands includes STARTTLS
* Issue a STARTTLS
* Check the reply code (220)
* Switch over to TLS (which is just SSLv3 standardized in RFC form)
and carry on as normal.
> Patches to "smtp.ss" are welcome. :)
I may see about trying my hand at it and getting you such a patch.
Stevie