Gnus development mailing list
 help / color / mirror / Atom feed
From: "Steven L. Baur" <steve@miranova.com>
Subject: Re: Signature in forwarded messages
Date: Tue, 28 Nov 1995 18:54:21 -0800	[thread overview]
Message-ID: <199511290254.SAA03517@miranova.com> (raw)
In-Reply-To: <199511281709.LAA14735@galil.austnsc.tandem.com>

Lars, may I respectfully request that you put the magic ``Start of''
string into a variable so that it doesn't have to be copied by hand as
below?

>>>>> "Sten" == Sten Drescher <dreschs@mpd.tandem.com> writes:

    Sten> 	In Gnus 5.0.10, when I use gnus-summary-mail-forward
    Sten> or gnus-uu-digest-mail-forward (I don't know about other
    Sten> -forward commands), my signature file is put at the
    Sten> _beginning_ of the message.  Even if this isn't broken, I'd
    Sten> still like the signature to be at the end of the message.
    Sten> How can I make this happen?

    Sten> 		Sten

I don't think this is broken.  At any rate, it behaves the same way in
sgnus v0.16.

You do have a hook available to rearrange things.  Take a look at the
gnus-mail-forward-hook.  What you would want to do there is move all
the text between the header separator line, and the 
``------- Start of forwarded message -------'' line to the end of the
buffer.

Try this out and see if it does what you want (I'm sure that this is
not the most elegant way of doing this, but it appears to work):

(defun signature-to-end-of-forwarded-message ()
  (save-excursion
    (goto-char (point-min))
    (re-search-forward
     (concat "^" (regexp-quote mail-header-separator) "$") nil t)
    (forward-line 1)
    (let* ((start (point))
	   (end (progn
		  (save-excursion
		    (re-search-forward "^------- Start of forwarded message -"
				       nil
				       t)
		    (beginning-of-line)
		    (point)))))
      (goto-char (point-max))
      (insert-buffer-substring (current-buffer) start end)
      (delete-region start end))))

(add-hook 'gnus-mail-forward-hook 'signature-to-end-of-forwarded-message)

Regards,
-- 
steve@miranova.com baur


  reply	other threads:[~1995-11-29  2:54 UTC|newest]

Thread overview: 36+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1995-11-28 17:09 Sten Drescher
1995-11-29  2:54 ` Steven L. Baur [this message]
1995-11-29  8:32   ` Robert Nicholson
1995-11-29  9:29     ` M.N.Oakden
1995-11-29 17:55       ` Lars Magne Ingebrigtsen
1995-11-29 18:31         ` Scott Blachowicz
1995-11-29 21:44           ` David K}gedal
1995-11-30  6:35             ` Russ Allbery
1995-11-30  7:42               ` Saileshwar Krishnamurthy
1995-11-30  9:33                 ` Kai Grossjohann
1995-11-30 23:56                   ` Sudish Joseph
1995-12-01  3:57                     ` Lars Magne Ingebrigtsen
1995-11-30 13:59                 ` User Names in the Summary buffer Jack Vinson
1995-12-01  3:57                 ` Signature in forwarded messages Lars Magne Ingebrigtsen
1995-11-30 16:46             ` Resending (was Re: Signature in forwarded messages) Edward J. Sabol
1995-12-01  3:57               ` Lars Magne Ingebrigtsen
1995-12-01  5:32                 ` Russ Allbery
1995-12-01 17:54                   ` Steven L. Baur
1995-12-01  5:36                 ` David K}gedal
1995-12-01  6:10                   ` Eric Hendrickson
1995-12-01  6:17                     ` David K}gedal
1995-12-01  6:59                       ` Eric Hendrickson
1995-12-04  1:50                         ` Lars Magne Ingebrigtsen
1995-12-01 16:51                 ` Scott Blachowicz
1995-12-01 18:24                   ` Multiple confirmations (was: Re: Resending (was Re: Signature in forwarded messages)) Per Abrahamsen
1995-12-01 19:19                     ` Scott Blachowicz
1995-12-04  1:50                       ` Multiple confirmations Lars Magne Ingebrigtsen
1995-12-04  1:50                   ` Resending (was Re: Signature in forwarded messages) Lars Magne Ingebrigtsen
1995-12-01  3:57             ` Signature in forwarded messages Lars Magne Ingebrigtsen
1995-12-01  3:57           ` Lars Magne Ingebrigtsen
1995-11-29 19:26         ` Edward J. Sabol
1995-11-30  8:41         ` Kai Grossjohann
1995-12-01  3:57           ` Lars Magne Ingebrigtsen
1995-12-01 12:01         ` Mats G. Lofdahl
1995-11-29 10:07     ` Per Abrahamsen
1995-11-29 17:55   ` Lars Magne Ingebrigtsen

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=199511290254.SAA03517@miranova.com \
    --to=steve@miranova.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).