ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/proj/trunk/IMAPHandler/Tester.cpp
(Generate patch)

Comparing trunk/IMAPHandler/Tester.cpp (file contents):
Revision 111 by douglas, 2003-03-31T21:07:30-08:00 vs.
Revision 113 by douglas, 2003-03-31T22:44:44-08:00

# Line 15 | Line 15 | int main(int argc, char* argv[])
15  
16          IMAPHandler tester("imap.myrealbox.com", false);
17  
18 +        tester.capability();
19 +        tester.starttls();
20 +        tester.capability();
21 +        tester.noop();
22 +
23 +        char* login = new char[32 + 1];
24 +        char* password = new char[32 + 1];
25 +
26 +        cout << "login: " << flush;
27 +        cin.getline(login, 32);
28 +        cout << "password: " << flush;
29 +        cin.getline(password, 32);
30 +
31 +        tester.login(string(login) + ' ' + password);
32 +
33 +        memset(login, 0, strlen(login));
34 +        memset(password, 0, strlen(password));
35 +
36 +        delete [] login;
37 +        delete [] password;
38 +
39 +        cout << tester.list("\"\" *");
40 +
41 +        tester.noop();
42 +        tester.logout();
43 +
44          return 0;
45   }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines