comparison lisp/gnus/pop3.el @ 26944:64597461b498

(pop3-movemail-file-coding-system): Doc fix. (pop3-movemail): Replace binding of pop3-movemail-file-coding-system.
author Dave Love <fx@gnu.org>
date Sun, 19 Dec 1999 00:37:06 +0000
parents 08a36c7a0a52
children 3ff1b0a2c6b7
comparison
equal deleted inserted replaced
26943:701de01758bc 26944:64597461b498
59 (defvar pop3-timestamp nil 59 (defvar pop3-timestamp nil
60 "Timestamp returned when initially connected to the POP server. 60 "Timestamp returned when initially connected to the POP server.
61 Used for APOP authentication.") 61 Used for APOP authentication.")
62 62
63 (defvar pop3-movemail-file-coding-system nil 63 (defvar pop3-movemail-file-coding-system nil
64 "Crashbox made by `pop3-movemail' with this coding system.") 64 "Coding system for the crashbox made by `pop3-movemail'.")
65 65
66 (defvar pop3-read-point nil) 66 (defvar pop3-read-point nil)
67 (defvar pop3-debug nil) 67 (defvar pop3-debug nil)
68 68
69 (defun pop3-movemail (&optional crashbox) 69 (defun pop3-movemail (&optional crashbox)
93 (message (format "Retrieving message %d of %d from %s..." 93 (message (format "Retrieving message %d of %d from %s..."
94 n message-count pop3-mailhost)) 94 n message-count pop3-mailhost))
95 (pop3-retr process n crashbuf) 95 (pop3-retr process n crashbuf)
96 (save-excursion 96 (save-excursion
97 (set-buffer crashbuf) 97 (set-buffer crashbuf)
98 (write-region (point-min) (point-max) crashbox t 'nomesg) 98 (let ((coding-system-for-write pop3-movemail-file-coding-system))
99 (write-region (point-min) (point-max) crashbox t 'nomesg))
99 (set-buffer (process-buffer process)) 100 (set-buffer (process-buffer process))
100 (while (> (buffer-size) 5000) 101 (while (> (buffer-size) 5000)
101 (goto-char (point-min)) 102 (goto-char (point-min))
102 (forward-line 50) 103 (forward-line 50)
103 (delete-region (point-min) (point)))) 104 (delete-region (point-min) (point))))