From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/60099 Path: news.gmane.org!not-for-mail From: Norman Walsh Newsgroups: gmane.emacs.gnus.general Subject: Disabling hooks Date: Tue, 05 Apr 2005 09:41:12 -0400 Message-ID: <87vf71ibnr.fsf@nwalsh.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" X-Trace: sea.gmane.org 1112708480 7293 80.91.229.2 (5 Apr 2005 13:41:20 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 5 Apr 2005 13:41:20 +0000 (UTC) Original-X-From: ding-owner+M8626@lists.math.uh.edu Tue Apr 05 15:41:14 2005 Return-path: Original-Received: from malifon.math.uh.edu ([129.7.128.13] ident=mail) by ciao.gmane.org with esmtp (Exim 4.43) id 1DIoIQ-0003KR-9J for ding-account@gmane.org; Tue, 05 Apr 2005 15:40:46 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu ident=lists) by malifon.math.uh.edu with smtp (Exim 3.20 #1) id 1DIoJJ-0005WY-00; Tue, 05 Apr 2005 08:41:41 -0500 Original-Received: from util2.math.uh.edu ([129.7.128.23]) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 1DIoJE-0005WT-00 for ding@lists.math.uh.edu; Tue, 05 Apr 2005 08:41:36 -0500 Original-Received: from quimby.gnus.org ([80.91.224.244]) by util2.math.uh.edu with esmtp (Exim 4.30) id 1DIoJB-000329-PP for ding@lists.math.uh.edu; Tue, 05 Apr 2005 08:41:33 -0500 Original-Received: from mxsf10.cluster1.charter.net ([209.225.28.210]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1DIoJ4-0007WG-00 for ; Tue, 05 Apr 2005 15:41:26 +0200 Original-Received: from mxip13.cluster1.charter.net (mxip13a.cluster1.charter.net [209.225.28.143]) by mxsf10.cluster1.charter.net (8.12.11/8.12.11) with ESMTP id j35DfMHL003453 for ; Tue, 5 Apr 2005 09:41:22 -0400 Original-Received: from cpe-68-112-233-63.ma.charter.com (HELO localhost) (68.112.233.63) by mxip13.cluster1.charter.net with ESMTP; 05 Apr 2005 09:41:22 -0400 X-Ironport-AV: i="3.91,152,1110171600"; d="scan'208"; a="997157889:sNHT20288278" Original-Received: from ndw by localhost with local (Exim 4.50) id 1DIoIt-0005B2-CQ for ding@gnus.org; Tue, 05 Apr 2005 09:41:15 -0400 Original-To: ding@gnus.org X-URL: http://nwalsh.com/ User-Agent: Gnus/5.1007 (Gnus v5.10.7) Emacs/21.4 (gnu/linux) X-Spam-Score: -4.8 (----) Precedence: bulk Original-Sender: ding-owner@lists.math.uh.edu Xref: news.gmane.org gmane.emacs.gnus.general:60099 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:60099 --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable I'm trying to write a function that will forward spam. Most of it seemed pretty straightforward, but all the normal message hooks are run (adding headers, a signature, starting flyspell, etc.). What's the right way to disable all those hooks? Based on a little poking around in the gnus sources, I thought this would work: (defun spam () (interactive) (let (gnus-message-setup-hook message-signature-setup-hook message-mode-hook message-header-setup-hook (message-forward-ignored-headers "^Content-Transfer-Encoding:\\|^X-Gnus\\|^Received")) ... and in fact the message-forward-ignored-headers seems to be right, but the hooks are still running? Am I missing something obvious? Be seeing you, norm --=20 Norman Walsh | Humanity is acquiring all the right http://nwalsh.com/ | technology for all the wrong | reasons.--R. Buckminster Fuller --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (GNU/Linux) iD8DBQBCUpV7OyltUcwYWjsRAl4lAJ9xPSBvweFQfpGTCoZnwNg8/z5rrACfYTPL qnUMKCJs++VDbgEVucEdj4A= =wzVC -----END PGP SIGNATURE----- --=-=-=--