Fakemail python fails to run on Windows because Windows
does not support the SIGHUP signal.
To fix, change line 78 of fakemail.py from this:
for sig in (signal.SIGINT, signal.SIGTERM, signal.SIGHUP):
to this:
for sig in (signal.SIGINT, signal.SIGTERM):
A possibly better solution would be an OS switch, and including SIGABRT (to avoid the console window crashing on closing) - up from line 73:
def handle_signals():
def signal_handler(signum, frame):
quit()
if os.name == 'posix':
signals = (signal.SIGINT, signal.SIGTERM, signal.SIGHUP)
## Above for Unix. Below for Windows
elif os.name == 'nt':
signals = (signal.SIGINT, signal.SIGTERM, signal.SIGABRT)
for sig in signals:
signal.signal(sig, signal_handler)