mirror of
https://github.com/D-Modem/bbs.git
synced 2026-11-28 17:38:04 -08:00
Merge pull request #20 from D-Modem/claude/project-thread-eqs2x1
CompuServe Mail on the BBS's private mail
This commit is contained in:
9 files changed
+1296
-22
No files matched your search
@@ -16,6 +16,7 @@ Tags: **[V]** verbatim from a capture or period document (blank-line runs and AN
|
||||
| S6–S8 | 1993–94 Mac captures (logon, Mail, forum JOIN, RATES, BILLING, command summary). Discmaster item 19202 (`King.img`, `Alexander.img`). |
|
||||
| S9 | 1995 Navigator session. Discmaster item 20868. |
|
||||
| S10 | TAPCIS 5.3 (1990): manual TAPDOC.1–10, PARAMS.SCR, CIS.SCR, TYMNET.SCR, SPRINT24.SCR, strings in TAPCIS.EXE. <https://discmaster.textfiles.com/browse/14533/Megaware%20Volume%201.iso/communic/tapcis> |
|
||||
| S19 | TAPCIS 5.42 (1994): PARAMS.SCR (5.4, 12/10/91), FRONTEND.SCR, TAPCIS.HLP, strings in TAPCIS.EXE. <https://archive.org/details/TAP542_ZIP> |
|
||||
| S11 | *Forum Software Version 4D Complete Command Listing*, May 1989. <https://discmaster.textfiles.com/view/17620/archives.tar/archives/compuserve-file-archive/02%20Help%20%26%20Utilities/CMDLST.TXT> |
|
||||
| S12 | IBM PC SIG help text, Nov 1983. <https://discmaster.textfiles.com/view/10621/The%20PC-SIG%20Library%20on%20CD%20ROM%20-%20Ninth%20Edition.iso/001_100/DISK0099/DISK0099.ZIP/CS-IBM.SIG> |
|
||||
| S13 | Conference/CB help, 1982–84. <https://discmaster.textfiles.com/view/6428/C.A.R.R.S.%20CD-ROM%20(1990).ISO/020a/symp_6.zip/CONFER.HLP> |
|
||||
@@ -569,6 +570,48 @@ Enter choice or <CR> for more !
|
||||
- Error: `% Invalid command`.
|
||||
- Mode menu: `Mail Mode Menu 1 MENU 2 PROMPT 3 COMMAND`, followed by `Make changes permanent for future Mail sessions ? (Y or N)`.
|
||||
- Settings: `set edit noline`, `set page off`.
|
||||
|
||||
**TAPCIS 5.42's Mail setup, verbatim from PARAMS.SCR** [V, S19]. Each line TAPCIS sends waits for `!`:
|
||||
|
||||
```
|
||||
S go mail (the Mail Main Menu or "Mail!"; "No messages pending")
|
||||
S no ("% Invalid command": an answer to "first visit in 30 days?")
|
||||
S set edit noline
|
||||
S set page off
|
||||
S set retain YES (RETAIN: UNDELETE within 24 hours)
|
||||
S set Mail Options Menu
|
||||
[ ] Represents Current Setting
|
||||
(yes/no options toggle)
|
||||
1 EDITOR uses line numbers [NO]
|
||||
2 MODE of operation is [MENU]
|
||||
(MENU, PROMPT, COMMAND)
|
||||
3 Output is PAGED [NO]
|
||||
S 2 Mail Mode Menu
|
||||
1 MENU - (Novice User)
|
||||
List of choices in menu form.
|
||||
2 PROMPT - (Intermediate User)
|
||||
Brief list of commands.
|
||||
3 COMMAND - (Expert User)
|
||||
One word prompt.
|
||||
S 3 (the Options Menu again, MODE [COMMAND])
|
||||
S <CR> Make changes permanent for
|
||||
future Mail sessions ? (Y or N)
|
||||
S Y
|
||||
S ADD (the Address Book)
|
||||
S NAME Enter a period to erase any information, or <CR> to leave it unchanged.
|
||||
Typing "CANCEL" cancels all changes made and leaves editing mode.
|
||||
Your CompuServe Mail name
|
||||
Old: Harold Bender
|
||||
New: (TAPCIS sends the name)
|
||||
Do you want to enter your return address? (Y or N) !
|
||||
S ^C
|
||||
```
|
||||
|
||||
The script's comments show the Address Book menu as `1 INSERT an entry 2 CHANGE an entry 3 DELETE an entry 4 LIST Address Book 5 Enter/Change your NAME`, and say that NOLINE and PAGE OFF "are essential settings for TAPCIS".
|
||||
|
||||
**What TAPCIS.EXE waits for and sends in Mail** [V, S19, strings only, so the order is inferred]: it waits for `lex!` or `ail!` (EasyPlex! and Mail!), `ID):` (`Send to (Name or User ID):`), `ect:` (`Subject:`), `N)!` / `N)?`, `Action!` and `on!`. It reads with `read all` and `REA WAI`, matches `ate:`, `rom:` and `ubj:` in headers, downloads binary items with `dow/pro:b`, deletes with `DEL`, and sends with `Compose` and `/EX`, or with `UPL/PRO:B/TYP:ASCII MAIL%.TMP` (`/TYP:LATIN1` with its /LATIN1 option; "Be patient after UPL after Send? Y answer"). Addresses take `>INTERNET:`, `>FAX`, `>POSTAL`, `>X400`, `>MCIMAIL:`, `>MHS:` and `>TLX:`, a trailing `/R` for a return receipt, and `;` for another address.
|
||||
|
||||
**The service's choices where the sources are silent** [I]: the send confirmation is `Send? (Y or N)!`, the result is `Message sent to Name [ppn]`, and the read prompt in command mode is `Action!`.
|
||||
- Return receipts cost a $0.25 surcharge [P].
|
||||
|
||||
**Address forms:**
|
||||
|
||||
+46
-1
@@ -135,6 +135,50 @@ BPLUS.ZIP/binary 08-Nov-26 8700 Accesses: 1
|
||||
Keywords: BPLUS PROTOCOL
|
||||
```
|
||||
|
||||
## Mail
|
||||
|
||||
`GO MAIL` (or `EASY`, `EASYPLEX`) enters CompuServe Mail. It is the BBS's
|
||||
private mail: what is sent here arrives in the BBS's mailbox, and the
|
||||
other way round. A message is *pending* until it is read. Read messages
|
||||
stay in the mailbox, as if saved, until they are deleted.
|
||||
|
||||
Mail starts in menu mode, as CompuServe's did. `SET` opens the Options
|
||||
Menu, where option 2 changes the mode to PROMPT or COMMAND, and the
|
||||
answer to `Make changes permanent for future Mail sessions ? (Y or N) !`
|
||||
keeps it with the account. TAPCIS's setup script (`PARAMS.SCR`, run by
|
||||
Alt-P) does exactly this, then `set edit noline` and `set page off`, which
|
||||
are kept too. In command mode the prompt is `Mail!`.
|
||||
|
||||
| Command | Does |
|
||||
|---|---|
|
||||
| `READ [n\|ALL\|SAVED]` | read the pending messages (or the saved ones); `Action!` after each: CR next, `DELETE`, `SAVE`, `REREAD`, `REPLY`, `FORWARD [address]`, `DOWNLOAD [/PROTO:x]` |
|
||||
| `SCAN [ALL\|SAVED]` | one line each: ` 1 alice/Testing` |
|
||||
| `COMPOSE [address]` | write (EDIT, ending with `/EX`), then `Send to (Name or User ID):`, `Subject:` and `Send? (Y or N)!` |
|
||||
| `UPLOAD [/PRO:B] [/TYP:ASCII\|LATIN1]` | a message's text by a protocol, then the same questions (TAPCIS's `UPL/PRO:B/TYP:ASCII MAIL%.TMP`) |
|
||||
| `DOWNLOAD [n\|ALL\|SAVED] [/PROTO:x]` | messages as one text file, by a protocol |
|
||||
| `DELETE n` | delete a message |
|
||||
| `ADDRESS` | the address book, and `NAME` for your Mail name (both for this session only) |
|
||||
| `SET`, `SET MODE x`, `SET EDIT x`, `SET PAGE x`, `MODE` | the options |
|
||||
| `EXIT`, `T`, `GO x`, `OFF` | leave Mail |
|
||||
|
||||
Addresses take CompuServe's forms: a BBS name, a User ID (`72000,1`), a
|
||||
name and an ID (`Sysop 72000,2`, `Sysop [72000,2]`), or a name and a
|
||||
network address after `>`. `INTERNET:72000.1@compuserve.com` is a member
|
||||
here. Other Internet addresses, FAX, POSTAL, MCIMAIL, X.400 and MHS are
|
||||
refused, with a message saying so. A FidoNet address (`Bob@1:234/5`) goes
|
||||
out as netmail when the BBS is on FidoNet. An address ending in `;` asks
|
||||
for another, and a `/R` (return receipt) is accepted but not acted on.
|
||||
|
||||
A message reads like this:
|
||||
|
||||
```
|
||||
Date: 08-Nov-26 12:40 UTC
|
||||
From: alice [72000,1]
|
||||
Subj: Testing
|
||||
|
||||
Hello from Mail.
|
||||
```
|
||||
|
||||
## What is there and what is coming
|
||||
|
||||
| Done | Coming, in order |
|
||||
@@ -143,7 +187,8 @@ BPLUS.ZIP/binary 08-Nov-26 8700 Accesses: 1
|
||||
| Forums on the message areas, with the forum command language | |
|
||||
| The CompuServe B, Quick B and B Plus protocols (`internal/xfer/cisb.go`) | B Plus resume (Tr) and file information (TI) |
|
||||
| Libraries on the file areas, with B+ downloads and uploads | |
|
||||
| | CompuServe Mail, the CB Simulator, then CIM's HMI service |
|
||||
| CompuServe Mail on the BBS's private mail | A kept address book, binary mail |
|
||||
| | The CB Simulator, then CIM's HMI service |
|
||||
|
||||
The research behind all this, with sources, is in
|
||||
[docs/cis](https://github.com/D-Modem/bbs/tree/main/docs/cis).
|
||||
@@ -22,6 +22,11 @@ var prefValues = map[string][]string{
|
||||
"width": {"40", "80"}, // a Commodore's columns
|
||||
"editor": {"full", "line"}, // the full-screen editor, or the line editor
|
||||
"expert": {"on", "off"}, // menus as their prompt alone (? for the rest)
|
||||
|
||||
// CompuServe Mail's options (SET at "Mail!"), kept when the caller says
|
||||
"cis-mailmode": {"menu", "prompt", "command"},
|
||||
"cis-mailedit": {"line", "noline"},
|
||||
"cis-mailpage": {"on", "off"},
|
||||
}
|
||||
|
||||
// PrefKeys are the settings' names, sorted.
|
||||
|
||||
+16
-6
@@ -12,13 +12,19 @@ var errRelog = errors.New("cis: LOG")
|
||||
// ascii is the terminal service, from the banner to the logoff.
|
||||
func (s *session) ascii() error {
|
||||
s.banner()
|
||||
first := s.pages.Get("TOP")
|
||||
if s.firstGo != "" {
|
||||
if p := s.pages.Get(s.firstGo); p != nil {
|
||||
first = p
|
||||
top := s.pages.Get("TOP")
|
||||
switch p := s.pages.Get(s.firstGo); {
|
||||
case s.firstGo == "" || !s.known(s.firstGo):
|
||||
s.show(top)
|
||||
case p != nil && p.ID != "MAIL":
|
||||
s.show(p)
|
||||
default:
|
||||
// /GO:word to a forum or Mail: in it first, TOP when it is left
|
||||
s.page, s.stack, s.menus = top, []*Page{top}, []*Page{top}
|
||||
if err := s.goWord(s.firstGo); err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
s.show(first)
|
||||
for {
|
||||
line, err := s.prompt(s.promptFor())
|
||||
if errors.Is(err, errAbort) {
|
||||
@@ -156,7 +162,11 @@ func (s *session) goWord(word string) error {
|
||||
if f := s.forum(word); f != nil && s.pages.Get(word) == nil {
|
||||
return s.enterForum(f)
|
||||
}
|
||||
s.goTo(s.pages.Get(word))
|
||||
p := s.pages.Get(word)
|
||||
if p != nil && p.ID == "MAIL" {
|
||||
return s.enterMail()
|
||||
}
|
||||
s.goTo(p)
|
||||
return nil
|
||||
}
|
||||
|
||||
|
||||
@@ -65,6 +65,7 @@ type session struct {
|
||||
firstGo string // /GO:word at the User ID
|
||||
byName bool // logged on with a BBS name, not a User ID
|
||||
fpage *Page // the FORUMS menu, as last made
|
||||
mail *mailState
|
||||
pushed []byte // input put back
|
||||
cr bool // the last input byte was a CR (drop a LF or NUL after it)
|
||||
}
|
||||
|
||||
+19
-10
@@ -514,45 +514,54 @@ func (s *session) download(lib *store.FileArea, arg string) error {
|
||||
}
|
||||
defer in.Close()
|
||||
s.node.Doing("CompuServe: downloading " + f.Name)
|
||||
binary := !textFile(f.Name)
|
||||
if err := s.send(proto, xfer.Outgoing{Name: f.Name, Size: f.Size, ModTime: f.Created, Data: in}, !textFile(f.Name)); err != nil {
|
||||
return nil
|
||||
}
|
||||
s.b.Downloaded(s.user, f)
|
||||
s.b.Log.Printf("node %d: %s downloaded %q by %s (%d bytes)", s.node.Num, s.user.Name, f.Name, proto, f.Size)
|
||||
return nil
|
||||
}
|
||||
|
||||
// send sends a file by a protocol of chooseProtocol's, and says how it
|
||||
// went: an error is the transfer's, already told and logged.
|
||||
func (s *session) send(proto string, o xfer.Outgoing, binary bool) error {
|
||||
p := port{s}
|
||||
var err error
|
||||
switch proto {
|
||||
case "B", "QB":
|
||||
k := xfer.NewBLink(p)
|
||||
if err = k.Start(xfer.HostParams); err == nil {
|
||||
_, err = k.SendFile(strings.ToUpper(f.Name), binary, in)
|
||||
_, err = k.SendFile(strings.ToUpper(o.Name), binary, o.Data)
|
||||
}
|
||||
if errors.Is(err, xfer.ErrTimeout) && !k.Plus {
|
||||
s.out("\nYour terminal does not support the B protocol.\n")
|
||||
}
|
||||
case "XMODEM":
|
||||
s.out("Starting XMODEM transfer\n\nPlease initiate XMODEM transfer\nand press <CR> when the transfer\nis complete.\n")
|
||||
err = xfer.SendXMODEM(p, xfer.Outgoing{Name: f.Name, Size: f.Size, ModTime: f.Created, Data: in}, false)
|
||||
err = xfer.SendXMODEM(p, o, false)
|
||||
s.waitCR()
|
||||
case "KERMIT":
|
||||
s.out("Starting KERMIT transfer\n\nPlease initiate KERMIT transfer\nand press <CR> when the transfer\nis complete.\n")
|
||||
err = xfer.SendKermit(p, []xfer.Outgoing{{Name: f.Name, Size: f.Size, ModTime: f.Created, Data: in}})
|
||||
err = xfer.SendKermit(p, []xfer.Outgoing{o})
|
||||
s.waitCR()
|
||||
case "CAPTURE":
|
||||
if binary {
|
||||
s.out("Only ASCII files can be captured.\n")
|
||||
return nil
|
||||
return errors.New("binary capture")
|
||||
}
|
||||
s.line.Write([]byte{0x12}) // DC2: capture on
|
||||
var b []byte
|
||||
if b, err = io.ReadAll(io.LimitReader(in, 4<<20)); err == nil {
|
||||
if b, err = io.ReadAll(io.LimitReader(o.Data, 4<<20)); err == nil {
|
||||
s.out(strings.ReplaceAll(string(b), "\r\n", "\n"))
|
||||
}
|
||||
s.line.Write([]byte{0x14}) // DC4: capture off
|
||||
s.out("\n")
|
||||
}
|
||||
if err != nil {
|
||||
s.b.Log.Printf("node %d: CompuServe: %s download of %s failed: %v", s.node.Num, proto, f.Name, err)
|
||||
s.b.Log.Printf("node %d: CompuServe: %s download of %s failed: %v", s.node.Num, proto, o.Name, err)
|
||||
s.out("\nTransfer aborted.\n")
|
||||
return nil
|
||||
return err
|
||||
}
|
||||
s.b.Downloaded(s.user, f)
|
||||
s.b.Log.Printf("node %d: %s downloaded %q by %s (%d bytes)", s.node.Num, s.user.Name, f.Name, proto, f.Size)
|
||||
if proto != "B" && proto != "QB" {
|
||||
s.out("Transfer complete.\n")
|
||||
}
|
||||
|
||||
File diff suppressed because it is too large.
Load diff
@@ -60,8 +60,12 @@
|
||||
downloads and uploads by the CompuServe B and B Plus protocols,
|
||||
XMODEM and Kermit.
|
||||
|
||||
On their way, in this order: CompuServe Mail, the CB Simulator, and
|
||||
the CompuServe Information Manager (CIM) graphical service.
|
||||
CompuServe Mail (GO MAIL) is the BBS's private mail, in menu,
|
||||
prompt or command mode (SET), with downloads and uploads of mail by
|
||||
the B protocols. Send to a name, a User ID, or a FidoNet address.
|
||||
|
||||
On their way, in this order: the CB Simulator, and the CompuServe
|
||||
Information Manager (CIM) graphical service.
|
||||
|
||||
:RATES CHARGES BILLING NEWBIL
|
||||
=CompuServe
|
||||
@@ -131,10 +135,9 @@
|
||||
3 CB Simulator > CB
|
||||
4 Member Directory > DIRECTORY
|
||||
|
||||
:MAIL EASY EASYPLEX
|
||||
:MAIL EASY EASYPLEX MAILRATES
|
||||
=CompuServe Mail
|
||||
CompuServe Mail is on its way. Until then, read and send your mail
|
||||
on the BBS itself.
|
||||
(Going here enters CompuServe Mail, on the BBS's private mail.)
|
||||
|
||||
:FORUMS SIGS
|
||||
=CompuServe
|
||||
|
||||
@@ -0,0 +1,153 @@
|
||||
package server
|
||||
|
||||
import (
|
||||
"bytes"
|
||||
"io"
|
||||
"strings"
|
||||
"testing"
|
||||
|
||||
"github.com/D-Modem/bbs/internal/ui3270"
|
||||
"github.com/D-Modem/bbs/internal/xfer"
|
||||
)
|
||||
|
||||
// TestCompuServeMail: TAPCIS's PARAMS.SCR setup of Mail, a message sent
|
||||
// to a User ID and read by its recipient in command mode, a download of
|
||||
// it by B Plus, and a message uploaded TAPCIS's way.
|
||||
func TestCompuServeMail(t *testing.T) {
|
||||
e := startFull(t, ui3270.Graphics{}, nil, nil, cisListener())
|
||||
|
||||
d := cisLogin(e, "72000,1", "alicepass1")
|
||||
// PARAMS.SCR, as TAPCIS 5.4 sends it: every reply waits for "!"
|
||||
d.send("go mail\r")
|
||||
d.expect("CompuServe Mail Main Menu")
|
||||
d.expect("Enter choice !")
|
||||
d.send("no\r")
|
||||
d.expect("% Invalid command\r\n")
|
||||
d.expect("!")
|
||||
for _, c := range []string{"set edit noline", "set page off", "set retain YES"} {
|
||||
d.send(c + "\r")
|
||||
d.expect("Enter choice !")
|
||||
}
|
||||
d.send("set\r")
|
||||
d.expect(" 2 MODE of operation is [MENU]")
|
||||
d.expect("!")
|
||||
d.send("2\r")
|
||||
d.expect("Mail Mode Menu")
|
||||
d.expect("!")
|
||||
d.send("3\r")
|
||||
d.expect(" 2 MODE of operation is [COMMAND]")
|
||||
d.expect("!")
|
||||
d.send("\r")
|
||||
d.expect("future Mail sessions ? (Y or N) !")
|
||||
d.send("Y\r")
|
||||
d.expect("Mail!")
|
||||
d.send("ADD\r")
|
||||
d.expect("!")
|
||||
d.send("NAME\r")
|
||||
d.expect(" Old: alice\r\n New: ")
|
||||
d.send("Alice A. [TAPCIS]\r")
|
||||
d.expect("return address? (Y or N) !")
|
||||
d.send("\x03")
|
||||
d.expect("!")
|
||||
d.send("\r") // the Address Book menu's exit
|
||||
d.expect("Mail!")
|
||||
|
||||
// a message to the sysop by User ID, with a bad address first
|
||||
d.send("COMPOSE\r")
|
||||
d.expect("Enter /EX to exit EDIT\r\n")
|
||||
d.send("Hello from Mail.\r/ex\r")
|
||||
d.expect("Send to (Name or User ID): ")
|
||||
d.send("Bob >FAX:301-555-1212;\r")
|
||||
d.expect("% FAX mail is not offered on this service: Bob >FAX:301-555-1212\r\n")
|
||||
d.expect("Send to (Name or User ID): ")
|
||||
d.send("Sysop 72000,2\r")
|
||||
d.expect("Subject: ")
|
||||
d.send("Testing\r")
|
||||
d.expect("Send? (Y or N)! ")
|
||||
d.send("Y\r")
|
||||
d.expect("Message sent to sysop [72000,2]\r\n")
|
||||
d.expect("Mail!")
|
||||
d.send("OFF\r")
|
||||
d.expect("Thank you for using CompuServe!")
|
||||
|
||||
d = cisLogin(e, "72000,2", "sysoppass1")
|
||||
d.expect("") // the banner came before the menu
|
||||
d.send("GO MAIL\r")
|
||||
d.expect("CompuServe Mail Main Menu")
|
||||
d.expect(" 1 READ mail, 1 message pending")
|
||||
d.expect("Enter choice !")
|
||||
d.send("SET MODE COMMAND\r")
|
||||
d.expect("Mail!")
|
||||
d.send("SCAN\r")
|
||||
d.expect(" 1 alice/Testing\r\n")
|
||||
d.expect("Mail!")
|
||||
d.send("read all\r")
|
||||
d.expect("Date: ")
|
||||
d.expect("\r\nFrom: alice [72000,1]\r\nSubj: Testing\r\n\r\nHello from Mail.\r\n")
|
||||
d.expect("Action!")
|
||||
d.send("\r")
|
||||
d.expect("Mail!")
|
||||
d.send("SCAN\r")
|
||||
d.expect("No messages pending")
|
||||
d.expect("Mail!")
|
||||
d.send("DOW SAVED /PROTO:B\r")
|
||||
d.expect("1 message and ")
|
||||
d.expect(" characters ready for download\r\n")
|
||||
term := xfer.NewBLink(d.port())
|
||||
if err := term.AnswerENQ(&xfer.BParams{WS: 1, WR: 1, BS: 8, CM: xfer.CheckCRC16}); err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
var got bytes.Buffer
|
||||
if err := term.Terminal(func(string, bool) (io.Writer, error) { return &got, nil }, nil); err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
d.got = term.Rest()
|
||||
if !strings.Contains(got.String(), "Subj: Testing\r\n\r\nHello from Mail.\r\n") {
|
||||
t.Errorf("downloaded %q", got.String())
|
||||
}
|
||||
d.expect("*** File Transfer Completed! ***")
|
||||
d.expect("Mail!")
|
||||
|
||||
// TAPCIS's upload of a reply
|
||||
d.send("UPL/PRO:B/TYP:ASCII MAIL%.TMP\r")
|
||||
d.expect("MAIL%.TMP\r\n")
|
||||
term = xfer.NewBLink(d.port())
|
||||
if err := term.AnswerENQ(nil); err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
if err := term.Terminal(nil, func(string) (io.Reader, error) {
|
||||
return strings.NewReader("Got it.\r\nThanks.\r\n"), nil
|
||||
}); err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
d.got = term.Rest()
|
||||
d.expect("Send to (Name or User ID): ")
|
||||
d.send(">INTERNET:72000.1@compuserve.com\r")
|
||||
d.expect("Subject: ")
|
||||
d.send("Re: Testing\r")
|
||||
d.expect("Send? (Y or N)! ")
|
||||
d.send("y\r")
|
||||
d.expect("Message sent to alice [72000,1]")
|
||||
d.expect("Mail!")
|
||||
d.send("READ SAVED\r")
|
||||
d.expect("Hello from Mail.")
|
||||
d.expect("Action!")
|
||||
d.send("DELETE\r")
|
||||
d.expect("Message deleted")
|
||||
d.expect("Mail!")
|
||||
d.send("EXIT\r")
|
||||
d.expect("Enter choice !")
|
||||
d.send("OFF\r")
|
||||
d.expect("Thank you for using CompuServe!")
|
||||
|
||||
// alice's mode was kept: straight to "Mail!", and the reply is there
|
||||
d = cisLogin(e, "72000,1", "alicepass1")
|
||||
d.send("GO MAIL\r")
|
||||
d.expect("1 message pending")
|
||||
d.expect("Mail!")
|
||||
d.send("REA\r")
|
||||
d.expect("From: sysop [72000,2]\r\nSubj: Re: Testing\r\n\r\nGot it.\r\nThanks.\r\n")
|
||||
d.expect("Action!")
|
||||
d.send("OFF\r")
|
||||
d.expect("Thank you for using CompuServe!")
|
||||
}
|
||||
Reference in new issue
Block a user