Read email from a system pipe into python

Posted by - August 15, 2016

#!/usr/local/bin/python import sys import email full_msg = “” for line in sys.stdin full_msg += line msg = email.message_from_string(full_msg) to = msg fromwho = msg subject = msg #make an emty variable for email body body =...
Read More

Keep Reading : maserFire.py – Fire lasers with transistors and python on a Raspberry Pi 3 maserCycle.py – Cycle through lasers on servos and draw lines servoTurn.Py – a simple python script to turn a servo on a raspberry pi 3 while loop
Read More