* wl-vars.el (wl-smtp-authenticate-realm): New user option.
authorteranisi <teranisi>
Wed, 22 Dec 2004 02:43:57 +0000 (02:43 +0000)
committerteranisi <teranisi>
Wed, 22 Dec 2004 02:43:57 +0000 (02:43 +0000)
* wl-draft.el (wl-smtp-extension-bind): Use wl-smtp-authenticate-realm.

wl/ChangeLog
wl/wl-draft.el
wl/wl-vars.el

index b8b5230..c03ad3e 100644 (file)
@@ -1,3 +1,9 @@
+2004-12-22  Yuuichi Teranishi  <teranisi@gohome.org>
+
+       * wl-vars.el (wl-smtp-authenticate-realm): New user option.
+
+       * wl-draft.el (wl-smtp-extension-bind): Use wl-smtp-authenticate-realm.
+
 2004-12-15  Yuuichi Teranishi  <teranisi@gohome.org>
 
        * wl-e21.el (wl-draft-mode-setup): Avoid global-font-lock-mode
index a2b49a0..ce725e6 100644 (file)
@@ -152,15 +152,10 @@ e.g.
                 "\n"
               smtp-end-of-line))
            smtp-sasl-user-name smtp-sasl-properties sasl-read-passphrase)
-       (if (and (string= (car smtp-sasl-mechanisms) "DIGEST-MD5")
-               ;; sendmail bug?
-               (string-match "^\\([^@]*\\)@\\([^@]*\\)"
-                             wl-smtp-posting-user))
-          (setq smtp-sasl-user-name (match-string 1 wl-smtp-posting-user)
-                smtp-sasl-properties (list 'realm
-                                           (match-string 2 wl-smtp-posting-user)))
-        (setq smtp-sasl-user-name wl-smtp-posting-user
-              smtp-sasl-properties nil))
+       (setq smtp-sasl-user-name wl-smtp-posting-user
+            smtp-sasl-properties (when wl-smtp-authenticate-realm
+                                   (list 'realm
+                                         wl-smtp-authenticate-realm)))
        (setq sasl-read-passphrase
             (function
              (lambda (prompt)
index cb56495..6a7d702 100644 (file)
@@ -594,6 +594,14 @@ If nil, don't authenticate."
   :group 'wl
   :group 'wl-setting)
 
+(defcustom wl-smtp-authenticate-realm nil
+  "*SMTP Authentication realm.
+If you don't need to specify realm, set as nil."
+  :type '(choice (const :tag "none" nil)
+                string)
+  :group 'wl
+  :group 'wl-setting)
+
 (defcustom wl-pop-before-smtp-user nil
   "*POP3 user name to send mail using POP-before-SMTP.
 If nil, `elmo-pop3-default-user' is used.