[gnus git] branch master updated: n0-13-79-gb94e691 =1= sieve-manage: return empty string if no user/password

Julien Danjou <[email protected]>
Newsgroups gmane.emacs.gnus.cvs
Message-ID <[email protected]>
       via  b94e6917956f748007b46c54f2bed607fd71f6c7 (commit)
      from  dedb7cde38cbd0bfde1f4285e35e7bc84c7047e8 (commit)


- Log -----------------------------------------------------------------
commit b94e6917956f748007b46c54f2bed607fd71f6c7
Author: Julien Danjou <[email protected]>
Date:   Mon Mar 7 16:41:26 2011 +0100

    sieve-manage: return empty string if no user/password
    
    Signed-off-by: Julien Danjou <[email protected]>

diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index be8ecc6..3922baf 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,6 +1,8 @@
 2011-03-07  Julien Danjou  <[email protected]>
 
 	* sieve-manage.el (sieve-sasl-auth): Create auth-info if not found.
+	(sieve-sasl-auth): Check that auth-source-search did return something,
+	or just return an empty string.
 
 2011-03-05  Antoine Levitt  <[email protected]>
 
diff --git a/lisp/sieve-manage.el b/lisp/sieve-manage.el
index ec59cf3..5c2e775 100644
--- a/lisp/sieve-manage.el
+++ b/lisp/sieve-manage.el
@@ -277,8 +277,8 @@ Valid states are `closed', `initial', `nonauth', and `auth'.")
                                           :port "sieve"
                                           :max 1
                                           :create t))
-           (user-name (plist-get (nth 0 auth-info) :user))
-           (user-password (plist-get (nth 0 auth-info) :secret))
+           (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))

-----------------------------------------------------------------------
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we listed those
revisions in full, above.

Summary of changes:
 lisp/ChangeLog       |    2 ++
 lisp/sieve-manage.el |    4 ++--
 2 files changed, 4 insertions(+), 2 deletions(-)

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Gnus Project".

The branch, master has been updated


hooks/post-receive
-- 
Gnus Project
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.