3 ms·
That's a valid interpretation and criticism. I was actually hoping Socat would have a websocket mode to eliminate some steps. My take on it is that you only ne
by andrewchambers 9y ago
That's a valid interpretation and criticism. I was actually hoping Socat would have a websocket mode to eliminate some steps.
My take on it is that you only need to write 20 lines of code to do an email triggered action because I spent some time configuring the tedious parts. At the same time, I thought it would be fun to show people that the real world and linux shell are not so far from interacting with each other.
- vog 9y agoWhy not running an IMAP client on the device? (e.g. fetchmail, or anything else that speaks IMAP) If you spend 100 lines on a separate Go program, you could as well make it a generic IMAP client (using some Go libraries) rather than making it a HTTP/Websocket client that is highly specialiced to a single web service.
- andrewchambers 9y agoThat sounds like a good solution, though I'm using the websocket aspect for throw away addresses in integrations tests where this seemed to make sense.