From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.user/9754 Path: news.gmane.org!not-for-mail From: Austin Frank Newsgroups: gmane.emacs.gnus.user Subject: nnmail-fancy-expiry-target problems Date: Wed, 17 Oct 2007 13:36:17 -0400 Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0037617654==" X-Trace: ger.gmane.org 1192642698 2089 80.91.229.12 (17 Oct 2007 17:38:18 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 17 Oct 2007 17:38:18 +0000 (UTC) To: info-gnus-english@gnu.org Original-X-From: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Wed Oct 17 19:38:17 2007 Return-path: Envelope-to: gegu-info-gnus-english@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1IiCqE-00048Z-DJ for gegu-info-gnus-english@m.gmane.org; Wed, 17 Oct 2007 19:37:58 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IiCq7-00082M-5L for gegu-info-gnus-english@m.gmane.org; Wed, 17 Oct 2007 13:37:51 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IiCpE-0007eT-Jt for info-gnus-english@gnu.org; Wed, 17 Oct 2007 13:36:56 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IiCp9-0007c2-Mj for info-gnus-english@gnu.org; Wed, 17 Oct 2007 13:36:55 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IiCp9-0007bv-JM for info-gnus-english@gnu.org; Wed, 17 Oct 2007 13:36:51 -0400 Original-Received: from main.gmane.org ([80.91.229.2] helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1IiCp9-0008EL-1O for info-gnus-english@gnu.org; Wed, 17 Oct 2007 13:36:51 -0400 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1IiCou-0000da-OS for info-gnus-english@gnu.org; Wed, 17 Oct 2007 17:36:36 +0000 Original-Received: from cpe-74-74-148-109.rochester.res.rr.com ([74.74.148.109]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 17 Oct 2007 17:36:36 +0000 Original-Received: from austin.frank by cpe-74-74-148-109.rochester.res.rr.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 17 Oct 2007 17:36:36 +0000 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 92 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: cpe-74-74-148-109.rochester.res.rr.com User-Agent: Gnus/5.110007 (No Gnus v0.7) Emacs/22.1 (darwin) Cancel-Lock: sha1:QXj74YdBMpHbB/dzccpBao3/rPs= X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: info-gnus-english@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Announcements and discussions for GNUS, the GNU Emacs Usenet newsreader \(in English\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Errors-To: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.gnus.user:9754 Archived-At: --===============0037617654== Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" --=-=-= Content-Transfer-Encoding: quoted-printable Hello! I'm trying to set up an archiving system for my mail. I'm having some problems with expiry, and am hoping you all can help. I have a number of mailboxes on a local imap server that I connect to with nnimap. The manual suggests using nnfolder for archives, so I'd like to set up mail from my nnimap server to expire to an nnfolder server at ~/Mail_Archive. Even though all read mails are marked as expired as soon as I finish them, I've never seen any mail moved to ~/Mail_Archive. Trying to explicitly expire articles in a group with C-c C-x seems to apply the expiry flag to every appropriate mail in the group, but nothing gets moved anywhere. The output in the message buffer is the following: Expiring articles in nnimap:mail.misc... Expiring articles in nnimap:mail.misc gnus-agent-expire: Loading overview... Done gnus-agent-expire: Sorting entries... Done gnus-agent-expire: Merging entries... Done Expiry recovered 7 NOV entries, deleted 0 files, and freed 2.184570 KB. Finally, sometimes when I quit a group I get the following message: Expiring articles... nnmail-fancy-expiry-target: Wrong type argument: stringp, nil I'm using GNU Emacs 22.1.1 and No Gnus v0.7. I've included a sanitized version of the relevant (I think) configuration options below. Please let me know if there is more information I can provide. Thanks in advance for any help. /au ;; keep a copy of all outgoing mail. Send it through the INBOX ;; since I've got filters set up to get it to the right places (setq gnus-message-archive-method '(nnimap "" (nnimap-server-address "localhost"))) (setq gnus-message-archive-group "INBOX" gnus-gcc-mark-as-read t ) ;; expiry settings (remove-hook 'gnus-mark-article-hook 'gnus-summary-mark-read-and-unread-as-read) (add-hook 'gnus-mark-article-hook 'gnus-summary-mark-unread-as-read) =20=20=20=20 (setq nnmail-expiry-wait-function=20=20=20=20=20=20=20=20=20=20 (lambda (group) (cond ((string=3D group "mail.personal") 90) ((string=3D group "mail.academic") 90) (t 6)))) =20=20=20=20 (setq nnfolder-directory "~/Mail_Archive" nnfolder-get-new-mail nil) =20=20=20=20 (setq nnmail-expiry-target 'nnmail-fancy-expiry-target nnmail-fancy-expiry-targets '((to-from "group1" "nnfolder:group1") (to-from "boss1" "nnfolder:boss1") (to-from "boss2" "nnfolder:boss2") (to-from "my-private-address" "nnfolder:personal.%Y") (to-from ".*\\.edu" "nnfolder:academic.%Y.%b") ("from" "my-other-addresses" "nnfolder:sent.%Y.%b") ("from" ".*" "nnfolder:archive-%Y.%b"))) =2D-=20 Austin Frank http://aufrank.net GPG Public Key (D7398C2F): http://aufrank.net/personal.asc --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (Darwin) iD8DBQFHFkgRlHMl2/XbR4ERAnNXAKCG6tiUsEsaF2cKO6/oO4hvgochHgCghZL3 KKok1XkWbrNuCtCac3UXjNU= =CTo/ -----END PGP SIGNATURE----- --=-=-=-- --===============0037617654== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ info-gnus-english mailing list info-gnus-english@gnu.org http://lists.gnu.org/mailman/listinfo/info-gnus-english --===============0037617654==--