Gnus development mailing list
 help / color / mirror / Atom feed
From: Norman Walsh <ndw@nwalsh.com>
Subject: Disabling hooks
Date: Tue, 05 Apr 2005 09:41:12 -0400	[thread overview]
Message-ID: <87vf71ibnr.fsf@nwalsh.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 1027 bytes --]

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

-- 
Norman Walsh <ndw@nwalsh.com> | Humanity is acquiring all the right
http://nwalsh.com/            | technology for all the wrong
                              | reasons.--R. Buckminster Fuller

[-- Attachment #2: Type: application/pgp-signature, Size: 188 bytes --]

                 reply	other threads:[~2005-04-05 13:41 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87vf71ibnr.fsf@nwalsh.com \
    --to=ndw@nwalsh.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).