From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/81861 Path: news.gmane.org!not-for-mail From: Eric Abrahamsen Newsgroups: gmane.emacs.gnus.general Subject: carry over headers into reply Date: Sat, 02 Jun 2012 20:02:48 +0800 Message-ID: <87zk8l9b13.fsf@ericabrahamsen.net> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1338638666 1059 80.91.229.3 (2 Jun 2012 12:04:26 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 2 Jun 2012 12:04:26 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M30131@lists.math.uh.edu Sat Jun 02 14:04:26 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 1San4D-00024W-Me for ding-account@gmane.org; Sat, 02 Jun 2012 14:04:26 +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 1San36-0001fu-NM; Sat, 02 Jun 2012 07:03:16 -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 1San34-0001fk-Mn for ding@lists.math.uh.edu; Sat, 02 Jun 2012 07:03:14 -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 1San33-0002af-7k for ding@lists.math.uh.edu; Sat, 02 Jun 2012 07:03:13 -0500 Original-Received: from plane.gmane.org ([80.91.229.3]) by quimby.gnus.org with esmtp (Exim 4.72) (envelope-from ) id 1San31-0000Sk-68 for ding@gnus.org; Sat, 02 Jun 2012 14:03:11 +0200 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1San30-0000Xw-Jh for ding@gnus.org; Sat, 02 Jun 2012 14:03:10 +0200 Original-Received: from 114.250.106.29 ([114.250.106.29]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 02 Jun 2012 14:03:10 +0200 Original-Received: from eric by 114.250.106.29 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 02 Jun 2012 14:03:10 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 29 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: 114.250.106.29 User-Agent: Gnus/5.130006 (Ma Gnus v0.6) Emacs/24.1.50 (gnu/linux) X-Pgp-Key: http://pgp.mit.edu:11371/pks/lookup?op=vindex&search=0xC98BAE7B99D0D373 X-Pgp-Fingerprint: 8E19 28A9 2B51 0C67 565D DB34 C98B AE7B 99D0 D373 Cancel-Lock: sha1:Usy5WxQoYrUk/bNmZWwf/9CdEns= X-Spam-Score: -0.7 (/) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:81861 Archived-At: I've been trying for a while to figure out how to draw the value of a custom header from an edited mail message (the header inserted via another function) and insert it into a reply to that message. I can't seem to find any hooks (or even efficient places to advise functions) that will let me slurp a header value from the original message, and then place it in the reply that's being composed. I've considered `message-fetch-reply-field' (which seemed promising), and a custom `message-reply-to-function', and also advising `message-get-reply-headers', but everything seems to only let me carry over To and Cc headers from the original, not arbitrary headers. I can always kludge it with some global variable and two advice forms, but I'd much rather find something more graceful. Is there anywhere where either advice or a hook can use `message-fetch-reply-field' to get fields from the original, while operating in the reply buffer? If anyone who knows this code has a word of advice, I would love to hear it! Thanks, Eric -- GNU Emacs 24.1.50.1 (i686-pc-linux-gnu, GTK+ Version 2.24.10) of 2012-06-01 on pellet Ma Gnus v0.6