From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/48241 Path: main.gmane.org!not-for-mail From: Lars Magne Ingebrigtsen Newsgroups: gmane.emacs.gnus.general Subject: Re: Custom headers in gnus for replies Date: Sun, 29 Dec 2002 00:06:55 +0100 Organization: Programmerer Ingebrigtsen Sender: owner-ding@hpc.uh.edu Message-ID: References: <20021014013912.GA2514@averell> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1041117129 21741 80.91.224.249 (28 Dec 2002 23:12:09 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sat, 28 Dec 2002 23:12:09 +0000 (UTC) Return-path: Original-Received: from util1.math.uh.edu ([129.7.128.22]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18SQ7k-0005eX-00 for ; Sun, 29 Dec 2002 00:12:08 +0100 Original-Received: from sina.hpc.uh.edu ([129.7.128.10] ident=lists) by util1.math.uh.edu with esmtp (Exim 4.10) id 18SQ34-00008e-00; Sat, 28 Dec 2002 17:07:18 -0600 Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Sat, 28 Dec 2002 17:08:11 -0600 (CST) Original-Received: from quimby.gnus.org (quimby.gnus.org [80.91.224.244]) by sina.hpc.uh.edu (8.9.3/8.9.3) with ESMTP id RAA07202 for ; Sat, 28 Dec 2002 17:07:53 -0600 (CST) Original-Received: from news by quimby.gnus.org with local (Exim 3.12 #1 (Debian)) id 18SQ2m-0007WX-00 for ; Sun, 29 Dec 2002 00:07:00 +0100 Original-To: ding@hpc.uh.edu Original-Path: not-for-mail Original-Newsgroups: gnus.ding Original-Lines: 37 Original-NNTP-Posting-Host: quimbies.gnus.org Original-X-Trace: quimby.gnus.org 1041116820 27695 80.91.231.2 (28 Dec 2002 23:07:00 GMT) Original-X-Complaints-To: usenet@quimby.gnus.org Original-NNTP-Posting-Date: 28 Dec 2002 23:07:00 GMT Mail-Copies-To: never X-Now-Playing: Stars As Eyes's _Enemy Of Fun_: "Suspension Days" User-Agent: Gnus/5.090008 (Oort Gnus v0.08) Emacs/21.2.50 (i686-pc-linux-gnu) X-Face: |J writes: > I'm using gnus to read mailing lists which have been gated to newsgroups. > The news gateways are one way - when I want to reply I have to mail > to the original recipients. > > The gateway software allows this by inserting headers like > > X-Mailing-List: list-address > X-Original-Cc: original cc list > > Currently I always edit the reply mails by hand and cut and paste the list > from X-Original-cc and X-Mailing-List. Due to the arcane mail header syntax > this sometimes leads to corrupted lists, especially when the cc list > is complex and was spread over multiple lines. > > Is there a way to get gnus to do this for me? Basically I just want > it to interpret X-Mailing-List as another From/Cc (to be inserted > in the recipient list with group reply) and process the X-Original-Cc > like a normal cc header. > > Is there any easy way to do this? There is now. I've extended `message-get-reply-headers' to take a list of headers to be picked at. So you can say: (defun andi-wide-reply () (message-get-reply-headers t nil '("to" "cc" "from" "x-mailing-list" "x-original-cc"))) (setq message-wide-reply-to-function 'andi-wide-reply) And that's untested code, but it might work. :-) -- (domestic pets only, the antidote for overdose, milk.) larsi@gnus.org * Lars Magne Ingebrigtsen