all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Gnus: Forwarding emails: how to get "Fwd:" in subject and ">" in body?
@ 2011-11-27 13:30 Marius Hofert
  2011-11-27 17:51 ` Tassilo Horn
  0 siblings, 1 reply; 11+ messages in thread
From: Marius Hofert @ 2011-11-27 13:30 UTC (permalink / raw)
  To: Emacs help

Hi,

If I forward a message in Gnus (C-c C-f), how can I get the following features by default?
1) The forwarded message text should be quoted with ">". 
2) The forwarded message does not contain a subject starting with "Fwd:" or similar.
3) C-c C-f does not work if the point is in the message text (follow-up does work from there). Is there an easy way to make C-c C-f active from within messages? 

I saw onhttp://www.delorie.com/gnu/docs/emacs/gnus_58.html that C-c C-f can have a prefix, but using either of the given numbers did not solve the above problem(s).

Cheers,

Marius


^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Gnus: Forwarding emails: how to get "Fwd:" in subject and ">" in body?
  2011-11-27 13:30 Gnus: Forwarding emails: how to get "Fwd:" in subject and ">" in body? Marius Hofert
@ 2011-11-27 17:51 ` Tassilo Horn
  2011-11-27 18:38   ` Marius Hofert
  2011-11-27 18:55   ` Memnon Anon
  0 siblings, 2 replies; 11+ messages in thread
From: Tassilo Horn @ 2011-11-27 17:51 UTC (permalink / raw)
  To: help-gnu-emacs

Marius Hofert <marius.hofert@math.ethz.ch> writes:

Hi,

> If I forward a message in Gnus (C-c C-f), how can I get the following
> features by default?
> 1) The forwarded message text should be quoted with ">". 

IMHO, when you forward a message, it should be preserved as-is.

> 2) The forwarded message does not contain a subject starting with
> "Fwd:" or similar.

Not sure about this one...

> 3) C-c C-f does not work if the point is in the message text
> (follow-up does work from there). Is there an easy way to make C-c C-f
> active from within messages?

(define-key gnus-article-mode-map (kbd "C-c C-f")
  'gnus-summary-mail-forward)

Bye,
Tassilo
-- 
(What the world needs (I think) is not
      (a Lisp (with fewer parentheses))
      but (an English (with more.)))
Brian Hayes, http://tinyurl.com/3y9l2kf




^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Gnus: Forwarding emails: how to get "Fwd:" in subject and ">" in body?
  2011-11-27 17:51 ` Tassilo Horn
@ 2011-11-27 18:38   ` Marius Hofert
  2011-11-27 20:01     ` Memnon Anon
  2011-11-27 18:55   ` Memnon Anon
  1 sibling, 1 reply; 11+ messages in thread
From: Marius Hofert @ 2011-11-27 18:38 UTC (permalink / raw)
  To: Tassilo Horn; +Cc: help-gnu-emacs



On 2011-11-27, at 18:51 , Tassilo Horn wrote:

> Marius Hofert <marius.hofert@math.ethz.ch> writes:
> 
> Hi,
> 
>> If I forward a message in Gnus (C-c C-f), how can I get the following
>> features by default?
>> 1) The forwarded message text should be quoted with ">". 
> 
> IMHO, when you forward a message, it should be preserved as-is.

Hi Tassilo,

my former email program used to quoted forwarded messages and even wrote 
"Begin forwarded message:" in the beginning of the message. I find this very helpful since otherwise, it might happen that the person you forward the message to thinks that (s)he received the message directly and will then answer the message to the original sender. In many cases this can cause trouble... 

> 
>> 2) The forwarded message does not contain a subject starting with
>> "Fwd:" or similar.
> 
> Not sure about this one...

I just figured it out (first time :-) ):
;; see http://osdir.com/ml/emacs.gnus.user/2002-11/msg00011.html
(setq message-make-forward-subject-function 'message-forward-subject-fwd)

> 
>> 3) C-c C-f does not work if the point is in the message text
>> (follow-up does work from there). Is there an easy way to make C-c C-f
>> active from within messages?
> 
> (define-key gnus-article-mode-map (kbd "C-c C-f")
>  'gnus-summary-mail-forward)

thanks :-)

> 
> Bye,
> Tassilo
> -- 
> (What the world needs (I think) is not
>      (a Lisp (with fewer parentheses))
>      but (an English (with more.)))
> Brian Hayes, http://tinyurl.com/3y9l2kf
> 
> 





^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Gnus: Forwarding emails: how to get "Fwd:" in subject and ">" in body?
  2011-11-27 17:51 ` Tassilo Horn
  2011-11-27 18:38   ` Marius Hofert
@ 2011-11-27 18:55   ` Memnon Anon
  1 sibling, 0 replies; 11+ messages in thread
From: Memnon Anon @ 2011-11-27 18:55 UTC (permalink / raw)
  To: help-gnu-emacs

Tassilo Horn <tassilo@member.fsf.org> writes:

>> 2) The forwarded message does not contain a subject starting with
>> "Fwd:" or similar.
>
> Not sure about this one...

,----[ (info "(message)Forwarding") ]
| `message-make-forward-subject-function'
|      A list of functions that are called to generate a subject header
|      for forwarded messages.  The subject generated by the previous
|      function is passed into each successive function.
| 
|      The provided functions are:
| 
|     `message-forward-subject-author-subject'
|           Source of article (author or newsgroup), in brackets followed
|           by the subject.
| 
|     `message-forward-subject-fwd'
|           Subject of article with `Fwd:' prepended to it.
`----

Easy to customize with

     * M-x customize-option
     * message-make-forward-subject-function
     * RET
     * Mark the "message-forward-subject-fwd" line
     * "Set for current session" 
     * Test it
     * "Save for future sessions"

hth
Memnon 




^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Gnus: Forwarding emails: how to get "Fwd:" in subject and ">" in body?
  2011-11-27 18:38   ` Marius Hofert
@ 2011-11-27 20:01     ` Memnon Anon
  2011-11-27 20:45       ` Marius Hofert
  0 siblings, 1 reply; 11+ messages in thread
From: Memnon Anon @ 2011-11-27 20:01 UTC (permalink / raw)
  To: help-gnu-emacs

Marius Hofert <marius.hofert@math.ethz.ch> writes:

> my former email program used to quoted forwarded messages and even
> wrote "Begin forwarded message:" in the beginning of the message.

Get this: 

-------------------- Start of forwarded message --------------------
Here is the forwarded text
-------------------- End of forwarded message --------------------

with this:

(setq message-forward-as-mime nil)

hth 
Memnon





^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Gnus: Forwarding emails: how to get "Fwd:" in subject and ">" in body?
  2011-11-27 20:01     ` Memnon Anon
@ 2011-11-27 20:45       ` Marius Hofert
  2011-11-27 21:29         ` Memnon Anon
  0 siblings, 1 reply; 11+ messages in thread
From: Marius Hofert @ 2011-11-27 20:45 UTC (permalink / raw)
  To: Memnon Anon; +Cc: Emacs help, Tassilo Horn

Dear Memnon,

many thanks, that's great!

Something I realized on testing is that a lot of "weird sender information" is sent with the forward. To be more precise, directly after the line "-------------------- Start of forwarded message --------------------" the following is included (and also visible to the recipient) [I hope this does not reveal critical information]:

Received: from GWS01.d.ethz.ch (82.130.70.78) by CAS20.d.ethz.ch
(172.31.51.110) with Microsoft SMTP Server (TLS) id 14.1.339.1; Sun, 27 Nov
2011 21:01:54 +0100
Received: from edge20.ethz.ch (82.130.99.26) by gws01.d.ethz.ch
(129.132.178.238) with Microsoft SMTP Server (TLS) id 8.2.254.0; Sun, 27 Nov
2011 21:01:53 +0100
Received: from phil2.ethz.ch (129.132.202.240) by edge20.ethz.ch
(82.130.99.26) with Microsoft SMTP Server id 14.1.339.1; Sun, 27 Nov 2011
21:01:53 +0100
Received: from lists.gnu.org ([140.186.70.17])	by phil2.ethz.ch with esmtp
(Exim 4.69)	(envelope-from
<help-gnu-emacs-bounces+my.name=uni.edu@gnu.org>)	id
1RUkv8-0004DV-9O	for my.name@uni.edu; Sun, 27 Nov 2011 21:01:53
+0100
Received: from localhost ([::1]:44570 helo=lists.gnu.org)	by lists.gnu.org
with esmtp (Exim 4.71)	(envelope-from
<help-gnu-emacs-bounces+my.name=uni.edu@gnu.org>)	id
1RUkv2-00016s-Ks	for my.name@uni.edu; Sun, 27 Nov 2011 15:01:44
-0500
Received: from eggs.gnu.org ([140.186.70.92]:51088)	by lists.gnu.org with
esmtp (Exim 4.71)	(envelope-from <geh-help-gnu-emacs@m.gmane.org>) id
1RUkuy-00016b-Hn	for help-gnu-emacs@gnu.org; Sun, 27 Nov 2011 15:01:41 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <geh-help-gnu-emacs@m.gmane.org>) id 1RUkux-0003F4-A5	for
help-gnu-emacs@gnu.org; Sun, 27 Nov 2011 15:01:40 -0500
Received: from lo.gmane.org ([80.91.229.12]:37944)	by eggs.gnu.org with esmtp
(Exim 4.71)	(envelope-from <geh-help-gnu-emacs@m.gmane.org>) id
1RUkuw-0003Ez-Vk	for help-gnu-emacs@gnu.org; Sun, 27 Nov 2011 15:01:39 -0500
Received: from list by lo.gmane.org with local (Exim 4.69)	(envelope-from
<geh-help-gnu-emacs@m.gmane.org>) id 1RUkuv-0001As-1P	for
help-gnu-emacs@gnu.org; Sun, 27 Nov 2011 21:01:37 +0100
Received: from e178235132.adsl.alicedsl.de ([85.178.235.132])	by
main.gmane.org with esmtp (Gmexim 0.1 (Debian))	id 1AlnuQ-0007hv-00	for
<help-gnu-emacs@gnu.org>; Sun, 27 Nov 2011 21:01:37 +0100
Received: from gegendosenfleisch by e178235132.adsl.alicedsl.de with local
	(Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00	for <help-gnu-emacs@gnu.org>; Sun,
27 Nov 2011 21:01:37 +0100
X-Injected-Via-Gmane: http://gmane.org/
To: <help-gnu-emacs@gnu.org>
From: Memnon Anon <gegendosenfleisch@googlemail.com>
Subject: Re: Gnus: Forwarding emails: how to get "Fwd:" in subject and ">"
	in	body?
Date: Sun, 27 Nov 2011 20:01:24 +0000
Lines: 18
Message-ID: <87ty5ps5jw.fsf@mean.albasani.net>
References: <CC5661A0-F409-4EA2-A840-7C0FF3384E24@uni.edu>
	<87obvxsbbj.fsf@thinkpad.tsdh.de>
	<1B31ED0C-A73D-4D73-8CB6-0C896C5849DF@uni.edu>
X-Complaints-To: usenet@dough.gmane.org
X-Gmane-NNTP-Posting-Host: e178235132.adsl.alicedsl.de
Cancel-Lock: sha1:7gMprMjAFLcQs9/mfoJ7cAH5F8c=
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3)
X-Received-From: 80.91.229.12
X-BeenThere: help-gnu-emacs@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: Users list for the GNU Emacs text editor <help-gnu-emacs.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/help-gnu-emacs>,
	<mailto:help-gnu-emacs-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/help-gnu-emacs>
List-Post: <mailto:help-gnu-emacs@gnu.org>
List-Help: <mailto:help-gnu-emacs-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/help-gnu-emacs>,
	<mailto:help-gnu-emacs-request@gnu.org?subject=subscribe>
Errors-To: help-gnu-emacs-bounces+my.name=uni.edu@gnu.org
Sender: <help-gnu-emacs-bounces+my.name=uni.edu@gnu.org>
X-Tag-Only: YES
X-Filter-Node: phil2.ethz.ch
X-Spam-Level: ---
X-Spam-Status: hits=-3.5 tests=DKIM_ADSP_CUSTOM_MED,FREEMAIL_FROM,RCVD_IN_DNSWL_MED,RP_MATCHES_RCVD,SPF_PASS
X-Spam-Flag: NO
Return-Path: help-gnu-emacs-bounces+my.name=uni.edu@gnu.org
X-MS-Exchange-Organization-AuthSource: edge20.ethz.ch
X-MS-Exchange-Organization-AuthAs: Anonymous
X-MS-Exchange-Organization-AVStamp-Mailbox: SMEXkv@];860700;0;This mail has
been scanned by Trend Micro ScanMail for Microsoft Exchange;
X-MS-Exchange-Organization-SCL: 0

=>  Do you know how to prevent that from being included?

Cheers,

Marius


On 2011-11-27, at 21:01 , Memnon Anon wrote:

> Marius Hofert <my.name@uni.edu> writes:
> 
>> my former email program used to quoted forwarded messages and even
>> wrote "Begin forwarded message:" in the beginning of the message.
> 
> Get this: 
> 
> -------------------- Start of forwarded message --------------------
> Here is the forwarded text
> -------------------- End of forwarded message --------------------
> 
> with this:
> 
> (setq message-forward-as-mime nil)
> 
> hth 
> Memnon
> 
> 
> 





^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Gnus: Forwarding emails: how to get "Fwd:" in subject and ">" in body?
  2011-11-27 20:45       ` Marius Hofert
@ 2011-11-27 21:29         ` Memnon Anon
  2011-11-27 21:48           ` Marius Hofert
  2011-11-28  8:24           ` Marius Hofert
  0 siblings, 2 replies; 11+ messages in thread
From: Memnon Anon @ 2011-11-27 21:29 UTC (permalink / raw)
  To: help-gnu-emacs

Marius Hofert <marius.hofert@math.ethz.ch> writes:

> Something I realized on testing is that a lot of "weird sender
> information" is sent with the forward. To be more precise, directly
> after the line "-------------------- Start of forwarded message
> --------------------" the following is included (and also visible to
> the recipient) [I hope this does not reveal critical information]:
[...[
> =>  Do you know how to prevent that from being included?

(customize-group "Message Forwarding") <-C-x C-e here

Look around, can you figure it out? :)

hth
Memnon




^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Gnus: Forwarding emails: how to get "Fwd:" in subject and ">" in body?
  2011-11-27 21:29         ` Memnon Anon
@ 2011-11-27 21:48           ` Marius Hofert
  2011-11-28  8:24           ` Marius Hofert
  1 sibling, 0 replies; 11+ messages in thread
From: Marius Hofert @ 2011-11-27 21:48 UTC (permalink / raw)
  To: Memnon Anon; +Cc: help-gnu-emacs


On 2011-11-27, at 22:29 , Memnon Anon wrote:

> (customize-group "Message Forwarding") <-C-x C-e here
> 

How can I find "Message Forwarding"? I looked via C-h i gnus and also in the manual...  (sorry I'm a relatively new emacs user)

Cheers,

Marius

> Look around, can you figure it out? :)
> 
> hth
> Memnon
> 
> 




^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Gnus: Forwarding emails: how to get "Fwd:" in subject and ">" in body?
  2011-11-27 21:29         ` Memnon Anon
  2011-11-27 21:48           ` Marius Hofert
@ 2011-11-28  8:24           ` Marius Hofert
  2011-11-28  9:24             ` Memnon Anon
  1 sibling, 1 reply; 11+ messages in thread
From: Marius Hofert @ 2011-11-28  8:24 UTC (permalink / raw)
  To: Memnon Anon; +Cc: help-gnu-emacs

Hi Memnon,

I found two things: message-forward-as-mime and message-forward-show-mml. I guess it's the second (cause the technical clutter inserted in the message says something like "mml"). So I tried:
(setq message-forward-show-mml nil)
However, this doesn't seem to have an influence on the problem (I also did a restart just to make sure it's correctly set).

Cheers,

Marius



On 2011-11-27, at 22:29 , Memnon Anon wrote:

> Marius Hofert <marius.hofert@math.ethz.ch> writes:
> 
>> Something I realized on testing is that a lot of "weird sender
>> information" is sent with the forward. To be more precise, directly
>> after the line "-------------------- Start of forwarded message
>> --------------------" the following is included (and also visible to
>> the recipient) [I hope this does not reveal critical information]:
> [...[
>> =>  Do you know how to prevent that from being included?
> 
> (customize-group "Message Forwarding") <-C-x C-e here
> 
> Look around, can you figure it out? :)
> 
> hth
> Memnon
> 
> 





^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Gnus: Forwarding emails: how to get "Fwd:" in subject and ">" in body?
  2011-11-28  8:24           ` Marius Hofert
@ 2011-11-28  9:24             ` Memnon Anon
  2011-11-28 10:18               ` Marius Hofert
  0 siblings, 1 reply; 11+ messages in thread
From: Memnon Anon @ 2011-11-28  9:24 UTC (permalink / raw)
  To: help-gnu-emacs

>>> Something I realized on testing is that a lot of "weird sender
>>> information" is sent with the forward. 
>>> =>  Do you know how to prevent that from being included?
>> 
>> (customize-group "Message Forwarding") <-C-x C-e here
>> Look around, can you figure it out? :)

> I found two things: message-forward-as-mime and
> message-forward-show-mml. I guess it's the second (cause the technical
> clutter inserted in the message says something like "mml"). So I
> tried: (setq message-forward-show-mml nil) However, this doesn't seem
> to have an influence on the problem (I also did a restart just to make
> sure it's correctly set).

The "weird sender information" in the forward are Headers.
By default, most header informations are kept, except:
   
   "^Content-Transfer-Encoding:\\|^X-Gnus"

,----[ Docstring `message-forward-ignored-headers' ]
| All headers that match this regexp will be deleted 
| when forwarding a message.
`----

If you want all header information removed, try setting 
`message-forward-ignored-headers' to a regexp that matches all headers. 

I leave that as an exercise to you :)
If you know nothing about regexps, 
(elisp) Regular Expressions is a good starting point.

Memnon
P.S.: If you really can not figure it out, write me an email.




^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Gnus: Forwarding emails: how to get "Fwd:" in subject and ">" in body?
  2011-11-28  9:24             ` Memnon Anon
@ 2011-11-28 10:18               ` Marius Hofert
  0 siblings, 0 replies; 11+ messages in thread
From: Marius Hofert @ 2011-11-28 10:18 UTC (permalink / raw)
  To: Memnon Anon; +Cc: help-gnu-emacs

Dear Memnon,

thank you very much for this hint. I figured out the following: 
(setq message-forward-ignored-headers "^.*")
and it worked :-)

Cheers,

Marius


On 2011-11-28, at 10:24 , Memnon Anon wrote:

>>>> Something I realized on testing is that a lot of "weird sender
>>>> information" is sent with the forward. 
>>>> =>  Do you know how to prevent that from being included?
>>> 
>>> (customize-group "Message Forwarding") <-C-x C-e here
>>> Look around, can you figure it out? :)
> 
>> I found two things: message-forward-as-mime and
>> message-forward-show-mml. I guess it's the second (cause the technical
>> clutter inserted in the message says something like "mml"). So I
>> tried: (setq message-forward-show-mml nil) However, this doesn't seem
>> to have an influence on the problem (I also did a restart just to make
>> sure it's correctly set).
> 
> The "weird sender information" in the forward are Headers.
> By default, most header informations are kept, except:
> 
>   "^Content-Transfer-Encoding:\\|^X-Gnus"
> 
> ,----[ Docstring `message-forward-ignored-headers' ]
> | All headers that match this regexp will be deleted 
> | when forwarding a message.
> `----
> 
> If you want all header information removed, try setting 
> `message-forward-ignored-headers' to a regexp that matches all headers. 
> 
> I leave that as an exercise to you :)
> If you know nothing about regexps, 
> (elisp) Regular Expressions is a good starting point.
> 
> Memnon
> P.S.: If you really can not figure it out, write me an email.
> 
> 





^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2011-11-28 10:18 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-11-27 13:30 Gnus: Forwarding emails: how to get "Fwd:" in subject and ">" in body? Marius Hofert
2011-11-27 17:51 ` Tassilo Horn
2011-11-27 18:38   ` Marius Hofert
2011-11-27 20:01     ` Memnon Anon
2011-11-27 20:45       ` Marius Hofert
2011-11-27 21:29         ` Memnon Anon
2011-11-27 21:48           ` Marius Hofert
2011-11-28  8:24           ` Marius Hofert
2011-11-28  9:24             ` Memnon Anon
2011-11-28 10:18               ` Marius Hofert
2011-11-27 18:55   ` Memnon Anon

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.