From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/17880 Path: main.gmane.org!not-for-mail From: Lars Magne Ingebrigtsen Newsgroups: gmane.emacs.gnus.general Subject: Re: Do stuff on nnchoke-accept-article? Date: 17 Oct 1998 23:05:49 +0200 Sender: owner-ding@hpc.uh.edu Message-ID: References: NNTP-Posting-Host: coloc-standby.netfonds.no X-Trace: main.gmane.org 1035156501 3155 80.91.224.250 (20 Oct 2002 23:28:21 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sun, 20 Oct 2002 23:28:21 +0000 (UTC) Return-Path: Original-Received: from fisher.math.uh.edu (fisher.math.uh.edu [129.7.128.35]) by sclp3.sclp.com (8.8.5/8.8.5) with ESMTP id RAA10677 for ; Sat, 17 Oct 1998 17:17:52 -0400 (EDT) Original-Received: from sina.hpc.uh.edu (lists@Sina.HPC.UH.EDU [129.7.3.5]) by fisher.math.uh.edu (8.9.1/8.9.1) with ESMTP id QAB12685; Sat, 17 Oct 1998 16:14:24 -0500 (CDT) Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Sat, 17 Oct 1998 16:14:22 -0500 (CDT) Original-Received: from sclp3.sclp.com (root@sclp3.sclp.com [209.195.19.139]) by sina.hpc.uh.edu (8.7.3/8.7.3) with ESMTP id QAA15345 for ; Sat, 17 Oct 1998 16:13:48 -0500 (CDT) Original-Received: from sparky.gnus.org (ppp064.uio.no [129.240.240.69]) by sclp3.sclp.com (8.8.5/8.8.5) with ESMTP id RAA10559 for ; Sat, 17 Oct 1998 17:13:24 -0400 (EDT) Original-Received: (from larsi@localhost) by sparky.gnus.org (8.8.5/8.8.5) id XAA01199; Sat, 17 Oct 1998 23:13:17 +0200 Mail-Copies-To: never X-Now-Reading: Stephen Jay Goulds _Hønsetenner og hestetær_ Original-To: ding@gnus.org In-Reply-To: Kai Grossjohann's message of "14 Oct 1998 23:27:12 +0200" User-Agent: Gnus/5.070035 (Pterodactyl Gnus v0.35) Emacs/20.3 X-Face: &w!^oO~dS|}-P0~ge{$c!h\ writes: > Is there a way (a hook) to do stuff whenever an article is entered > into a group? Be it because it's a new mail, be it from B c or B m or > B r, no matter. I don't think so, but I could add one if you want one. > I'd like to remember the message-id and what group the message was > written to. You couldn't do that with a hook, since there really isn't any variable that says which group the mail is destined for. `*-request-accept-article', for instance, uses `group', while `nnfolder-save-mail' uses the `group-art' cons cell. One could add a `nnmail-new-message-function' variable that could be set to a function that takes a group name as a parameter, and then have all the mail backends call that one for each new message, no matter how it was received. If you want to write something like that, I'll accept the patch. :-) -- (domestic pets only, the antidote for overdose, milk.) larsi@gnus.org * Lars Magne Ingebrigtsen