6 ms·
Websomtep: combination SMTP / WebSocket server
- jlawer 14y agoCool 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.
- agentS 14y agoFrom scanning the source, if a websocket connection is backlogged, messages sent to it are dropped. So I'd imagine it'd handle it fine :)
- pilap82 14y agoGreat, I'll watch and collect emails. Very good to target HN demographics :o)
- kennywinker 14y agoYeah, censoring the email addresses would be nice. Ah well.. 37 people now have my email. :)
- samwillis 14y agoI 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?
- m1rk00 14y agoEmail attachments?
- kennywinker 14y agoEmail attachments.
- thibaut_barrere 14y agoPretty cool! This is making me want to have a closer look at Go. Thanks for sharing.
- est 14y agoCan't display non-English characters.
- BarkMore 14y agoThe 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.
- bradfitz 14y agoLibraries exist. I just didn't link one in out of laziness.
- comice 14y agoI'm imagining an in-browser game where people have to zap the incoming spam emails in real time.
- nl 14y agoI 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)