From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/81725 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: Thu, 12 Apr 2012 11:25:36 +0100 Organization: Dancingfrog Message-ID: <87zkah6ycf.fsf@dancingfrog.co.uk> References: <87aa2oetih.fsf@dancingfrog.co.uk> <87k41s4tz9.fsf@dancingfrog.co.uk> <87k41shcq0.fsf@dancingfrog.co.uk> <87fwcbqodu.fsf@dancingfrog.co.uk> <874nsrqk34.fsf@dancingfrog.co.uk> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1334227912 25590 80.91.229.3 (12 Apr 2012 10:51:52 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 12 Apr 2012 10:51:52 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M30004@lists.math.uh.edu Thu Apr 12 12:51:51 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 1SIHd1-0006PB-6q for ding-account@gmane.org; Thu, 12 Apr 2012 12:51:51 +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 1SIHcl-00081u-TE; Thu, 12 Apr 2012 05:51:35 -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 1SIHck-00081i-8C for ding@lists.math.uh.edu; Thu, 12 Apr 2012 05:51:34 -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 1SIHcj-0006Gf-8q for ding@lists.math.uh.edu; Thu, 12 Apr 2012 05:51:34 -0500 Original-Received: from plane.gmane.org ([80.91.229.3]) by quimby.gnus.org with esmtp (Exim 4.72) (envelope-from ) id 1SIHch-0006Xb-S9 for ding@gnus.org; Thu, 12 Apr 2012 12:51:31 +0200 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1SIHch-0006HF-MZ for ding@gnus.org; Thu, 12 Apr 2012 12:51:31 +0200 Original-Received: from vpn2-27.its.manchester.ac.uk ([130.88.49.27]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 12 Apr 2012 12:51:31 +0200 Original-Received: from matt by vpn2-27.its.manchester.ac.uk with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 12 Apr 2012 12:51:31 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 35 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: vpn2-27.its.manchester.ac.uk User-Agent: Gnus/5.130004 (Ma Gnus v0.4) Emacs/24.0.95 (gnu/linux) Cancel-Lock: sha1:w7vejPv3oeIiQv4b0f1rLBLoKGM= X-Spam-Score: -1.9 (-) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:81725 Archived-At: hmm - doesn't quite work for me. It now looks to be trying to evaluate the regex rather than matching it. Debugger entered--Lisp error: (invalid-function "Manchester:") ("Manchester:" "nnimap+Manchester:Sent Items") eval(("Manchester:" "nnimap+Manchester:Sent Items")) gnus-inews-insert-gcc() run-hooks(message-header-setup-hook) message-setup-1(((To . "") (Subject . "")) nil nil nil) message-setup(((To . "") (Subject . "")) nil nil nil nil nil) message-mail() gnus-group-mail((4)) call-interactively(gnus-group-mail nil nil) Here's my setting: (setq gnus-message-archive-group '(("Manchester:" "nnimap+Manchester:Sent Items") ("Dancingfrog:" "nnimap+Dancingfrog:[Google Mail]/Sent Mail") (quote "sent"))) Perhaps a final check is needed? (cond ((and group (stringp (caar var))) ;; Regexp. (when (string-match (caar var) group) (cdar var))) ((and group (functionp (car var))) ;; Function. (funcall (car var) group)) ((and (functionp (car var)) (eval (car var)))))))) -- Matt