From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/65331 Path: news.gmane.org!not-for-mail From: Nicolas KOWALSKI Newsgroups: gmane.emacs.gnus.general Subject: Re: move article, agent does not expire ? Date: Tue, 02 Oct 2007 15:58:34 +0200 Message-ID: <87k5q5fwj9.fsf@petole.dyndns.org> References: <878x6mgdug.fsf@petole.dyndns.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1191333591 6895 80.91.229.12 (2 Oct 2007 13:59:51 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 2 Oct 2007 13:59:51 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M13843@lists.math.uh.edu Tue Oct 02 15:59:48 2007 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by lo.gmane.org with esmtp (Exim 4.50) id 1IciHm-00075s-OJ for ding-account@gmane.org; Tue, 02 Oct 2007 15:59:43 +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 1IciGq-0003lB-Hw; Tue, 02 Oct 2007 08:58:44 -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 1IciGp-0003kz-Bv for ding@lists.math.uh.edu; Tue, 02 Oct 2007 08:58:43 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx2.math.uh.edu with esmtp (Exim 4.67) (envelope-from ) id 1IciGj-0005B3-5L for ding@lists.math.uh.edu; Tue, 02 Oct 2007 08:58:43 -0500 Original-Received: from relay-dv.club-internet.fr ([194.158.96.208]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1IciGa-0006HQ-00 for ; Tue, 02 Oct 2007 15:58:28 +0200 Original-Received: from petole.dyndns.org (i07v-62-34-16-56.d4.club-internet.fr [62.34.16.56]) by relay-dv.club-internet.fr (Postfix) with ESMTP id 4C1BB25613 for ; Tue, 2 Oct 2007 15:58:34 +0200 (CEST) Original-Received: from petole.dyndns.org (petole.dyndns.org [192.168.2.2]) by petole.dyndns.org (Postfix) with ESMTP id 83D63677AE for ; Tue, 2 Oct 2007 15:58:34 +0200 (CEST) In-Reply-To: User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/21.4 (gnu/linux) X-Spam-Score: -1.9 (-) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:65331 Archived-At: Greg Troxel writes: > But when I move an article from a group to another, this expiry does not > happen, and so old data is kept into the agent. If I later come back > into that "source" group, I see the old article (marked with G), and I > can not remove it anymore. So, I currently have to copy the article in > the destination group, then delete it, to keep the agent up to date. > Even using "gnus-agent-regenerate" does not always clean up the > situation. > > I am having a problem that I think is the same one. I use imap for > mail. I have a function to make imap sharing with tbird etc. easier: Glad to see I am not alone. > d runs the command gdt-gnus-move-to-trash > which is an interactive Lisp function in `/usr/home/gdt/.dot-gdt/.emacs'. > It is bound to d. > (gdt-gnus-move-to-trash) > > (defun gdt-gnus-move-to-trash () > (interactive) > (gnus-summary-move-article nil gdt-trash-newsgroup)) I have the same kind of function, this one for spamassassin, rewritten to handle the current problem: (defun nk-junk-article () "Submit Spam." (interactive) (when (y-or-n-p "Learn this message as spam ? ") (gnus-summary-show-raw-article) (message "Learning article as spam...") (gnus-summary-save-in-pipe "sa-learn --spam --no-sync") (when (string-match "^nnimap" gnus-newsgroup-name) (gnus-summary-copy-article 1 "nnimap:Junk") (gnus-summary-delete-article 1) (gnus-summary-expand-window) ) ) ) > and have been noticing G articles in the summary on reentry. I fix this > by "rm -rf News/agent". This behavior started about 2 months ago (by > very fuzzy memory). With the above function, the 'G' articles do not reappear in the summary, but this is a ugly workaround. -- Nicolas