Gnus development mailing list
 help / color / mirror / Atom feed
From: Michael Welsh Duggan <md5i@md5i.com>
To: ding@gnus.org
Subject: Re: Questions about mail forwarding
Date: Fri, 13 Apr 2012 19:27:53 -0400	[thread overview]
Message-ID: <87pqbb9pqe.fsf@maru.md5i.com> (raw)
In-Reply-To: <878vhzicwo.fsf@topper.koldfront.dk> ("Adam =?iso-8859-1?Q?Sj?= =?iso-8859-1?Q?=F8gren=22's?= message of "Fri, 13 Apr 2012 22:40:07 +0200")

asjo@koldfront.dk (Adam Sjøgren) writes:

> On Fri, 13 Apr 2012 09:06:35 +0300, mihkel wrote:
>
>>     (setq gnus-summary-mail-forward 1)
>
> Setting a variable with the same name as a function doesn't change what
> the function does.
>
> ,----[ C-h f gnus-summary-mail-forward RET ]
> | gnus-summary-mail-forward is an interactive compiled Lisp function in
> | `gnus-msg.el'.
> | 
> | (gnus-summary-mail-forward &optional ARG POST)
> | 
> | Forward the current message(s) to another user.
> | If process marks exist, forward all marked messages;
> | if ARG is nil, see `message-forward-as-mime' and `message-forward-show-mml';
> | if ARG is 1, decode the message and forward directly inline;
> | if ARG is 2, forward message as an rfc822 MIME section;
> | if ARG is 3, decode message and forward as an rfc822 MIME section;
> | if ARG is 4, forward message directly inline;
> | otherwise, use flipped `message-forward-as-mime'.
> | If POST, post instead of mail.
> | For the "inline" alternatives, also see the variable
> | `message-forward-ignored-headers'.
> `----
>
> What you want to do is to pass the optional ARG to the function.
>
> I.e. you press: C-u 1 C-c C-f instead of just C-c C-f to forward the
> email.

Or, also per the documentation, you can set message-forward-as-mime to
nil.


>> 2. I want to have only some headers included in the forwarded mail. So I
>> used the following snippet:
>
>>     (setq message-included-forward-headers
>>      "^Subject:\\|^To:\\|^Cc:\\|^From:\\|^Date:")

Unfortunately the variable now appears to be
message-forward-ignored-headers, which is really doing the opposite of
what you want.

-- 
Michael Welsh Duggan
(md5i@md5i.com)



  reply	other threads:[~2012-04-13 23:27 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-04-13  6:06 mihkel
2012-04-13 20:40 ` Adam Sjøgren
2012-04-13 23:27   ` Michael Welsh Duggan [this message]
2012-04-14  8:29     ` mihkel

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=87pqbb9pqe.fsf@maru.md5i.com \
    --to=md5i@md5i.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).