Gnus development mailing list
 help / color / mirror / Atom feed
From: Christoph Rohland <hans-christoph.rohland@sap.com>
Cc: Christoph Rohland <hans-christoph.rohland@sap.com>, ding@gnus.org
Subject: Re: Forwarding as mime conditionally?
Date: 13 Mar 2000 18:24:40 +0100	[thread overview]
Message-ID: <qwwvh2q7pgn.fsf@sap.com> (raw)
In-Reply-To: <vafbt4m4qis.fsf@lucy.cs.uni-dortmund.de>

Kai.Grossjohann@CS.Uni-Dortmund.DE (Kai Großjohann) writes:

> > Is there a possibility to forward mails sometimes as mime, sometimes
> > as text.
> 
> Hm.
> 
> (defun cr-gnus-summary-mail-forward (mime)
>   "Forward normally, with prefix arg, forward as MIME."
>   (interactive "P")
>   (let ((message-forward-as-mime mime))
>     (gnus-summary-mail-forward)))
> 
> You could replace mime with (not mime) in the fourth line to reverse
> the meaning of the prefix arg.

I modified your code to the following:

(defadvice gnus-summary-mail-forward 
  (around toggle-mime (&optional prefix post) activate)
  "Forward normally, with prefix arg, toggle message-forward-as-mime."
  (interactive "P")
  (let ((message-forward-as-mime 
         (if prefix (not message-forward-as-mime) message-forward-as-mime)))
    ; while using mime do not ignore headers
    (setq current-prefix-arg message-forward-as-mime)
    ad-do-it))

Greetings
		Christoph



      reply	other threads:[~2000-03-13 17:24 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-03-10 15:11 Christoph Rohland
2000-03-10 18:40 ` Kai Großjohann
2000-03-13 17:24   ` Christoph Rohland [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=qwwvh2q7pgn.fsf@sap.com \
    --to=hans-christoph.rohland@sap.com \
    --cc=ding@gnus.org \
    /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).