Mercurial > emacs
annotate lisp/gnus/pop3.el @ 24307:6909b106c5c6
(ps-mule-font-info-database-default): Set the initial
value to ps-mule-font-info-database-latin.
author | Kenichi Handa <handa@m17n.org> |
---|---|
date | Sat, 13 Feb 1999 01:47:07 +0000 |
parents | dd68893482a9 |
children | 15fc6acbae7a |
rev | line source |
---|---|
17493 | 1 ;;; pop3.el --- Post Office Protocol (RFC 1460) interface |
2 | |
19969
5f1ab3dd344d
*** empty log message ***
Lars Magne Ingebrigtsen <larsi@gnus.org>
parents:
19633
diff
changeset
|
3 ;; Copyright (C) 1996,1997 Free Software Foundation, Inc. |
17493 | 4 |
5 ;; Author: Richard L. Pieri <ratinox@peorth.gweep.net> | |
6 ;; Keywords: mail, pop3 | |
19969
5f1ab3dd344d
*** empty log message ***
Lars Magne Ingebrigtsen <larsi@gnus.org>
parents:
19633
diff
changeset
|
7 ;; Version: 1.3g |
17493 | 8 |
9 ;; This file is part of GNU Emacs. | |
10 | |
11 ;; GNU Emacs is free software; you can redistribute it and/or modify | |
12 ;; it under the terms of the GNU General Public License as published by | |
13 ;; the Free Software Foundation; either version 2, or (at your option) | |
14 ;; any later version. | |
15 | |
16 ;; GNU Emacs is distributed in the hope that it will be useful, | |
17 ;; but WITHOUT ANY WARRANTY; without even the implied warranty of | |
18 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
19 ;; GNU General Public License for more details. | |
20 | |
21 ;; You should have received a copy of the GNU General Public License | |
22 ;; along with GNU Emacs; see the file COPYING. If not, write to the | |
23 ;; Free Software Foundation, Inc., 59 Temple Place - Suite 330, | |
24 ;; Boston, MA 02111-1307, USA. | |
25 | |
26 ;;; Commentary: | |
27 | |
28 ;; Most of the standard Post Office Protocol version 3 (RFC 1460) commands | |
29 ;; are implemented. The LIST command has not been implemented due to lack | |
30 ;; of actual usefulness. | |
31 ;; The optional POP3 command TOP has not been implemented. | |
32 | |
33 ;; This program was inspired by Kyle E. Jones's vm-pop program. | |
34 | |
35 ;;; Code: | |
36 | |
37 (require 'mail-utils) | |
38 (provide 'pop3) | |
39 | |
19969
5f1ab3dd344d
*** empty log message ***
Lars Magne Ingebrigtsen <larsi@gnus.org>
parents:
19633
diff
changeset
|
40 (defconst pop3-version "1.3g") |
17493 | 41 |
42 (defvar pop3-maildrop (or user-login-name (getenv "LOGNAME") (getenv "USER") nil) | |
43 "*POP3 maildrop.") | |
44 (defvar pop3-mailhost (or (getenv "MAILHOST") nil) | |
45 "*POP3 mailhost.") | |
46 (defvar pop3-port 110 | |
47 "*POP3 port.") | |
48 | |
49 (defvar pop3-password-required t | |
50 "*Non-nil if a password is required when connecting to POP server.") | |
51 (defvar pop3-password nil | |
52 "*Password to use when connecting to POP server.") | |
53 | |
54 (defvar pop3-authentication-scheme 'pass | |
55 "*POP3 authentication scheme. | |
56 Defaults to 'pass, for the standard USER/PASS authentication. Other valid | |
57 values are 'apop.") | |
58 | |
59 (defvar pop3-timestamp nil | |
60 "Timestamp returned when initially connected to the POP server. | |
61 Used for APOP authentication.") | |
62 | |
19595
7184c8337963
(pop3-movemail-file-coding-system): Append it for
Kenichi Handa <handa@m17n.org>
parents:
17493
diff
changeset
|
63 (defvar pop3-movemail-file-coding-system nil |
7184c8337963
(pop3-movemail-file-coding-system): Append it for
Kenichi Handa <handa@m17n.org>
parents:
17493
diff
changeset
|
64 "Crashbox made by pop3-movemail with this coding system.") |
7184c8337963
(pop3-movemail-file-coding-system): Append it for
Kenichi Handa <handa@m17n.org>
parents:
17493
diff
changeset
|
65 |
17493 | 66 (defvar pop3-read-point nil) |
67 (defvar pop3-debug nil) | |
68 | |
69 (defun pop3-movemail (&optional crashbox) | |
70 "Transfer contents of a maildrop to the specified CRASHBOX." | |
71 (or crashbox (setq crashbox (expand-file-name "~/.crashbox"))) | |
72 (let* ((process (pop3-open-server pop3-mailhost pop3-port)) | |
73 (crashbuf (get-buffer-create " *pop3-retr*")) | |
74 (n 1) | |
75 message-count) | |
76 ;; for debugging only | |
77 (if pop3-debug (switch-to-buffer (process-buffer process))) | |
78 (cond ((equal 'apop pop3-authentication-scheme) | |
79 (pop3-apop process pop3-maildrop)) | |
80 ((equal 'pass pop3-authentication-scheme) | |
81 (pop3-user process pop3-maildrop) | |
82 (pop3-pass process)) | |
83 (t (error "Invalid POP3 authentication scheme."))) | |
84 (setq message-count (car (pop3-stat process))) | |
85 (while (<= n message-count) | |
86 (message (format "Retrieving message %d of %d from %s..." | |
87 n message-count pop3-mailhost)) | |
88 (pop3-retr process n crashbuf) | |
89 (save-excursion | |
90 (set-buffer crashbuf) | |
19595
7184c8337963
(pop3-movemail-file-coding-system): Append it for
Kenichi Handa <handa@m17n.org>
parents:
17493
diff
changeset
|
91 (let ((coding-system-for-write pop3-movemail-file-coding-system)) |
7184c8337963
(pop3-movemail-file-coding-system): Append it for
Kenichi Handa <handa@m17n.org>
parents:
17493
diff
changeset
|
92 (append-to-file (point-min) (point-max) crashbox)) |
17493 | 93 (set-buffer (process-buffer process)) |
94 (while (> (buffer-size) 5000) | |
95 (goto-char (point-min)) | |
96 (forward-line 50) | |
97 (delete-region (point-min) (point)))) | |
98 (pop3-dele process n) | |
99 (setq n (+ 1 n)) | |
100 (if pop3-debug (sit-for 1) (sit-for 0.1)) | |
101 ) | |
102 (pop3-quit process) | |
103 (kill-buffer crashbuf) | |
104 ) | |
105 ) | |
106 | |
107 (defun pop3-open-server (mailhost port) | |
108 "Open TCP connection to MAILHOST. | |
109 Returns the process associated with the connection." | |
110 (let ((process-buffer | |
111 (get-buffer-create (format "trace of POP session to %s" mailhost))) | |
23403
789be3d7ef2d
(pop3-open-server): Set process-coding-system-alist around open-network-stream.
Richard M. Stallman <rms@gnu.org>
parents:
19969
diff
changeset
|
112 (process) |
23435
dd68893482a9
(pop3-open-server): Bind coding-system-for-read and ...-for-write.
Richard M. Stallman <rms@gnu.org>
parents:
23403
diff
changeset
|
113 (coding-system-for-read 'no-conversion) |
dd68893482a9
(pop3-open-server): Bind coding-system-for-read and ...-for-write.
Richard M. Stallman <rms@gnu.org>
parents:
23403
diff
changeset
|
114 (coding-system-for-write 'no-conversion)) |
17493 | 115 (save-excursion |
116 (set-buffer process-buffer) | |
117 (erase-buffer)) | |
118 (setq process | |
119 (open-network-stream "POP" process-buffer mailhost port)) | |
120 (setq pop3-read-point (point-min)) | |
121 (let ((response (pop3-read-response process t))) | |
122 (setq pop3-timestamp | |
123 (substring response (or (string-match "<" response) 0) | |
124 (+ 1 (or (string-match ">" response) -1))))) | |
125 process | |
126 )) | |
127 | |
128 ;; Support functions | |
129 | |
130 (defun pop3-process-filter (process output) | |
131 (save-excursion | |
132 (set-buffer (process-buffer process)) | |
133 (goto-char (point-max)) | |
134 (insert output))) | |
135 | |
136 (defun pop3-send-command (process command) | |
137 (set-buffer (process-buffer process)) | |
138 (goto-char (point-max)) | |
139 ;; (if (= (aref command 0) ?P) | |
140 ;; (insert "PASS <omitted>\r\n") | |
141 ;; (insert command "\r\n")) | |
142 (setq pop3-read-point (point)) | |
143 (goto-char (point-max)) | |
144 (process-send-string process command) | |
145 (process-send-string process "\r\n") | |
146 ) | |
147 | |
148 (defun pop3-read-response (process &optional return) | |
149 "Read the response from the server. | |
150 Return the response string if optional second argument is non-nil." | |
151 (let ((case-fold-search nil) | |
152 match-end) | |
153 (save-excursion | |
154 (set-buffer (process-buffer process)) | |
155 (goto-char pop3-read-point) | |
156 (while (not (search-forward "\r\n" nil t)) | |
19969
5f1ab3dd344d
*** empty log message ***
Lars Magne Ingebrigtsen <larsi@gnus.org>
parents:
19633
diff
changeset
|
157 (accept-process-output process 3) |
17493 | 158 (goto-char pop3-read-point)) |
159 (setq match-end (point)) | |
160 (goto-char pop3-read-point) | |
161 (if (looking-at "-ERR") | |
162 (error (buffer-substring (point) (- match-end 2))) | |
163 (if (not (looking-at "+OK")) | |
164 (progn (setq pop3-read-point match-end) nil) | |
165 (setq pop3-read-point match-end) | |
166 (if return | |
167 (buffer-substring (point) match-end) | |
168 t) | |
169 ))))) | |
170 | |
171 (defun pop3-string-to-list (string &optional regexp) | |
172 "Chop up a string into a list." | |
173 (let ((list) | |
174 (regexp (or regexp " ")) | |
175 (string (if (string-match "\r" string) | |
176 (substring string 0 (match-beginning 0)) | |
177 string))) | |
178 (store-match-data nil) | |
179 (while string | |
180 (if (string-match regexp string) | |
181 (setq list (cons (substring string 0 (- (match-end 0) 1)) list) | |
182 string (substring string (match-end 0))) | |
183 (setq list (cons string list) | |
184 string nil))) | |
185 (nreverse list))) | |
186 | |
187 (defvar pop3-read-passwd nil) | |
188 (defun pop3-read-passwd (prompt) | |
189 (if (not pop3-read-passwd) | |
190 (if (load "passwd" t) | |
191 (setq pop3-read-passwd 'read-passwd) | |
192 (autoload 'ange-ftp-read-passwd "ange-ftp") | |
193 (setq pop3-read-passwd 'ange-ftp-read-passwd))) | |
194 (funcall pop3-read-passwd prompt)) | |
195 | |
196 (defun pop3-clean-region (start end) | |
197 (setq end (set-marker (make-marker) end)) | |
198 (save-excursion | |
199 (goto-char start) | |
200 (while (and (< (point) end) (search-forward "\r\n" end t)) | |
201 (replace-match "\n" t t)) | |
202 (goto-char start) | |
203 (while (and (< (point) end) (re-search-forward "^\\." end t)) | |
204 (replace-match "" t t) | |
205 (forward-char))) | |
206 (set-marker end nil)) | |
207 | |
208 (defun pop3-munge-message-separator (start end) | |
209 "Check to see if a message separator exists. If not, generate one." | |
19969
5f1ab3dd344d
*** empty log message ***
Lars Magne Ingebrigtsen <larsi@gnus.org>
parents:
19633
diff
changeset
|
210 (if (not (fboundp 'message-make-date)) (autoload 'message-make-date "message")) |
17493 | 211 (save-excursion |
212 (save-restriction | |
213 (narrow-to-region start end) | |
214 (goto-char (point-min)) | |
215 (if (not (or (looking-at "From .?") ; Unix mail | |
216 (looking-at "\001\001\001\001\n") ; MMDF | |
217 (looking-at "BABYL OPTIONS:") ; Babyl | |
218 )) | |
219 (let ((from (mail-strip-quoted-names (mail-fetch-field "From"))) | |
19969
5f1ab3dd344d
*** empty log message ***
Lars Magne Ingebrigtsen <larsi@gnus.org>
parents:
19633
diff
changeset
|
220 (date (pop3-string-to-list (or (mail-fetch-field "Date") |
5f1ab3dd344d
*** empty log message ***
Lars Magne Ingebrigtsen <larsi@gnus.org>
parents:
19633
diff
changeset
|
221 (message-make-date)))) |
17493 | 222 (From_)) |
223 ;; sample date formats I have seen | |
224 ;; Date: Tue, 9 Jul 1996 09:04:21 -0400 (EDT) | |
225 ;; Date: 08 Jul 1996 23:22:24 -0400 | |
226 ;; should be | |
227 ;; Tue Jul 9 09:04:21 1996 | |
228 (setq date | |
229 (cond ((string-match "[A-Z]" (nth 0 date)) | |
230 (format "%s %s %s %s %s" | |
231 (nth 0 date) (nth 2 date) (nth 1 date) | |
232 (nth 4 date) (nth 3 date))) | |
233 (t | |
234 ;; this really needs to be better but I don't feel | |
235 ;; like writing a date to day converter. | |
236 (format "Sun %s %s %s %s" | |
237 (nth 1 date) (nth 0 date) | |
238 (nth 3 date) (nth 2 date))) | |
239 )) | |
240 (setq From_ (format "\nFrom %s %s\n" from date)) | |
241 (while (string-match "," From_) | |
242 (setq From_ (concat (substring From_ 0 (match-beginning 0)) | |
243 (substring From_ (match-end 0))))) | |
244 (goto-char (point-min)) | |
245 (insert From_)))))) | |
246 | |
247 ;; The Command Set | |
248 | |
249 ;; AUTHORIZATION STATE | |
250 | |
251 (defun pop3-user (process user) | |
252 "Send USER information to POP3 server." | |
253 (pop3-send-command process (format "USER %s" user)) | |
254 (let ((response (pop3-read-response process t))) | |
255 (if (not (and response (string-match "+OK" response))) | |
256 (error (format "USER %s not valid." user))))) | |
257 | |
258 (defun pop3-pass (process) | |
259 "Send authentication information to the server." | |
260 (let ((pass pop3-password)) | |
261 (if (and pop3-password-required (not pass)) | |
262 (setq pass | |
263 (pop3-read-passwd (format "Password for %s: " pop3-maildrop)))) | |
264 (if pass | |
265 (progn | |
266 (pop3-send-command process (format "PASS %s" pass)) | |
267 (let ((response (pop3-read-response process t))) | |
268 (if (not (and response (string-match "+OK" response))) | |
269 (pop3-quit process))))) | |
270 )) | |
271 | |
19633
25317a11d7a1
(pop3-md5): New function.
Richard M. Stallman <rms@gnu.org>
parents:
19595
diff
changeset
|
272 (defvar pop3-md5-program "md5" |
25317a11d7a1
(pop3-md5): New function.
Richard M. Stallman <rms@gnu.org>
parents:
19595
diff
changeset
|
273 "*Program to encode its input in MD5.") |
25317a11d7a1
(pop3-md5): New function.
Richard M. Stallman <rms@gnu.org>
parents:
19595
diff
changeset
|
274 |
25317a11d7a1
(pop3-md5): New function.
Richard M. Stallman <rms@gnu.org>
parents:
19595
diff
changeset
|
275 (defun pop3-md5 (string) |
25317a11d7a1
(pop3-md5): New function.
Richard M. Stallman <rms@gnu.org>
parents:
19595
diff
changeset
|
276 (with-temp-buffer |
25317a11d7a1
(pop3-md5): New function.
Richard M. Stallman <rms@gnu.org>
parents:
19595
diff
changeset
|
277 (insert string) |
25317a11d7a1
(pop3-md5): New function.
Richard M. Stallman <rms@gnu.org>
parents:
19595
diff
changeset
|
278 (call-process-region (point-min) (point-max) |
25317a11d7a1
(pop3-md5): New function.
Richard M. Stallman <rms@gnu.org>
parents:
19595
diff
changeset
|
279 (or shell-file-name "/bin/sh") |
25317a11d7a1
(pop3-md5): New function.
Richard M. Stallman <rms@gnu.org>
parents:
19595
diff
changeset
|
280 t (current-buffer) nil |
25317a11d7a1
(pop3-md5): New function.
Richard M. Stallman <rms@gnu.org>
parents:
19595
diff
changeset
|
281 "-c" pop3-md5-program) |
25317a11d7a1
(pop3-md5): New function.
Richard M. Stallman <rms@gnu.org>
parents:
19595
diff
changeset
|
282 ;; The meaningful output is the first 32 characters. |
25317a11d7a1
(pop3-md5): New function.
Richard M. Stallman <rms@gnu.org>
parents:
19595
diff
changeset
|
283 ;; Don't return the newline that follows them! |
25317a11d7a1
(pop3-md5): New function.
Richard M. Stallman <rms@gnu.org>
parents:
19595
diff
changeset
|
284 (buffer-substring (point-min) (+ (point-min) 32)))) |
25317a11d7a1
(pop3-md5): New function.
Richard M. Stallman <rms@gnu.org>
parents:
19595
diff
changeset
|
285 |
17493 | 286 (defun pop3-apop (process user) |
287 "Send alternate authentication information to the server." | |
288 (let ((pass pop3-password)) | |
289 (if (and pop3-password-required (not pass)) | |
290 (setq pass | |
291 (pop3-read-passwd (format "Password for %s: " pop3-maildrop)))) | |
292 (if pass | |
19633
25317a11d7a1
(pop3-md5): New function.
Richard M. Stallman <rms@gnu.org>
parents:
19595
diff
changeset
|
293 (let ((hash (pop3-md5 (concat pop3-timestamp pass)))) |
17493 | 294 (pop3-send-command process (format "APOP %s %s" user hash)) |
295 (let ((response (pop3-read-response process t))) | |
296 (if (not (and response (string-match "+OK" response))) | |
297 (pop3-quit process))))) | |
298 )) | |
299 | |
300 ;; TRANSACTION STATE | |
301 | |
302 (defun pop3-stat (process) | |
303 "Return the number of messages in the maildrop and the maildrop's size." | |
304 (pop3-send-command process "STAT") | |
305 (let ((response (pop3-read-response process t))) | |
306 (list (string-to-int (nth 1 (pop3-string-to-list response))) | |
307 (string-to-int (nth 2 (pop3-string-to-list response)))) | |
308 )) | |
309 | |
310 (defun pop3-list (process &optional msg) | |
311 "Scan listing of available messages. | |
312 This function currently does nothing.") | |
313 | |
314 (defun pop3-retr (process msg crashbuf) | |
315 "Retrieve message-id MSG to buffer CRASHBUF." | |
316 (pop3-send-command process (format "RETR %s" msg)) | |
317 (pop3-read-response process) | |
318 (let ((start pop3-read-point) end) | |
319 (save-excursion | |
320 (set-buffer (process-buffer process)) | |
321 (while (not (re-search-forward "^\\.\r\n" nil t)) | |
19969
5f1ab3dd344d
*** empty log message ***
Lars Magne Ingebrigtsen <larsi@gnus.org>
parents:
19633
diff
changeset
|
322 (accept-process-output process 3) |
17493 | 323 ;; bill@att.com ... to save wear and tear on the heap |
324 (if (> (buffer-size) 20000) (sleep-for 1)) | |
325 (if (> (buffer-size) 50000) (sleep-for 1)) | |
326 (if (> (buffer-size) 100000) (sleep-for 1)) | |
327 (if (> (buffer-size) 200000) (sleep-for 1)) | |
328 (if (> (buffer-size) 500000) (sleep-for 1)) | |
329 ;; bill@att.com | |
330 (goto-char start)) | |
331 (setq pop3-read-point (point-marker)) | |
332 ;; this code does not seem to work for some POP servers... | |
333 ;; and I cannot figure out why not. | |
334 ; (goto-char (match-beginning 0)) | |
335 ; (backward-char 2) | |
336 ; (if (not (looking-at "\r\n")) | |
337 ; (insert "\r\n")) | |
338 ; (re-search-forward "\\.\r\n") | |
339 (goto-char (match-beginning 0)) | |
340 (setq end (point-marker)) | |
341 (pop3-clean-region start end) | |
342 (pop3-munge-message-separator start end) | |
343 (save-excursion | |
344 (set-buffer crashbuf) | |
345 (erase-buffer)) | |
346 (copy-to-buffer crashbuf start end) | |
347 (delete-region start end) | |
348 ))) | |
349 | |
350 (defun pop3-dele (process msg) | |
351 "Mark message-id MSG as deleted." | |
352 (pop3-send-command process (format "DELE %s" msg)) | |
353 (pop3-read-response process)) | |
354 | |
355 (defun pop3-noop (process msg) | |
356 "No-operation." | |
357 (pop3-send-command process "NOOP") | |
358 (pop3-read-response process)) | |
359 | |
360 (defun pop3-last (process) | |
361 "Return highest accessed message-id number for the session." | |
362 (pop3-send-command process "LAST") | |
363 (let ((response (pop3-read-response process t))) | |
364 (string-to-int (nth 1 (pop3-string-to-list response))) | |
365 )) | |
366 | |
367 (defun pop3-rset (process) | |
368 "Remove all delete marks from current maildrop." | |
369 (pop3-send-command process "RSET") | |
370 (pop3-read-response process)) | |
371 | |
372 ;; UPDATE | |
373 | |
374 (defun pop3-quit (process) | |
375 "Close connection to POP3 server. | |
376 Tell server to remove all messages marked as deleted, unlock the maildrop, | |
377 and close the connection." | |
378 (pop3-send-command process "QUIT") | |
379 (pop3-read-response process t) | |
380 (if process | |
381 (save-excursion | |
382 (set-buffer (process-buffer process)) | |
383 (goto-char (point-max)) | |
384 (delete-process process)))) | |
385 | |
386 ;; Summary of POP3 (Post Office Protocol version 3) commands and responses | |
387 | |
388 ;;; AUTHORIZATION STATE | |
389 | |
390 ;; Initial TCP connection | |
391 ;; Arguments: none | |
392 ;; Restrictions: none | |
393 ;; Possible responses: | |
394 ;; +OK [POP3 server ready] | |
395 | |
396 ;; USER name | |
397 ;; Arguments: a server specific user-id (required) | |
398 ;; Restrictions: authorization state [after unsuccessful USER or PASS | |
399 ;; Possible responses: | |
400 ;; +OK [valid user-id] | |
401 ;; -ERR [invalid user-id] | |
402 | |
403 ;; PASS string | |
404 ;; Arguments: a server/user-id specific password (required) | |
405 ;; Restrictions: authorization state, after successful USER | |
406 ;; Possible responses: | |
407 ;; +OK [maildrop locked and ready] | |
408 ;; -ERR [invalid password] | |
409 ;; -ERR [unable to lock maildrop] | |
410 | |
411 ;;; TRANSACTION STATE | |
412 | |
413 ;; STAT | |
414 ;; Arguments: none | |
415 ;; Restrictions: transaction state | |
416 ;; Possible responses: | |
417 ;; +OK nn mm [# of messages, size of maildrop] | |
418 | |
419 ;; LIST [msg] | |
420 ;; Arguments: a message-id (optional) | |
421 ;; Restrictions: transaction state; msg must not be deleted | |
422 ;; Possible responses: | |
423 ;; +OK [scan listing follows] | |
424 ;; -ERR [no such message] | |
425 | |
426 ;; RETR msg | |
427 ;; Arguments: a message-id (required) | |
428 ;; Restrictions: transaction state; msg must not be deleted | |
429 ;; Possible responses: | |
430 ;; +OK [message contents follow] | |
431 ;; -ERR [no such message] | |
432 | |
433 ;; DELE msg | |
434 ;; Arguments: a message-id (required) | |
435 ;; Restrictions: transaction state; msg must not be deleted | |
436 ;; Possible responses: | |
437 ;; +OK [message deleted] | |
438 ;; -ERR [no such message] | |
439 | |
440 ;; NOOP | |
441 ;; Arguments: none | |
442 ;; Restrictions: transaction state | |
443 ;; Possible responses: | |
444 ;; +OK | |
445 | |
446 ;; LAST | |
447 ;; Arguments: none | |
448 ;; Restrictions: transaction state | |
449 ;; Possible responses: | |
450 ;; +OK nn [highest numbered message accessed] | |
451 | |
452 ;; RSET | |
453 ;; Arguments: none | |
454 ;; Restrictions: transaction state | |
455 ;; Possible responses: | |
456 ;; +OK [all delete marks removed] | |
457 | |
458 ;;; UPDATE STATE | |
459 | |
460 ;; QUIT | |
461 ;; Arguments: none | |
462 ;; Restrictions: none | |
463 ;; Possible responses: | |
464 ;; +OK [TCP connection closed] |