From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/56239 Path: main.gmane.org!not-for-mail From: Kai Grossjohann Newsgroups: gmane.emacs.gnus.general Subject: Re: [spam-report.el] Offline Gmane spam reporting Date: Mon, 02 Feb 2004 15:46:19 +0100 Sender: ding-owner@lists.math.uh.edu Message-ID: <87ad41y1xg.fsf@emptyhost.emptydomain.de> References: <87r7xe5vjt.fsf@emptyhost.emptydomain.de> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1075733274 28300 80.91.224.253 (2 Feb 2004 14:47:54 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 2 Feb 2004 14:47:54 +0000 (UTC) Original-X-From: ding-owner+M4779@lists.math.uh.edu Mon Feb 02 15:47:45 2004 Return-path: Original-Received: from malifon.math.uh.edu ([129.7.128.13]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1AnfMX-0003TJ-00 for ; Mon, 02 Feb 2004 15:47:45 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by malifon.math.uh.edu with smtp (Exim 3.20 #1) id 1AnfL3-0005J0-00; Mon, 02 Feb 2004 08:46:13 -0600 Original-Received: from justine.libertine.org ([66.139.78.221] ident=postfix) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 1AnfKy-0005Iv-00 for ding@lists.math.uh.edu; Mon, 02 Feb 2004 08:46:08 -0600 Original-Received: from quimby.gnus.org (quimby.gnus.org [80.91.224.244]) by justine.libertine.org (Postfix) with ESMTP id 13CF73A0035 for ; Mon, 2 Feb 2004 08:46:08 -0600 (CST) Original-Received: from news by quimby.gnus.org with local (Exim 3.35 #1 (Debian)) id 1AnfKx-0000zj-00 for ; Mon, 02 Feb 2004 15:46:07 +0100 Original-To: ding@gnus.org Original-Path: not-for-mail Original-Newsgroups: gnus.ding Original-Lines: 34 Original-NNTP-Posting-Host: 213-203-244-156.kunde.vdserver.de Original-X-Trace: quimby.gnus.org 1075733167 2908 213.203.244.156 (2 Feb 2004 14:46:07 GMT) Original-X-Complaints-To: usenet@quimby.gnus.org Original-NNTP-Posting-Date: Mon, 2 Feb 2004 14:46:07 +0000 (UTC) User-Agent: Gnus/5.110002 (No Gnus v0.2) Emacs/21.2 (gnu/linux) Cancel-Lock: sha1:8ADD0ouhSKI3Yt0ocU70nqz+Z1k= Precedence: bulk Xref: main.gmane.org gmane.emacs.gnus.general:56239 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:56239 Reiner Steib <4.uce.03.r.s@nurfuerspam.de> writes: > On Sun, Feb 01 2004, Kai Grossjohann wrote: > >> But the real killer would be integration with the agent: arrange it so >> that reports are processed right away when online, and that they are >> processed when sending the queue or something when offline. > > I'm not familiar with the agent (I don't use it), but I guess this > would be quite easy. Maybe like this: > > (add-to-list 'gnus-agent-plugged-hook > (lambda () > (spam-report-process-queue);; not implemented yet. Maybe integrate this into sending the queue? > (setq spam-report-url-ping-function > 'spam-report-url-ping-plain))) > (add-to-list 'gnus-agent-unplugged-hook > (lambda () > (setq spam-report-url-ping-function > 'spam-report-url-to-file))) It might be useful to see what the agent does for sending mail. I think it works like this: on unplugging, set a variable to the current value of message-send-mail-function, set message-send-mail-function to the agent-queueing function. On plugging, set message-send-mail-function to the old value stashed away in the special variable. WDYT? Kai