From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/84742 Path: news.gmane.org!not-for-mail From: Alan Schmitt Newsgroups: gmane.emacs.gnus.general Subject: Re: [Patch] tell expiry-hook functions where expired messages are going Date: Wed, 06 Aug 2014 10:06:07 +0200 Message-ID: References: <877g2w3596.fsf@ericabrahamsen.net> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-Trace: ger.gmane.org 1407312507 22170 80.91.229.3 (6 Aug 2014 08:08:27 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 6 Aug 2014 08:08:27 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M32985@lists.math.uh.edu Wed Aug 06 10:08:20 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 1XEwG3-0001s2-2N for ding-account@gmane.org; Wed, 06 Aug 2014 10:07:39 +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 1XEwFm-0000cq-SE; Wed, 06 Aug 2014 03:07:22 -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 1XEwFl-0000cl-S1 for ding@lists.math.uh.edu; Wed, 06 Aug 2014 03:07:21 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx2.math.uh.edu with esmtps (TLSv1:AES128-SHA:128) (Exim 4.76) (envelope-from ) id 1XEwFk-0005wZ-MA for ding@lists.math.uh.edu; Wed, 06 Aug 2014 03:07:21 -0500 Original-Received: from plane.gmane.org ([80.91.229.3]) by quimby.gnus.org with esmtp (Exim 4.80) (envelope-from ) id 1XEwFi-0002nq-6P for ding@gnus.org; Wed, 06 Aug 2014 10:07:18 +0200 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1XEwF8-00014g-K4 for ding@gnus.org; Wed, 06 Aug 2014 10:06:42 +0200 Original-Received: from 37.162.155.51 ([37.162.155.51]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 06 Aug 2014 10:06:42 +0200 Original-Received: from alan.schmitt by 37.162.155.51 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 06 Aug 2014 10:06:42 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 67 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 37.162.155.51 User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (darwin) Cancel-Lock: sha1:YYw5pbAJiC0TUGtGzjEvrgesbGE= X-Spam-Score: -0.7 (/) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:84742 Archived-At: --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable 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. Here is the backtrace: Debugger entered--Lisp error: (wrong-type-argument symbolp "nnimap+zimbra:a= rchive") 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 =2D-=20 OpenPGP Key ID : 040D0A3B4ED2E5C7 --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.22 (Darwin) iQEcBAEBCgAGBQJT4eHzAAoJEAQNCjtO0uXHMXsIAJu40bAt0kkpSjKlOCoLIUHU NKOHEAaklNTguhpdtC2ofKIgLfObfgZFvV2pMI/x07q+SaFxLkvG3gcPULdB2DVT 1TYfp4giWmJGHoiMrq9WguO4yHe8H6e2I/AyJiFyxBUlQKdZ0ruFB8CgZYQllWGy /z6Tb6laP1MpZhp8+Q22IDILockM4AfKjOPI08NN12F1g5qGAE8ud8wGf7cSNjHo wldfG38FxRxVDYu42U+llmQ3XH8V8Sw24zMH4UBd19Q6CnMxg8jhADMsImLjCYpx TJLBnoQJgWM9u0cdr/Z2hi6xgM7YfmevCJIlI7Rx8UGY1tlxrTRLTo2ivIXFGq8= =ZW1O -----END PGP SIGNATURE----- --=-=-=--