メインコンテンツまでスキップ

I. DMSP プロトコル仕様

以下に、DMSP のブロックタイプと DMSP 操作をオブジェクト型ごとに列挙する。ここでも、「=>」はクライアントからリポジトリへ流れるブロックを、「<=」はリポジトリからクライアントへ流れるブロックを示す。

一般操作:

=> or <= 503 (abort-request) [why:str]
(no acknowledgement)

=> 504 (start-debug) []
<= 500 (ok) [] |
501 (failure) [why:str]

=> 505 (end-debug) []
<= 500 (ok) []

=> 506 (send-version) [version:card]
<= 500 (ok) [] |
501 (failure) [why:str]

=> 507 (log-message) [message:str]
<= 500 (ok) [] |
501 (failure) [why:str]

=> 508 (send-message) [message:seq[str]]
<= 500 (ok) [] |
501 (failure) [why:str]

ユーザ操作:

=> 600 (login) [name:str, password:str,
client:str, create-client-object?:bool
batch-mode-flag:bool]
<= 500 (ok) [] |
501 (failure) [why:str] |
705 (force-client-reset) []

=> 601 (logout) []
<= 500 (ok) []

=> 602 (add-user) [name:str, password:str]
<= 500 (ok) [] |
501 (failure) [why:str]

=> 603 (remove-user) [user:str]
<= 500 (ok) [] |
501 (failure) [why:str]

=> 604 (set-password) [old:str, new:str]
<= 500 (ok) [] |
501 (failure) [why:str]

クライアント操作:

=> 700 (list-clients) []
<= 701 (client-list) [client-list:seq[
rec[name:str], status:card]]

=> 702 (add-client) [client:str]
<= 500 (ok) [] |
501 (failure) [why:str]

=> 703 (remove-client) [client:str]
<= 500 (ok) [] |
501 (failure) [why:str]

=> 704 (reset-client) [client:str]
<= 500 (ok) [] |
501 (failure) [why:str]

メールボックス操作:

=> 800 (list-mailboxes) []
<= 801 (mailbox-list) [mailbox-list:seq[
rec[mailbox:str,
next-uid:lcard,
num-msgs:card,
num-unseen-msgs:card]]]

=> 802 (add-mailbox) [mailbox:str]
<= 500 (ok) [] |
501 (failure) [why:str]

=> 803 (remove-mailbox) [mailbox:str]
<= 500 (ok) [] |
501 (failure) [why:str]

=> 808 (expunge-mailbox) [mailbox:str]
<= 500 (ok) [] |
501 (failure) [why:str]

=> 809 (reset-mailbox) [mailbox:str]
<= 500 (ok) [] |
501 (failure) [why:str]

アドレス操作:

=> 804 (list-addresses) [mailbox:str]
<= 501 (failure) [why:str] |
805 (address-list) [address-list:seq[str]]

=> 806 (add-address) [mailbox:str, address:str]
<= 500 (ok) [] |
501 (failure) [why:str]

=> 807 (remove-address) [mailbox:str, address:str]
<= 500 (ok) [] |
501 (failure) [why:str]

メッセージ操作:

=> 1100 (get-descriptor-flags) [mailbox:str, uid:lcard]
<= 1101 (descriptor-flags) [flags:seq[bool]] |
   501 (failure) [why:str]

=> 1102 (get-descriptors) [mailbox:str,
                           low-uid:lcard,
                           high-uid:lcard]
<= 501 (failure) [why:str] |
   1103 (descriptor-list) [descriptor-list:seq[
          ch[
            expunged[uid:lcard],
            descriptor[rec[uid:lcard,
                           flags:seq[bool],
                           from-field:str,
                           to-field:str,
                           date-field:str,
                           subject-field:str,
                           nun-bytes:lcard,
                           num-lines:lcard]
                 ]]]]

=> 1105 (get-changed-descriptors) [mailbox:str,
                                   max-to-send:card]
<= 501 (failure) [why:str] |
   1103 (descriptor-list) [descriptor-list:seq[
          ch[
            expunged[uid:lcard],
            descriptor[rec[uid:lcard,
                           flags:seq[bool],
                           from-field:str,
                           to-field:str,
                           date-field:str,
                           subject-field:str,
                           num-bytes:lcard,
                           num-lines:lcard]
                ]]]]

=> 1106 (reset-changed-descriptors) [
                mailbox:str,
                start-uid:lcard,
                end-uid:lcard]
<= 500 (ok) [] |
   501 (failure) [why:str]

=> 1107 (get-message-text) [mailbox:str,
                            uid:lcard]
<= 501 (failure) [why:str] |
   1110 (message) [message:seq[str]]

=> 1108 (print-message) [mailbox:str,
                         uid:lcard,
                         printer-name:str]
<= 500 (ok) [] |
   501 (failure) [why:str]

=> 1109 (set-flag) [mailbox:str,
                    uid:lcard,
                    flag-number:card,
                    flag-setting:bool]
<= 500 (ok) [] |
   501 (failure) [why:str]

=> 1111 copy-message[source-mailbox:str,
                     target-mailbox:str,
                     source-uid:lcard]
<= 500 (ok) [] |
   501 (failure) [why:str]

番号順の DMSP ブロックタイプ

一般ブロックタイプ

ok                        500
failure 501
abort-request 503
start-debug 504
end-debug 505
send-version 506
log-message 507
send-message 508

ユーザ操作のブロックタイプ

login                     600
logout 601
add-user 602
remove-user 603
set-password 604

クライアント操作のブロックタイプ

list-clients              700
client-list 701
add-clien 702
remove-client 703
reset-client 704
force-client-reset 705

メールボックス操作のブロックタイプ

list-mailboxes            800
mailbox-list 801
add-mailbox 802
remove-mailbox 803
expunge-mailbox 808
reset-mailbox 809

アドレス操作のブロックタイプ

list-addresses            804
address-list 805
add-address 806
remove-address 807

メッセージ操作のブロックタイプ

get-descriptor-flags      1100
descriptor-flags 1101
get-descriptors 1102
descriptor-list 1103
get-changed-descriptors 1105
reset-changed-descriptors 1106
get-message-text 1107
print-message 1108
set-flag 1109
message 1110
copy-message 1111