Bind mail-source-string in webmail.
authorShengHuo ZHU <zsh@cs.rochester.edu>
Sat, 4 Dec 1999 08:06:17 +0000 (08:06 +0000)
committerShengHuo ZHU <zsh@cs.rochester.edu>
Sat, 4 Dec 1999 08:06:17 +0000 (08:06 +0000)
lisp/ChangeLog
lisp/mail-source.el

index 93a2de9..e610722 100644 (file)
@@ -1,3 +1,8 @@
+1999-12-04 03:01:55  Shenghuo ZHU  <zsh@cs.rochester.edu>
+
+       * mail-source.el (mail-source-fetch-webmail): Bind
+       mail-source-string.
+
 1999-12-04 07:18:23  Matt Swift  <swift@alum.mit.edu>
 
        * gnus-uu.el (gnus-uu-mark-by-regexp): Doc fix.
index 7ac00eb..309cf9a 100644 (file)
@@ -670,13 +670,14 @@ This only works when `display-time' is enabled."
 (defun mail-source-fetch-webmail (source callback)
   "Fetch for webmail source."
   (mail-source-bind (webmail source)
-    (when (eq authentication 'password)
-      (setq password
-           (or password
-               (mail-source-read-passwd
-                (format "Password for %s at %s: " user subtype)))))
-    (webmail-fetch mail-source-crash-box subtype user password)
-    (mail-source-callback callback (symbol-name subtype))))
+    (let ((mail-source-string (format "webmail:%s:%s" subtype user)))
+      (when (eq authentication 'password)
+       (setq password
+             (or password
+                 (mail-source-read-passwd
+                  (format "Password for %s at %s: " user subtype)))))
+      (webmail-fetch mail-source-crash-box subtype user password)
+      (mail-source-callback callback (symbol-name subtype)))))
 
 (provide 'mail-source)