--- pop3.el~ 2002-03-13 21:56:17.780672000 +0000 +++ pop3.el 2002-03-15 12:58:08.964942000 +0000 @@ -307,6 +307,13 @@ (if (not (and response (string-match "+OK" response))) (pop3-quit process)))) +(eval-when-compile + (defmacro pop3-string-as-unibyte (string) + "Return a unibyte string with the same individual bytes as STRING." + (if (fboundp 'string-as-unibyte) + (list 'string-as-unibyte string) + string))) + (defun pop3-apop (process user) "Send alternate authentication information to the server." (let ((pass pop3-password)) @@ -314,7 +321,8 @@ (setq pass (pop3-read-passwd (format "Password for %s: " pop3-maildrop)))) (if pass - (let ((hash (pop3-md5 (concat pop3-timestamp pass)))) + (let ((hash (pop3-md5 (pop3-string-as-unibyte + (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)))