From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/84743 Path: news.gmane.org!not-for-mail From: Eric Abrahamsen Newsgroups: gmane.emacs.gnus.general Subject: Re: [Patch] tell expiry-hook functions where expired messages are going Date: Wed, 06 Aug 2014 16:45:57 +0800 Message-ID: <871tsurooq.fsf@ericabrahamsen.net> References: <877g2w3596.fsf@ericabrahamsen.net> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1407314525 13375 80.91.229.3 (6 Aug 2014 08:42:05 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 6 Aug 2014 08:42:05 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M32986=ding+2Daccount=gmane.org@lists.math.uh.edu Wed Aug 06 10:41:57 2014 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 1XEwnE-0000BG-Ex for ding-account@gmane.org; Wed, 06 Aug 2014 10:41:56 +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 1XEwnD-0000no-Ki for ding-account@gmane.org; Wed, 06 Aug 2014 03:41:55 -0500 Original-Received: from mx1.math.uh.edu ([129.7.128.32]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1XEwnC-0000nj-MM for ding@lists.math.uh.edu; Wed, 06 Aug 2014 03:41:54 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx1.math.uh.edu with esmtps (TLSv1:AES128-SHA:128) (Exim 4.76) (envelope-from ) id 1XEwnB-0000sw-R3 for ding@lists.math.uh.edu; Wed, 06 Aug 2014 03:41:54 -0500 Original-Received: from plane.gmane.org ([80.91.229.3]) by quimby.gnus.org with esmtp (Exim 4.80) (envelope-from ) id 1XEwnA-0003oA-Fb for ding@gnus.org; Wed, 06 Aug 2014 10:41:52 +0200 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1XEwnA-00006E-14 for ding@gnus.org; Wed, 06 Aug 2014 10:41:52 +0200 Original-Received: from 211.155.242.80 ([211.155.242.80]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 06 Aug 2014 10:41:52 +0200 Original-Received: from eric by 211.155.242.80 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 06 Aug 2014 10:41:52 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 52 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 211.155.242.80 User-Agent: Gnus/5.130012 (Ma Gnus v0.12) Emacs/24.4.50 (gnu/linux) Cancel-Lock: sha1:w91Gq8hm1VRRsMId5XWovD+kHik= X-Spam-Score: -0.7 (/) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:84743 Archived-At: Alan Schmitt writes: > Hello, > > I gave this patch a try (as it's been applied to the git repo and I've > been able to use it) and I'm seeing an error when messages are refiled > during expiration. Gah, that was my error. The patch should have used functionp and not fboundp. Can someone fix that please? Sorry! E > Here is the backtrace: > > Debugger entered--Lisp error: (wrong-type-argument symbolp "nnimap+zimbra:archive") > fboundp("nnimap+zimbra:archive") > gnus-summary-expire-articles() > run-hooks(gnus-summary-prepare-exit-hook) > apply(run-hooks gnus-summary-prepare-exit-hook) > gnus-run-hooks(gnus-summary-prepare-exit-hook) > gnus-summary-exit() > call-interactively(gnus-summary-exit nil nil) > > The problematic string corresponds to the target mailbox for the > expiration: > > #+begin_src emacs-lisp > (setq gnus-parameters > '(("^old.*" > (total-expire . t) > (expiry-wait . 1) > (expiry-target . "nnimap+zimbra:archive")) > ... > ("^work$" > (total-expire . t) > (expiry-wait . 7) > (expiry-target . "nnimap+zimbra:archive")) > ... > )) > > #+end_src > > Looking at the code, the error comes from the patched code. Shouldn't > there be a check that `nnmail-expiry-target' is a symbol before calling > fboundp? > > Thanks, > > Alan