After 15 years, I have finally reached the point where I use Outlook as my build pipeline

Posted by codingtofreedom@reddit | programming | View on Reddit | 43 comments

I had an annoying problem at work where we had to work around some less-than-optimal firewall rules, and because we are working on a tool that requires quite frequent testing (like several times per hour we work on it), it was really adding up to take these five-minutes per file that it took to get them from my coworker's machine to mine, and I quickly designed a server workflow that could take the encoded file and save it to its own file system.
Because we could not find a good way to bring these files over, we figured it was actually a good idea to send it via email to an inbox with a specific subject line, and then have a Python script on my end checking the inbox every minute to then take the attached file and send it to the endpoint.

This has to be one of the hackiest solutions I have come up with over the years for a problem that wouldn't have to be one if my coworker was simply allowed to call the endpoint from his code, but I found it interesting how simple it actually is to connect from a Python script to a local Outlook client and parse the results. Less than 100 lines of code, and we have a "build pipeline" going that reduces our manual overhead significantly.