From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/81679 Path: news.gmane.org!not-for-mail From: Matt Ford Newsgroups: gmane.emacs.gnus.general Subject: Re: Bug with gnus agent when processing message queue and having archive alist Date: Fri, 06 Apr 2012 20:39:03 +0100 Organization: Dancingfrog Message-ID: <87k41shcq0.fsf@dancingfrog.co.uk> References: <87aa2oetih.fsf@dancingfrog.co.uk> <87k41s4tz9.fsf@dancingfrog.co.uk> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1333741211 7197 80.91.229.3 (6 Apr 2012 19:40:11 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 6 Apr 2012 19:40:11 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M29958@lists.math.uh.edu Fri Apr 06 21:40:10 2012 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1SGF0x-0001ug-FV for ding-account@gmane.org; Fri, 06 Apr 2012 21:40:07 +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 1SGF0F-0007Hj-3z; Fri, 06 Apr 2012 14:39:23 -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 1SGF0D-0007HW-V8 for ding@lists.math.uh.edu; Fri, 06 Apr 2012 14:39:21 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx2.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.76) (envelope-from ) id 1SGF0C-00062u-He for ding@lists.math.uh.edu; Fri, 06 Apr 2012 14:39:21 -0500 Original-Received: from plane.gmane.org ([80.91.229.3]) by quimby.gnus.org with esmtp (Exim 4.72) (envelope-from ) id 1SGF0A-0006Nl-HU for ding@gnus.org; Fri, 06 Apr 2012 21:39:18 +0200 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1SGF08-0001Lt-11 for ding@gnus.org; Fri, 06 Apr 2012 21:39:16 +0200 Original-Received: from host-92-22-235-129.as13285.net ([92.22.235.129]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 06 Apr 2012 21:39:15 +0200 Original-Received: from matt by host-92-22-235-129.as13285.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 06 Apr 2012 21:39:15 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 23 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: host-92-22-235-129.as13285.net User-Agent: Gnus/5.130004 (Ma Gnus v0.4) Emacs/24.0.94 (gnu/linux) Cancel-Lock: sha1:9fH4FQ1KNYZ1L9VavxB4CPCBRck= X-Spam-Score: -1.9 (-) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:81679 Archived-At: Okay, here's a patch to make it work. Probably not the right one but it does the job. Essentially if the gnus-message-archive-group is set then the gnus-inews-insert-gcc function will try a string comparison on the optional group parameter even if the group parameter is not set. Providing an empty string stops the wrong type error. Cheers, Matt. --- gnus-msg.el.old 2012-04-06 20:33:36.196856856 +0100 +++ gnus-msg.el 2012-04-06 20:24:09.382615209 +0100 @@ -1729,7 +1729,7 @@ (defun gnus-inews-insert-gcc (&optional group) "Insert the Gcc to say where the article is to be archived." - (let* ((group (or group gnus-newsgroup-name)) + (let* ((group (or group gnus-newsgroup-name "")) (group (when group (gnus-group-decoded-name group))) (var (or gnus-outgoing-message-group gnus-message-archive-group)) (gcc-self-val -- Matt