summaryrefslogtreecommitdiffstats
path: root/Mac/Unsupported/PythonScript/testeudora.py
diff options
context:
space:
mode:
authorJack Jansen <jack.jansen@cwi.nl>2002-12-13 13:38:28 (GMT)
committerJack Jansen <jack.jansen@cwi.nl>2002-12-13 13:38:28 (GMT)
commit8bf053feade9c854a6c351d1d892c3cf78413f36 (patch)
tree53cd7ae90d5c69ce91b54f9af53b911a94e28d63 /Mac/Unsupported/PythonScript/testeudora.py
parentbb3e4cb14b8d2e78ae1f670dfff7b271ded33fde (diff)
downloadcpython-8bf053feade9c854a6c351d1d892c3cf78413f36.zip
cpython-8bf053feade9c854a6c351d1d892c3cf78413f36.tar.gz
cpython-8bf053feade9c854a6c351d1d892c3cf78413f36.tar.bz2
It was an old MacPython artefact that these files were still in the source
tree. Removed them, anyone really desparate to recover them can get them from the CVS repository.
Diffstat (limited to 'Mac/Unsupported/PythonScript/testeudora.py')
-rw-r--r--Mac/Unsupported/PythonScript/testeudora.py44
1 files changed, 0 insertions, 44 deletions
diff --git a/Mac/Unsupported/PythonScript/testeudora.py b/Mac/Unsupported/PythonScript/testeudora.py
deleted file mode 100644
index ba676a3..0000000
--- a/Mac/Unsupported/PythonScript/testeudora.py
+++ /dev/null
@@ -1,44 +0,0 @@
-"""A test program that allows us to control Eudora"""
-
-import sys
-import MacOS
-import PythonScript
-
-# The Creator signature of eudora:
-SIGNATURE="CSOm"
-TIMEOUT = 10*60*60
-
-
-
-def main():
- PythonScript.PsScript(SIGNATURE, TIMEOUT)
- talker = PythonScript.PyScript
- ev = PythonScript.PsEvents
- pc = PythonScript.PsClass
- while 1:
- print 'get, put, name (of first folder), list (foldernames), quit (eudora) or exit (this program) ?'
- line = sys.stdin.readline()
- try:
- if line[0] == 'g':
- print 'check'
- print talker(ev.Activate)
- print talker(ev.Connect, Checking=1)
- elif line[0] == 'p':
- print talker(ev.Connect, Sending=1)
- elif line[0] == 'n':
- id = talker(ev.Get, pc.Mail_folder("").Mailbox(1).Name())
- print "It is called", id, "\n"
- elif line[0] == 'l':
- id = talker(ev.Count, pc.Mail_folder(""), Each='Mailbox')
- print "There are", id, "mailboxes"
- elif line[0] == 'q':
- print talker(ev.Quit)
- elif line[0] == 'e':
- break
- except MacOS.Error, arg:
- if arg[0] == -609:
- print 'Connection invalid, is eudora running?'
- else:
- print 'MacOS Error:', arg[1]
-
-main()