Gnus development mailing list
 help / color / mirror / Atom feed
From: Steinar Bang <sb@metis.no>
Subject: Re: Making tm-edit behave with gnus
Date: 26 Mar 1998 12:51:09 +0100	[thread overview]
Message-ID: <whemzpy8k2.fsf@norne.oslo.metis.no> (raw)
In-Reply-To: Stephen Zander's message of "25 Mar 1998 18:31:49 -0800"

>>>>> Stephen Zander <gibreel@pobox.com>:

> Can someone enlighten me as to the magical incantation I need to
> get tm-edit to operate while composing messages?  The tm manuls
> really need a rewrite!

Here's how I make Gnus use TM:

(setq gnus-use-tm t)
(setq gnus-use-mailcrypt nil)
; (setq gnus-use-bbdb t)
(load "gnus-setup")


Here's my message mode setup:

(defun sb-message-setup ()
  (progn
    ;; setup from mail-setup-hook
    (setq mail-self-blind t)
    (setq mail-archive-file-name nil)
    (local-set-key "\C-ca" 'mail-interactive-insert-alias-hho)))

(add-hook 'message-setup-hook 'sb-message-setup)

(defun set-tm-dont-mime-encode-messages ()
  (progn
    ; Avoid posting Q-P
    (mime-editor/toggle-transfer-level 8)
    ; Avoid having USENET headers RFC 2047 encoded
    (if (message-news-p)
	(progn
	  (make-variable-buffer-local `mime/field-encoding-method-alist)
	  (setq mime/field-encoding-method-alist
		(append '(
			  ("Subject" . nil)
			  ("From" . nil)
			  ("To" . nil)
			  ("In-Reply-To" . nil)
			  )
			mime/field-encoding-method-alist
			))))
    ))

(add-hook 'message-setup-hook 'set-tm-dont-mime-encode-messages)


(defun set-tm-mail-dont-split-biguns ()
  "Split big messages with attachments when posting news,
but don't split in email messages"
  (if (message-news-p)
      (setq mime-editor/split-message t) ; *do* split
    (setq mime-editor/split-message nil) ; don't split
    ))

(add-hook 'message-setup-hook 'set-tm-mail-dont-split-biguns)


(add-hook 'message-setup-hook
	  (lambda ()
	    (setq message-cite-function 'sc-cite-original)
	    (setq message-default-mail-headers "BCC: sb@metis.no\n")
	    ))


      parent reply	other threads:[~1998-03-26 11:51 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-03-26  2:31 Stephen Zander
1998-03-26  7:18 ` Norbert Koch
1998-03-26 11:51 ` Steinar Bang [this message]

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=whemzpy8k2.fsf@norne.oslo.metis.no \
    --to=sb@metis.no \
    /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).