News for hackers. Stuff that matters.
Re:Websomtep: combination SMTP / WebSocket server by pilap82 on Tuesday April 24, 2012 @03:40AM (#3882906)
Great, I'll watch and collect emails.

Very good to target HN demographics :o)

Re:Websomtep: combination SMTP / WebSocket server by kennywinker on Tuesday April 24, 2012 @04:09AM (#3882960)
Yeah, censoring the email addresses would be nice. Ah well.. 37 people now have my email. :)
Re:Websomtep: combination SMTP / WebSocket server by jlawer on Tuesday April 24, 2012 @03:37AM (#3882898)
Cool demo, but the evil me considers connecting it up to the production mailing cluster we have and seeing how it would handle a few hundred messages a second....

I would be interested to know what kind of performance you do get out of this (i.e. messages a second) as I've been writing code to do some SMTP handling in python and been looking for a way to speed it up.

Re:Websomtep: combination SMTP / WebSocket server by agentS on Tuesday April 24, 2012 @04:59AM (#3883056)
From scanning the source, if a websocket connection is backlogged, messages sent to it are dropped. So I'd imagine it'd handle it fine :)
Re:Websomtep: combination SMTP / WebSocket server by comice on Tuesday April 24, 2012 @09:14AM (#3883755)
I'm imagining an in-browser game where people have to zap the incoming spam emails in real time.
Re:Websomtep: combination SMTP / WebSocket server by nl on Tuesday April 24, 2012 @10:36AM (#3884105)
I like how it get's around the problem of storing images people send before serving the <img> tag to the browser (for people who don't want to look: it doesn't store the images at all - it serves them in the same websocket stream using data: urls)
Re:Websomtep: combination SMTP / WebSocket server by thibaut_barrere on Tuesday April 24, 2012 @04:00AM (#3882944)
Pretty cool! This is making me want to have a closer look at Go. Thanks for sharing.
Re:Websomtep: combination SMTP / WebSocket server by samwillis on Tuesday April 24, 2012 @03:50AM (#3882928)
I think there is a big XSS hole in the current front end. There is no escaping of input from email sent to it.

Edit: Oops I'm wrong, I think it is escaped on the server. How are people including images?

Re:Websomtep: combination SMTP / WebSocket server by m1rk00 on Tuesday April 24, 2012 @04:00AM (#3882943)
Email attachments?
Re:Websomtep: combination SMTP / WebSocket server by kennywinker on Tuesday April 24, 2012 @04:10AM (#3882962)
Email attachments.
Re:Websomtep: combination SMTP / WebSocket server by est on Tuesday April 24, 2012 @04:37AM (#3883020)
Can't display non-English characters.
Re:Websomtep: combination SMTP / WebSocket server by BarkMore on Tuesday April 24, 2012 @08:58AM (#3883698)
The application cannot handle the character encoding that you sent it. Go does not have a standard library for converting arbitrary character encodings to UTF-8. Perhaps this will demo will illustrate the need for such a library.
Re:Websomtep: combination SMTP / WebSocket server by bradfitz on Tuesday April 24, 2012 @11:41AM (#3884438)
Libraries exist. I just didn't link one in out of laziness.