File size: 3,391 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 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 |
{
"states": [
"AUTHORIZATION",
"TRANSACTION",
"UPDATE"
],
"initial_state": "AUTHORIZATION",
"final_states": [
"UPDATE"
],
"transitions": [
{
"from": "AUTHORIZATION",
"event": "send greeting",
"action": "reply +OK POP3 server ready",
"to": "AUTHORIZATION"
},
{
"from": "AUTHORIZATION",
"event": "receive USER",
"action": "reply request password",
"to": "AUTHORIZATION"
},
{
"from": "AUTHORIZATION",
"event": "receive PASS",
"action": "cond check password",
"to": "AUTHORIZATION"
},
{
"from": "AUTHORIZATION",
"event": "cond valid USER/PASS",
"action": "set authenticated true",
"to": "TRANSACTION"
},
{
"from": "AUTHORIZATION",
"event": "receive APOP",
"action": "cond check digest",
"to": "AUTHORIZATION"
},
{
"from": "AUTHORIZATION",
"event": "cond valid APOP",
"action": "set authenticated true",
"to": "TRANSACTION"
},
{
"from": "AUTHORIZATION",
"event": "cond open maildrop failed",
"action": "reply -ERR and release lock",
"to": "AUTHORIZATION"
},
{
"from": "AUTHORIZATION",
"event": "receive QUIT",
"action": "reply +OK and close TCP",
"to": "UPDATE"
},
{
"from": "TRANSACTION",
"event": "receive STAT",
"action": "reply message count size",
"to": "TRANSACTION"
},
{
"from": "TRANSACTION",
"event": "receive LIST",
"action": "reply scan listing",
"to": "TRANSACTION"
},
{
"from": "TRANSACTION",
"event": "receive RETR",
"action": "reply full message",
"to": "TRANSACTION"
},
{
"from": "TRANSACTION",
"event": "receive DELE",
"action": "set message deleted",
"to": "TRANSACTION"
},
{
"from": "TRANSACTION",
"event": "receive NOOP",
"action": "reply OK",
"to": "TRANSACTION"
},
{
"from": "TRANSACTION",
"event": "receive RSET",
"action": "reset deleted flags",
"to": "TRANSACTION"
},
{
"from": "TRANSACTION",
"event": "receive QUIT",
"action": "set session closing",
"to": "UPDATE"
},
{
"from": "UPDATE",
"event": "cond deleted messages exist",
"action": "delete marked messages",
"to": "UPDATE"
},
{
"from": "UPDATE",
"event": "cond cleanup complete",
"action": "release lock and close TCP",
"to": "UPDATE"
},
{
"from": "UPDATE",
"event": "timeout 5s",
"action": "close TCP connection",
"to": "UPDATE"
}
]
}
|