From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/39398 Path: main.gmane.org!not-for-mail From: Matt Armstrong Newsgroups: gmane.emacs.gnus.general Subject: Re: Generating Mail-Followup-To: headers Date: Thu, 18 Oct 2001 10:08:18 -0600 Sender: owner-ding@hpc.uh.edu Message-ID: <87elo1exsd.fsf@squeaker.lickey.com> References: <87y9m9fs6b.fsf@squeaker.lickey.com> NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1035175108 27647 80.91.224.250 (21 Oct 2002 04:38:28 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 21 Oct 2002 04:38:28 +0000 (UTC) Return-Path: Original-Received: (qmail 28553 invoked from network); 18 Oct 2001 16:10:18 -0000 Original-Received: from malifon.math.uh.edu (mail@129.7.128.13) by mastaler.com with SMTP; 18 Oct 2001 16:10:18 -0000 Original-Received: from sina.hpc.uh.edu ([129.7.128.10] ident=lists) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 15uFjQ-0001W5-00; Thu, 18 Oct 2001 11:09:16 -0500 Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Thu, 18 Oct 2001 11:08:53 -0500 (CDT) Original-Received: from sclp3.sclp.com (qmailr@sclp3.sclp.com [209.196.61.66]) by sina.hpc.uh.edu (8.9.3/8.9.3) with SMTP id LAA07705 for ; Thu, 18 Oct 2001 11:08:42 -0500 (CDT) Original-Received: (qmail 28505 invoked by alias); 18 Oct 2001 16:08:53 -0000 Original-Received: (qmail 28412 invoked from network); 18 Oct 2001 16:08:44 -0000 Original-Received: from hank.lickey.com (64.81.100.235) by gnus.org with SMTP; 18 Oct 2001 16:08:44 -0000 Original-Received: from squeaker.lickey.com (squeaker.lickey.com [192.168.100.10]) by hank.lickey.com (Postfix) with ESMTP id B7933EDA7 for ; Thu, 18 Oct 2001 10:08:23 -0600 (MDT) Original-Received: from localhost (localhost [127.0.0.1]) by squeaker.lickey.com (Postfix) with ESMTP id 1BBD1BD53 for ; Thu, 18 Oct 2001 10:08:20 -0600 (MDT) Original-Received: by squeaker.lickey.com (Postfix, from userid 1000) id A947DBD2E; Thu, 18 Oct 2001 10:08:18 -0600 (MDT) Original-To: ding@gnus.org In-Reply-To: (prj@po.cwru.edu's message of "Thu, 18 Oct 2001 01:43:43 -0400") Original-Lines: 54 User-Agent: Gnus/5.090004 (Oort Gnus v0.04) Emacs/20.7 X-Virus-Scanned: by AMaViS snapshot-20010714 Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:39398 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:39398 prj@po.cwru.edu (Paul Jarc) writes: > Matt Armstrong wrote: >> I forget the status of Gnus support for generating Mail-Followup-To: >> headers. Is somebody planning to implement this? > > I am. I wasn't planning to do it as a plain hook function because I > figured it should be on by default, but I have the impression hook > variables ought to be nil by default. That will make it a bit > hairier, but still doable. > > I'm thinking something in gnus-msg.el, during initialization of a > new message buffer, can detect when there is a to-list or to-address > parameter for the current group; if so, it'll add a header field > like "X-Gnus-Generate-MFT: yes" (by default; it could be disabled by > setting some variable). Then when we send the message, if that > field is present, we remove it, and if there is also no existing > MFT, then we add one based on To+Cc. > > If you want to have a go at it, feel free. I'm not sure when I'd > get around to it. I think the hardest part is determining which lists the user is subscribed to. I don't think to-address is sufficient. I have several groups into which multiple mailing lists get dumped. For example, all my work e-mail gets dumped into a single group, but there are 10-20 frequently used work mailing lists. And very low volume lists just end up in my main inbox group. So the to-address parameter is not sufficient to express all the lists I'm on. And if we're not relying directly on to-address, I think this can be put into the 'message' package. I was thinking of a global variable holding all subscribed lists -- just a list of addresses: (setq message-subscribed-addresses '("ding" "postfix-users")) There could even be utility functions that read ~/.lists (for Qmail users) and that goes through all the Gnus group parameters looking for to-address parameters, as well as extracting stuff from gnus-parameter-to-address-alist. This could be controlled by a list of functions that produce additional addresses: (setq message-subscribed-addresses-functions '(message-subscribed-addresses-qmail gnus-get-subscribed-addresses)) With this list available, all Mail-Followup-To: generation can be done right before the message is sent. -- matt