Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
63022dd6
Commit
63022dd6
authored
Aug 27, 1997
by
Jack Jansen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Modified for new scripting support
parent
5638967b
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
266 additions
and
70 deletions
+266
-70
Mac/Demo/scripting/Eudora_Suite.py
Mac/Demo/scripting/Eudora_Suite.py
+256
-67
Mac/Demo/scripting/testeudora.py
Mac/Demo/scripting/testeudora.py
+10
-3
No files found.
Mac/Demo/scripting/Eudora_Suite.py
View file @
63022dd6
This diff is collapsed.
Click to expand it.
Mac/Demo/scripting/testeudora.py
View file @
63022dd6
...
...
@@ -4,10 +4,11 @@ import sys
import
aetools
import
Eudora_Suite
import
Required_Suite
import
Standard_Suite
import
MacOS
class
Eudora
(
aetools
.
TalkTo
,
Required_Suite
.
Required_Suite
,
\
Eudora_Suite
.
Eudora_Suite
):
class
Eudora
(
Eudora_Suite
.
Eudora_Suite
,
Required_Suite
.
Required_Suite
,
\
Standard_Suite
.
Standard_Suite
,
aetools
.
TalkTo
):
"""A class that can talk to Eudora"""
pass
...
...
@@ -17,13 +18,19 @@ SIGNATURE="CSOm"
def
main
():
talker
=
Eudora
(
SIGNATURE
,
start
=
1
)
while
1
:
print
'get, put, quit (eudora) or exit (this program) ?'
print
'get, put,
name (of first folder), list (foldernames),
quit (eudora) or exit (this program) ?'
line
=
sys
.
stdin
.
readline
()
try
:
if
line
[
0
]
==
'g'
:
talker
.
connect
(
checking
=
1
)
elif
line
[
0
]
==
'p'
:
talker
.
connect
(
sending
=
1
)
elif
line
[
0
]
==
'n'
:
id
=
Eudora_Suite
.
mailbox
(
1
).
name
name
=
talker
.
_get
(
id
,
as
=
'text'
)
print
"It is called"
,
name
elif
line
[
0
]
==
'l'
:
pass
elif
line
[
0
]
==
'q'
:
talker
.
quit
()
elif
line
[
0
]
==
'e'
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment