From: Ted Zlatanov <tzz@lifelogs.com>
To: ding@gnus.org
Subject: Re: sieve-manage no longer works without authinfo
Date: Mon, 07 Mar 2011 05:16:36 -0600 [thread overview]
Message-ID: <8739mzxjsb.fsf@lifelogs.com> (raw)
In-Reply-To: <878vwr5uvq.fsf@maru.md5i.com>
On Mon, 07 Mar 2011 01:04:25 -0500 Michael Welsh Duggan <md5i@md5i.com> wrote:
MWD> If an entry does not exists for a server in .authinfo, `sieve-manage' is
MWD> failing like this:
MWD> Debugger entered--Lisp error: (wrong-type-argument arrayp nil)
MWD> fillarray(nil 0)
Try this patch, which defaults the user name and the password to "".
But I don't know if that's the right fix. Julien Danjou, who added the
authentication support originally, should say.
Ted
diff --git a/lisp/sieve-manage.el b/lisp/sieve-manage.el
index c9a0df2..ca44238 100644
--- a/lisp/sieve-manage.el
+++ b/lisp/sieve-manage.el
@@ -276,8 +276,8 @@ Valid states are `closed', `initial', `nonauth', and `auth'.")
(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))
+ (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))
next prev parent reply other threads:[~2011-03-07 11:16 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-03-07 6:04 Michael Welsh Duggan
2011-03-07 11:16 ` Ted Zlatanov [this message]
2011-03-07 14:33 ` Julien Danjou
2011-03-07 15:30 ` Ted Zlatanov
2011-03-07 15:42 ` Julien Danjou
2011-03-07 15:46 ` Ted Zlatanov
2011-03-08 1:36 ` Michael Welsh Duggan
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=8739mzxjsb.fsf@lifelogs.com \
--to=tzz@lifelogs.com \
--cc=ding@gnus.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).