From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/45737 Path: main.gmane.org!not-for-mail From: "Davide G. M. Salvetti" Newsgroups: gmane.emacs.gnus.general Subject: nnimap, expiry-target, nnmail-fancy-expiry-targets Date: Fri, 19 Jul 2002 16:02:42 +0200 Organization: Quis ut Deus? Sender: owner-ding@hpc.uh.edu Message-ID: <87sn2fiznh.fsf@hal.Olympus.INVALID> NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1027087202 9679 127.0.0.1 (19 Jul 2002 14:00:02 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Fri, 19 Jul 2002 14:00:02 +0000 (UTC) Return-path: Original-Received: from malifon.math.uh.edu ([129.7.128.13]) by main.gmane.org with esmtp (Exim 3.33 #1 (Debian)) id 17VYIa-0002Vy-00 for ; Fri, 19 Jul 2002 16:00:00 +0200 Original-Received: from sina.hpc.uh.edu ([129.7.128.10] ident=lists) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 17VYHk-0004MG-00; Fri, 19 Jul 2002 08:59:08 -0500 Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Fri, 19 Jul 2002 08:59:32 -0500 (CDT) Original-Received: from sclp3.sclp.com (qmailr@sclp3.sclp.com [209.196.61.66]) by sina.hpc.uh.edu (8.9.3/8.9.3) with SMTP id IAA13505 for ; Fri, 19 Jul 2002 08:59:18 -0500 (CDT) Original-Received: (qmail 28335 invoked by alias); 19 Jul 2002 13:58:49 -0000 Original-Received: (qmail 28330 invoked from network); 19 Jul 2002 13:58:48 -0000 Original-Received: from quimby.gnus.org (80.91.224.244) by gnus.org with SMTP; 19 Jul 2002 13:58:48 -0000 Original-Received: from news by quimby.gnus.org with local (Exim 3.12 #1 (Debian)) id 17VYTf-00066h-00 for ; Fri, 19 Jul 2002 16:11:27 +0200 Original-To: ding@gnus.org Original-Path: not-for-mail Original-Newsgroups: gnus.ding Original-Lines: 118 Original-NNTP-Posting-Host: ppp-104-31.27-151.libero.it Original-X-Trace: quimby.gnus.org 1027087887 23352 151.27.31.104 (19 Jul 2002 14:11:27 GMT) Original-X-Complaints-To: usenet@quimby.gnus.org Original-NNTP-Posting-Date: 19 Jul 2002 14:11:27 GMT X-Attribution: DGMS X-GPG-Fingerprint: D3B2 A3F5 E9EB BDE6 A245 AA4A 212B 306C 9396 865D X-Face: &6g,d%3hP0[qul^Z;FuwvIxNxPy2:}9K`7D?&sDX@xTwx7Z\S\AK\jI)J$yL:J>70*[c!k* [qo4Zx')Q_zPtl]25VG[X#6xMVp_1K!t- U{izN"hVM!$1`P\v~sRS:)^t_{py+"YcZ|2^z=AUz4"ZJNrtP@;'8dyarKA7)OPjihAGsMb User-Agent: Gnus/5.090007 (Oort Gnus v0.07) Emacs/21.2 (i386-debian-linux-gnu) Cancel-Lock: sha1:HV125HuPiMb0kK7fOSKchwUNCPQ= Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:45737 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:45737 Hi all! I've a problem with the stuff in the subject line. I'd like to have all messages of a certain nnimap group (INBOX) auto archived in a bunch of nnimap groups (on the same IMAP server) named after year-month, the specific group being chosen based on the date of the message to be archived. After reading the docs I thought I could have what I wanted with the following setup: * group parameters: <======================================================================> (total-expire . t) (expiry-wait . immediate) (expiry-target . nnmail-fancy-expiry-target) <======================================================================> * nnmail-fancy-expiry-targets: <======================================================================> (setq nnmail-fancy-expiry-targets '(("from" ".*" "nnimap+mail:Mail/Archive/%Y-%m"))) <======================================================================> (note that here nnimap+mail is a well working backend). However, it doesn't work as I expected: when I press "C-c C-x" on the group from the *Group* buffer I get the following backtrace: <======================================================================> Debugger entered--Lisp error: (wrong-type-argument stringp nil) string-match(".*" nil) nnmail-fancy-expiry-target("INBOX") nnmail-expiry-target-group(nnmail-fancy-expiry-target "INBOX") nnimap-expiry-target((1 (3 . 6) (8 . 30) (33 . 75) (77 . 106) (108 . 139) (141 . 152) (155 . 159) (161 . 181) (183 . 235) (237 . 246) (248 . 267) (269 . 270) (272 . 330) (332 . 336) (338 . 339) (341 . 352) (354 . 356) (358 . 363) 365 (367 . 570) (572 . 585) (587 . 594) (596 . 625) (627 . 631) (633 . 639) (641 . 667) (669 . 676) (678 . 696) (698 . 725)) "INBOX" "mail") nnimap-request-expire-articles((1 3 4 5 6 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 ...) "INBOX" "mail" nil) gnus-request-expire-articles((1 3 4 5 6 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 ...) "nnimap+mail:INBOX") gnus-group-expire-articles-1("nnimap+mail:INBOX") gnus-group-expire-articles(nil) call-interactively(gnus-group-expire-articles) gnus-topic-expire-articles(nil) call-interactively(gnus-topic-expire-articles) <======================================================================> while after (setq imap-log t) *imap-log* shows <======================================================================> 1730 SELECT "INBOX" * 722 EXISTS * 0 RECENT * OK [UIDVALIDITY 1026993069] UID validity status * OK [UIDNEXT 726] Predicted next UID * FLAGS (gnus-forward \Answered \Flagged \Deleted \Draft \Seen) * OK [PERMANENTFLAGS (gnus-forward \* \Answered \Flagged \Deleted \Draft \Seen)] Permanent flags * OK [UNSEEN 2] first unseen message in /var/mail/salve 1730 OK [READ-WRITE] SELECT completed 1731 EXPUNGE 1731 OK No messages deleted, so no update needed 1732 UID FETCH 1 BODY.PEEK[] * 1 FETCH (UID 1 BODY[] {4936} Return-Path: [... an article of that INBOX group elided by yours truly ...] ) 1732 OK UID FETCH completed 1733 UID COPY 1 "Mail/Archive/2002-07" 1733 OK UID COPY completed 1734 EXAMINE "Mail/Archive/2002-07" * 6 EXISTS * 0 RECENT * OK [UIDVALIDITY 1027005732] UID validity status * OK [UIDNEXT 23] Predicted next UID * FLAGS (\Answered \Flagged \Deleted \Draft \Seen) * OK [PERMANENTFLAGS ()] Permanent flags * OK [UNSEEN 1] first unseen message in /home/salve/Mail/Archive/2002-07 1734 OK [READ-ONLY] EXAMINE completed 1735 UID FETCH * UID * 6 FETCH (UID 22) 1735 OK UID FETCH completed 1736 SELECT "INBOX" * 722 EXISTS * 0 RECENT * OK [UIDVALIDITY 1026993069] UID validity status * OK [UIDNEXT 726] Predicted next UID * FLAGS (gnus-forward \Answered \Flagged \Deleted \Draft \Seen) * OK [PERMANENTFLAGS (gnus-forward \* \Answered \Flagged \Deleted \Draft \Seen)] Permanent flags * OK [UNSEEN 2] first unseen message in /var/mail/salve 1736 OK [READ-WRITE] SELECT completed 1737 UID FETCH 3 BODY.PEEK[] 1737 OK UID FETCH completed <======================================================================> (note 1737 here above). I'm afraid I don't know enough of the IMAP protocol to understand it any further. :-( Am I doing this thing properly, or is there an other way to reach my archiving goal? P.S. Well, perhaps I should say that I also have a <======================================================================> (setq gnus-message-archive-group '((concat "nnimap+mail:Mail/Archive/" (format-time-string "%Y-%m" (current-time))))) <======================================================================> which appears to semi-work; i.e., it apparently works as long as I'm not subscribed to, say, nnimap+mail:Mail/Archive/2002-07, otherwise it fails to append my outgoing messages there (without barfing: they simply aren't appended, but I don't get any error message back). -- Salve, | GNU PG (GPG) Key ID: 9396865D Davide |