From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/39403 Path: main.gmane.org!not-for-mail From: prj@po.cwru.edu (Paul Jarc) Newsgroups: gmane.emacs.gnus.general Subject: Re: Generating Mail-Followup-To: headers Date: Thu, 18 Oct 2001 12:59:46 -0400 Organization: What did you have in mind? A short, blunt, human pyramid? Sender: owner-ding@hpc.uh.edu Message-ID: References: <87y9m9fs6b.fsf@squeaker.lickey.com> <87elo1exsd.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 1035175112 27659 80.91.224.250 (21 Oct 2002 04:38:32 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 21 Oct 2002 04:38:32 +0000 (UTC) Return-Path: Original-Received: (qmail 2294 invoked from network); 18 Oct 2001 17:01:38 -0000 Original-Received: from malifon.math.uh.edu (mail@129.7.128.13) by mastaler.com with SMTP; 18 Oct 2001 17:01:38 -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 15uGWk-0002GG-00; Thu, 18 Oct 2001 12:00:15 -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:59:52 -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 LAA08005 for ; Thu, 18 Oct 2001 11:59:38 -0500 (CDT) Original-Received: (qmail 2264 invoked by alias); 18 Oct 2001 16:59:47 -0000 Original-Received: (qmail 2259 invoked from network); 18 Oct 2001 16:59:47 -0000 Original-Received: from multivac.student.cwru.edu (HELO multivac.cwru.edu) (qmail-remote@129.22.96.25) by gnus.org with SMTP; 18 Oct 2001 16:59:47 -0000 Original-Received: (qmail 17970 invoked by uid 500); 18 Oct 2001 17:00:08 -0000 Mail-Followup-To: ding@gnus.org Original-To: ding@gnus.org Mail-Copies-To: never In-Reply-To: <87elo1exsd.fsf@squeaker.lickey.com> (Matt Armstrong's message of "Thu, 18 Oct 2001 10:08:18 -0600") Original-Lines: 50 User-Agent: Gnus/5.090004 (Oort Gnus v0.04) Emacs/20.7 Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:39403 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:39403 Matt Armstrong wrote: > I was thinking of a global variable holding all subscribed lists -- > just a list of addresses: > > (setq message-subscribed-addresses '("ding" "postfix-users")) Those should definitely be complete addresses (or regexps), not just the local parts. Aside from that, this could be a useful: if any of the addressees matches one of these, then we generate MFT based on all of To+Cc. I'd call the variable message-mft-addresses or message-mft-regexps, though. > 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. I'm not sure how useful the ~/.lists function would be - qmail users already get MFT from qmail-inject with ~/.lists. But yes, it should definitely be possible to maintain message-mft-regexps automatically. > 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. Ok, so when sending a message, we do something like this: if there is an existing MFT: if it's empty: remove it ;; this lets the user turn off MFT for a single message ;; when it would otherwise be added automatically else: leave it as-is else: (let ((message-mft-regexps message-mft-regexps)) (when message-mft-addresses-functions call each function, adding its returned regexps to m-m-r ) check each address in To+Cc against each pattern in m-m-r if any match is found, put all To+Cc addresses in a new MFT ) Sound good? People who don't want to call all those functions for evey message can construct m-m-r once and leave m-m-a-f as nil. paul