]> code.delx.au - gnu-emacs/blobdiff - lisp/gnus/sieve-manage.el
lisp/startup.el (argi): Declare as global variable (bug#9275).
[gnu-emacs] / lisp / gnus / sieve-manage.el
index c9a0df20590d5e0a3df39950132845cdc4f8e0b5..5c2e775a211d9859715547d0ed2c15041575f436 100644 (file)
@@ -275,9 +275,10 @@ Valid states are `closed', `initial', `nonauth', and `auth'.")
   (with-current-buffer buffer
     (let* ((auth-info (auth-source-search :host sieve-manage-server
                                           :port "sieve"
-                                          :max 1))
-           (user-name (plist-get (nth 0 auth-info) :user))
-           (user-password (plist-get (nth 0 auth-info) :secret))
+                                          :max 1
+                                          :create t))
+           (user-name (or (plist-get (nth 0 auth-info) :user) ""))
+           (user-password (or (plist-get (nth 0 auth-info) :secret) ""))
            (user-password (if (functionp user-password)
                               (funcall user-password)
                             user-password))