File size: 2,111 Bytes
c3edc81
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
{
  "states": [
    "Connection_Established_Server_Greeting",
    "Not_Authenticated",
    "Authenticated",
    "Selected",
    "Logout"
  ],
  "initial_state": "Connection_Established_Server_Greeting",
  "final_states": [
    "Logout"
  ],
  "transitions": [
    {
      "from": "Connection_Established_Server_Greeting",
      "event": "connect without pre-authentication",
      "action": "Send OK greeting",
      "to": "Not_Authenticated"
    },
    {
      "from": "Connection_Established_Server_Greeting",
      "event": "Connects with pre-authentication",
      "action": "Send PREAUTH greeting",
      "to": "Authenticated"
    },
    {
      "from": "Connection_Established_Server_Greeting",
      "event": "Connection reject",
      "action": "Send BYE greeting",
      "to": "Logout"
    },
    {
      "from": "Not_Authenticated",
      "event": "Sends LOGIN or AUTHENTICATE command",
      "action": "Sends LOGIN or AUTHENTICATE command",
      "to": "Authenticated"
    },
    {
      "from": "Not_Authenticated",
      "event": "Sends LOGOUT or server shutdown",
      "action": "Close connection",
      "to": "Logout"
    },
    {
      "from": "Authenticated",
      "event": "Sends SELECT or EXAMINE command",
      "action": "Sends SELECT or EXAMINE command",
      "to": "Selected"
    },
    {
      "from": "Authenticated",
      "event": "Sends LOGOUT or server shutdown",
      "action": "Close connection",
      "to": "Logout"
    },
    {
      "from": "Authenticated",
      "event": "Send requests mailbox listing",
      "action": "List mailbox",
      "to": "Authenticated"
    },
    {
      "from": "Selected",
      "event": "Sends CLOSE, UNSELECT, or SELECT/EXAMINE fails",
      "action": "Sends CLOSE, UNSELECT, or SELECT/EXAMINE fails",
      "to": "Authenticated"
    },
    {
      "from": "Selected",
      "event": "Client manages messages",
      "action": "Read/write/delete messages",
      "to": "Selected"
    },
    {
      "from": "Selected",
      "event": "Sends LOGOUT or server shutdown",
      "action": "Close connection",
      "to": "Logout"
    }
  ]
}