aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Love1999-09-06 21:24:50 +0000
committerDave Love1999-09-06 21:24:50 +0000
commit8b9a64c2f8bf1ebfa1f0fbf9c0dd28f064089ab7 (patch)
treed779728a255995a1cecb0c73cc5426556e5af832
parent32a605b478e867eda2179b7cf673beb26f7b58b4 (diff)
downloademacs-8b9a64c2f8bf1ebfa1f0fbf9c0dd28f064089ab7.tar.gz
emacs-8b9a64c2f8bf1ebfa1f0fbf9c0dd28f064089ab7.zip
(rmail-read-password): Deleted.
(rmail-get-pop-password): Use read-password.
-rw-r--r--lisp/mail/rmail.el25
1 files changed, 1 insertions, 24 deletions
diff --git a/lisp/mail/rmail.el b/lisp/mail/rmail.el
index 4736e49cd66..04391b74cab 100644
--- a/lisp/mail/rmail.el
+++ b/lisp/mail/rmail.el
@@ -1453,29 +1453,6 @@ It returns t if it got any new messages."
1453 (setq files (cdr files))) 1453 (setq files (cdr files)))
1454 delete-files)) 1454 delete-files))
1455 1455
1456(defun rmail-read-passwd (prompt &optional default)
1457 "Read a password, echoing `.' for each character typed.
1458End with RET, LFD, or ESC. DEL or C-h rubs out. C-u kills line.
1459Optional DEFAULT is password to start with."
1460 (let ((pass (if default default ""))
1461 (c 0)
1462 (echo-keystrokes 0)
1463 (cursor-in-echo-area t))
1464 (while (progn (message "%s%s"
1465 prompt
1466 (make-string (length pass) ?.))
1467 (setq c (read-char))
1468 (and (/= c ?\r) (/= c ?\n) (/= c ?\e)))
1469 (if (= c ?\C-u)
1470 (setq pass "")
1471 (if (and (/= c ?\b) (/= c ?\177))
1472 (setq pass (concat pass (char-to-string c)))
1473 (if (> (length pass) 0)
1474 (setq pass (substring pass 0 -1))))))
1475 (message "")
1476 (message nil)
1477 pass))
1478
1479;; Decode the region specified by FROM and TO by CODING. 1456;; Decode the region specified by FROM and TO by CODING.
1480;; If CODING is nil or an invalid coding system, decode by `undecided'. 1457;; If CODING is nil or an invalid coding system, decode by `undecided'.
1481(defun rmail-decode-region (from to coding) 1458(defun rmail-decode-region (from to coding)
@@ -3369,7 +3346,7 @@ TEXT and INDENT are not used."
3369has been set, then prompt the user for one." 3346has been set, then prompt the user for one."
3370 (if (not rmail-encoded-pop-password) 3347 (if (not rmail-encoded-pop-password)
3371 (progn (if (not rmail-pop-password) 3348 (progn (if (not rmail-pop-password)
3372 (setq rmail-pop-password (rmail-read-passwd "POP password: "))) 3349 (setq rmail-pop-password (read-passwd "POP password: ")))
3373 (rmail-set-pop-password rmail-pop-password) 3350 (rmail-set-pop-password rmail-pop-password)
3374 (setq rmail-pop-password nil))) 3351 (setq rmail-pop-password nil)))
3375 (rmail-encode-string rmail-encoded-pop-password (emacs-pid))) 3352 (rmail-encode-string rmail-encoded-pop-password (emacs-pid)))