* pop3.el (pop3-md5): Remove.
authorJesper Harder <harder@ifa.au.dk>
Fri, 9 Jan 2004 16:45:09 +0000 (16:45 +0000)
committerJesper Harder <harder@ifa.au.dk>
Fri, 9 Jan 2004 16:45:09 +0000 (16:45 +0000)
(pop3-apop): Replace pop3-md5 with md5.

* mm-bodies.el: base64 is always built-in.

* gnus-sum.el (gnus-summary-from-or-to-or-newsgroups): Use
with-current-buffer.

lisp/ChangeLog
lisp/gnus-sum.el
lisp/mm-bodies.el
lisp/pop3.el

index 137284c..8e52438 100644 (file)
@@ -1,3 +1,13 @@
+2004-01-09  Jesper Harder  <harder@ifa.au.dk>
+
+       * pop3.el (pop3-md5): Remove.
+       (pop3-apop): Replace pop3-md5 with md5.
+
+       * mm-bodies.el: base64 is always built-in.
+
+       * gnus-sum.el (gnus-summary-from-or-to-or-newsgroups): Use
+       with-current-buffer.
+
 2004-01-08  Katsumi Yamaoka  <yamaoka@jpl.org>
 
        * canlock.el (canlock-insert-header): Remove excessive grouping in
index 97bd4b9..8366eae 100644 (file)
@@ -3248,8 +3248,8 @@ buffer that was in action when the last article was fetched."
        ; Is it really necessary to do this next part for each summary line?
        ; Luckily, doesn't seem to slow things down much.
        (mail-parse-ignored-charsets
-        (save-excursion (set-buffer gnus-summary-buffer)
-                        gnus-newsgroup-ignored-charsets)))
+        (with-current-buffer gnus-summary-buffer
+          gnus-newsgroup-ignored-charsets)))
     (or
      (and gnus-ignored-from-addresses
          (string-match gnus-ignored-from-addresses gnus-tmp-from)
index 3475168..68278b4 100644 (file)
 
 ;;; Code:
 
-(eval-and-compile
-  (or (fboundp  'base64-decode-region)
-      (require 'base64)))
-
 (eval-when-compile
   (defvar mm-uu-decode-function)
   (defvar mm-uu-binhex-decode-function))
index 6c53a48..e6ba1b2 100644 (file)
@@ -304,7 +304,7 @@ If NOW, use that time instead."
        (setq pass
              (read-passwd (format "Password for %s: " pop3-maildrop))))
     (if pass
-       (let ((hash (pop3-md5 (concat pop3-timestamp pass))))
+       (let ((hash (md5 (concat pop3-timestamp pass))))
          (pop3-send-command process (format "APOP %s %s" user hash))
          (let ((response (pop3-read-response process t)))
            (if (not (and response (string-match "+OK" response)))
@@ -313,22 +313,6 @@ If NOW, use that time instead."
 
 ;; TRANSACTION STATE
 
-(eval-and-compile
-  (if (fboundp 'md5)
-      (defalias 'pop3-md5 'md5)
-    (defvar pop3-md5-program "md5"
-      "*Program to encode its input in MD5.")
-
-    (defun pop3-md5 (string)
-      (with-temp-buffer
-       (insert string)
-       (call-process-region (point-min) (point-max)
-                            pop3-md5-program
-                            t (current-buffer) nil)
-       ;; The meaningful output is the first 32 characters.
-       ;; Don't return the newline that follows them!
-       (buffer-substring (point-min) (+ 32 (point-min)))))))
-
 (defun pop3-stat (process)
   "Return the number of messages in the maildrop and the maildrop's size."
   (pop3-send-command process "STAT")