From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/77572 Path: news.gmane.org!not-for-mail From: Ted Zlatanov Newsgroups: gmane.emacs.gnus.general Subject: Re: sieve-manage no longer works without authinfo Date: Mon, 07 Mar 2011 05:16:36 -0600 Organization: =?utf-8?B?0KLQtdC+0LTQvtGAINCX0LvQsNGC0LDQvdC+0LI=?= @ Cienfuegos Message-ID: <8739mzxjsb.fsf@lifelogs.com> References: <878vwr5uvq.fsf@maru.md5i.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1299496656 23373 80.91.229.12 (7 Mar 2011 11:17:36 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 7 Mar 2011 11:17:36 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M25895@lists.math.uh.edu Mon Mar 07 12:17:33 2011 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PwYRP-0002iu-Fj for ding-account@gmane.org; Mon, 07 Mar 2011 12:17:31 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by util0.math.uh.edu with smtp (Exim 4.63) (envelope-from ) id 1PwYR2-00032x-0L; Mon, 07 Mar 2011 05:17:08 -0600 Original-Received: from mx2.math.uh.edu ([129.7.128.33]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1PwYR0-00032Y-FD for ding@lists.math.uh.edu; Mon, 07 Mar 2011 05:17:06 -0600 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx2.math.uh.edu with esmtp (Exim 4.72) (envelope-from ) id 1PwYQz-0000ID-5w for ding@lists.math.uh.edu; Mon, 07 Mar 2011 05:17:06 -0600 Original-Received: from lo.gmane.org ([80.91.229.12]) by quimby.gnus.org with esmtp (Exim 4.72) (envelope-from ) id 1PwYQy-0006DN-FJ for ding@gnus.org; Mon, 07 Mar 2011 12:17:04 +0100 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1PwYQu-0002T1-Ov for ding@gnus.org; Mon, 07 Mar 2011 12:17:03 +0100 Original-Received: from c-67-186-102-106.hsd1.il.comcast.net ([67.186.102.106]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 07 Mar 2011 12:17:00 +0100 Original-Received: from tzz by c-67-186-102-106.hsd1.il.comcast.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 07 Mar 2011 12:17:00 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 29 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: c-67-186-102-106.hsd1.il.comcast.net X-Face: bd.DQ~'29fIs`T_%O%C\g%6jW)yi[zuz6;d4V0`@y-~$#3P_Ng{@m+e4o<4P'#(_GJQ%TT= D}[Ep*b!\e,fBZ'j_+#"Ps?s2!4H2-Y"sx" User-Agent: Gnus/5.110014 (No Gnus v0.14) Emacs/24.0.50 (gnu/linux) Cancel-Lock: sha1:iqJiH8AspN19ccRzAMa5EtkiiUI= X-Spam-Score: -1.9 (-) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:77572 Archived-At: On Mon, 07 Mar 2011 01:04:25 -0500 Michael Welsh Duggan 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))