From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/72891 Path: news.gmane.org!not-for-mail From: Michael Welsh Duggan Newsgroups: gmane.emacs.gnus.general Subject: A small sieve problem Date: Sun, 10 Oct 2010 17:07:23 -0400 Message-ID: <87aaml92pg.fsf@maru.md5i.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Trace: dough.gmane.org 1286744887 18459 80.91.229.12 (10 Oct 2010 21:08:07 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 10 Oct 2010 21:08:07 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M21263@lists.math.uh.edu Sun Oct 10 23:08:06 2010 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 1P537l-0005hg-Ds for ding-account@gmane.org; Sun, 10 Oct 2010 23:08:05 +0200 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 1P537e-0004H8-LV; Sun, 10 Oct 2010 16:07:58 -0500 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 1P537d-0004Gm-7M for ding@lists.math.uh.edu; Sun, 10 Oct 2010 16:07:57 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx2.math.uh.edu with esmtp (Exim 4.72) (envelope-from ) id 1P537c-0001GV-1D for ding@lists.math.uh.edu; Sun, 10 Oct 2010 16:07:57 -0500 Original-Received: from md5i.com ([75.151.244.229] helo=maru.md5i.com) by quimby.gnus.org with esmtp (Exim 3.36 #1 (Debian)) id 1P537b-0005zt-00 for ; Sun, 10 Oct 2010 23:07:55 +0200 Original-Received: from md5i by maru.md5i.com with local (Exim 4.72) (envelope-from ) id 1P5375-0001zl-Ir for ding@gnus.org; Sun, 10 Oct 2010 17:07:23 -0400 User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/24.0.50 (gnu/linux) X-Spam-Score: -1.9 (-) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:72891 Archived-At: --=-=-= Content-Type: text/plain For a long time, I have had sieve-manage-default-port set to "sieve". Apparently, sieve-manage ignored that in the past. Now that sieve-manage-default-port is used properly by sieve-manage-open, I was getting the following traceback: Debugger entered--Lisp error: (error "Format specifier doesn't match argument type") format(" *sieve* %s:%d" "localhost" "sieve") sieve-manage-open("localhost") sieve-open-server("localhost" nil) sieve-manage("localhost") call-interactively(sieve-manage t nil) execute-extended-command(nil) call-interactively(execute-extended-command nil nil) I could obviously change my sieve-manage-default-port port to 2000, but is there any reason not to use the following patch (which works for me) instead? --=-=-= Content-Type: text/x-patch Content-Disposition: inline diff --git a/lisp/sieve-manage.el b/lisp/sieve-manage.el index c542632..3d04a5a 100644 --- a/lisp/sieve-manage.el +++ b/lisp/sieve-manage.el @@ -150,7 +150,7 @@ for doing the actual authentication." :group 'sieve-manage) (defcustom sieve-manage-default-port 2000 - "Default port number for managesieve protocol." + "Default port number or service name for managesieve protocol." :type 'integer :group 'sieve-manage) @@ -389,7 +389,7 @@ Optional argument AUTH indicates authenticator to use, see If nil, chooses the best stream the server is capable of. Optional argument BUFFER is buffer (buffer, or string naming buffer) to work in." - (setq buffer (or buffer (format " *sieve* %s:%d" server (or port sieve-manage-default-port)))) + (setq buffer (or buffer (format " *sieve* %s:%s" server (or port sieve-manage-default-port)))) (with-current-buffer (get-buffer-create buffer) (mapc 'make-local-variable sieve-manage-local-variables) (sieve-manage-disable-multibyte) --=-=-= Content-Type: text/plain -- Michael Welsh Duggan (md5i@md5i.com) --=-=-=--