forked from Radmind/radmind
-
Notifications
You must be signed in to change notification settings - Fork 1
/
SPEC
63 lines (43 loc) · 1.51 KB
/
SPEC
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
Copyright (c) 2003 Regents of The University of Michigan.
All Rights Reserved. See COPYRIGHT.
Response codes of x0x are for general commands, e.g. QUIT, NOOP. x3x
are for STAT, x4x are for RETR, x5x for STOR.
BANNER
QUIT causes the server to close the connection.
C: QUIT "\r\n"
S: 201 QUIT OK, closing connection "\r\n"
NOOP does nothing, but should generate a valid response.
C: NOOP "\r\n"
S: 202 NOOP OK "\r\n"
All of STAT, RETR, and STOR take similar arguments.
<path-description> ::= "COMMAND" |
"COMMAND" <command-name> |
"TRANSCRIPT" <transcript-name> |
"SPECIAL" <path> |
"FILE" <transcript-name> <path>
<path> ::= encoded ascii blah blah blah
STAT does not allow a "FILE" <path-description>.
C: STAT <path-description> "\r\n"
S: 230 Returning STAT information "\r\n"
S: f <path> <mode> <uid> <gid> <modified-time> <size> <checksum> "\r\n"
RETR
C: RETR <path-decription> "\r\n"
S: 240 Retrieving file "\r\n"
S: <size> "\r\n"
S: <size bytes of file data>
S: ".\r\n"
STOR
C: STOR <path-decription> "\r\n"
S: 350 Storing file "\r\n"
C: <size> "\r\n"
C: <size bytes of file data>
C: ".\r\n"
S: 250 File stored "\r\n"
AUTH works per rfc2222 SASL.
COMPress
C: COMP <compression> [optional-data] "\r\n"
S: 320 Ready to start "\r\n"
S: 220 <compression> compression [optional-string] enabled "\r\n"
REPOrt an event on the client
C: REPO <event-to-report> <report-details> "\r\n"
S: 215 Report successful "\r\n"