From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/81758 Path: news.gmane.org!not-for-mail From: Michael Welsh Duggan Newsgroups: gmane.emacs.gnus.general Subject: Re: Questions about mail forwarding Date: Fri, 13 Apr 2012 19:27:53 -0400 Message-ID: <87pqbb9pqe.fsf@maru.md5i.com> References: <84zkagtbbo.fsf@optiplex.lan> <878vhzicwo.fsf@topper.koldfront.dk> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1334359726 10975 80.91.229.3 (13 Apr 2012 23:28:46 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 13 Apr 2012 23:28:46 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M30036@lists.math.uh.edu Sat Apr 14 01:28:44 2012 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1SIpuz-00042N-0e for ding-account@gmane.org; Sat, 14 Apr 2012 01:28:41 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by util0.math.uh.edu with smtp (Exim 4.63) (envelope-from ) id 1SIpuO-0001s9-BR; Fri, 13 Apr 2012 18:28:04 -0500 Original-Received: from mx1.math.uh.edu ([129.7.128.32]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1SIpuN-0001s0-8d for ding@lists.math.uh.edu; Fri, 13 Apr 2012 18:28:03 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx1.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.76) (envelope-from ) id 1SIpuL-0006fM-SC for ding@lists.math.uh.edu; Fri, 13 Apr 2012 18:28:03 -0500 Original-Received: from md5i.com ([75.151.244.229] helo=maru.md5i.com) by quimby.gnus.org with esmtp (Exim 4.72) (envelope-from ) id 1SIpuJ-0006qH-Vt for ding@gnus.org; Sat, 14 Apr 2012 01:28:00 +0200 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=md5i.com; s=dkim; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID:In-Reply-To:Date:References:Subject:To:From; bh=pT29AeNruAU0pPa1omvmB7xf15hGJ1IvlxhEUdBXUrw=; b=vrdL4LD825gPHIgX+4kNM7uoCFCwspqPS6Ep8S/VVH9gjvKfpFTVFijIIQBWlOrm+y7nC2mMcCQKInnrR0amcQwZbOySIFgAOSjStvRqqv5XIWHrVtw+trN1vghKPKKW; Original-Received: from md5i by maru.md5i.com with local (Exim 4.77) (envelope-from ) id 1SIpuD-0005JP-CP for ding@gnus.org; Fri, 13 Apr 2012 19:27:53 -0400 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") User-Agent: Gnus/5.11002 (No Gnus v0.20) Emacs/24.1.50 (gnu/linux) X-Spam-Score: -2.0 (--) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:81758 Archived-At: asjo@koldfront.dk (Adam Sj=F8gren) 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'. > |=20 > | (gnus-summary-mail-forward &optional ARG POST) > |=20 > | 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. --=20 Michael Welsh Duggan (md5i@md5i.com)