From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-2.3 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, RCVD_IN_DNSWL_MED,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 11618 invoked from network); 3 Dec 2021 21:28:56 -0000 Received: from mx1.math.uh.edu (129.7.128.32) by inbox.vuxu.org with ESMTPUTF8; 3 Dec 2021 21:28:56 -0000 Received: from lists1.math.uh.edu ([129.7.128.208]) by mx1.math.uh.edu with esmtps (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1mtG6w-00Fm1S-5r for ml@inbox.vuxu.org; Fri, 03 Dec 2021 15:28:54 -0600 Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by lists1.math.uh.edu with smtp (Exim 4.94.2) (envelope-from ) id 1mtG6v-001Mjn-LO for ml@inbox.vuxu.org; Fri, 03 Dec 2021 15:28:53 -0600 Received: from mx1.math.uh.edu ([129.7.128.32]) by lists1.math.uh.edu with esmtp (Exim 4.94.2) (envelope-from ) id 1mtG6t-001Mje-Cs for ding@lists.math.uh.edu; Fri, 03 Dec 2021 15:28:51 -0600 Received: from quimby.gnus.org ([95.216.78.240]) by mx1.math.uh.edu with esmtps (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1mtG6n-00Fm12-Vt for ding@lists.math.uh.edu; Fri, 03 Dec 2021 15:28:51 -0600 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:To:From:Sender:Reply-To:Cc:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=DwpheadVjEOLurcsZleJ4BTLBMyRICDhQkqUlkdkqvw=; b=mmRjc8FufX1a6OcjD+dSvXbyvL 7ieNM7j0MHtxt7fd9FB9T2UyEMSMszYK0/B3CqpNzh+VgOmU6VskjSqH516V08UhCtGFzEEIl0vZv afHNV7O004G8ppnoxI7zRBqKQ4t0j4kRmmrx40Mo8SIWMrt2DtVw32AacZ1GllXDvUn4=; Received: from mail-pf1-x434.google.com ([2607:f8b0:4864:20::434]) by quimby.gnus.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1mtG6g-0006RO-H9 for ding@gnus.org; Fri, 03 Dec 2021 22:28:41 +0100 Received: by mail-pf1-x434.google.com with SMTP id z6so4035427pfe.7 for ; Fri, 03 Dec 2021 13:28:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bobnewell-net.20210112.gappssmtp.com; s=20210112; h=from:to:subject:organization:references:date:in-reply-to:message-id :user-agent:mime-version; bh=DwpheadVjEOLurcsZleJ4BTLBMyRICDhQkqUlkdkqvw=; b=t2KmJUYXYWQ5CBkSnE1ylvJxGeRQPzXLrjIZYr6gP0BN4N7ddv7TCF7G8FLd9YpzUj 7Q6Cn6t2mLdavSBqgfB4xEhPDmmlZMKVdJvVvHSQ1Heu6AL5Q7VBUB5ZtaRJCSxcMZPw TrdqNZ+bXFs2hILpM1DpTPZthvdcemFa+ghAmQT8QbPQZmjGogpgWgpI1aZfBcOd2ytt 4RM5GQfMTP6zg4N8K0eXHXLSfLxTcCcuFPBSftwEtPwaxGnoFCmRK1Mnpo6Hdycwf41Y 8bkB5w8aXp2CLonPhCe9lWRs0RHHImS5XTvCvS92g5iNNuPzJuaMa4TxAjzK5H4v9K2E VOaQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:subject:organization:references:date :in-reply-to:message-id:user-agent:mime-version; bh=DwpheadVjEOLurcsZleJ4BTLBMyRICDhQkqUlkdkqvw=; b=4bB/kGCtqU+e8ejIGfEorbzqHz5lZ1ZcRJgrFZhZfUp/QNqWxQnfz4ouM4vSHb0VFl sLyegKxsGi01aUR3/65w75tNxYRPJZqu+OAO7Ri5Wp2CL1mml9Qwjzy7gaIhiexSjQ8b +KxX1okx1QsCzpLCop3h97bf2AcduVcv/ezoIlLpPJ+QUES+4ZDr6dHKeyKOEy9dQPbT s9S1RbKeUrJzhaMIn4v+oINa1pf62NP0t+LWSmlPTnev3WwNPmIWBp+g+AmTBt0S35cm wFFKUJvo7HHNccbKKOd5bPZfYvgTY6DphPqx2IhxYf/rbiXTAT7ailrazL2H5FgwVjzb XX5g== X-Gm-Message-State: AOAM531uGVnnqOPKNegpGKb3YzcgFhPtBoWpMe/5uAKgvyZeqpVWbsac lOjwFFJsPjtNAoadrs8KXusF8qhUf+DP6A== X-Google-Smtp-Source: ABdhPJyS26IvwTg2GlcMJoSNhv/0UhAaXJlwlJooDDTt6tyRIg4C4jn5bhChNZzIH/fXSD4rFWDGew== X-Received: by 2002:a63:554:: with SMTP id 81mr6520633pgf.298.1638566914614; Fri, 03 Dec 2021 13:28:34 -0800 (PST) Received: from localhost (dhcp-141-239-251-8.hawaiiantel.net. [141.239.251.8]) by smtp.gmail.com with ESMTPSA id n71sm4394535pfd.50.2021.12.03.13.28.33 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 03 Dec 2021 13:28:33 -0800 (PST) From: Bob Newell To: ding@gnus.org Subject: Re: Aliases with mailing lists Organization: Avi Gobbler Publishing References: <87mtlisdhh.fsf@emailmessageidheader.nil> <87wnklwpmu.fsf@emailmessageidheader.nil> <87y251y1ej.fsf@ericabrahamsen.net> Date: Fri, 03 Dec 2021 11:28:32 -1000 In-Reply-To: <87y251y1ej.fsf@ericabrahamsen.net> (Eric Abrahamsen's message of "Fri, 03 Dec 2021 10:43:48 -0800") Message-ID: <87h7bps7i7.fsf@emailmessageidheader.nil> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain List-ID: Precedence: bulk Eric Abrahamsen writes: > I'm also a little unclear of what situation you're seeing exactly: do > you mean that expanding names in the "To/From/Cc" headers triggers an > alias switch, but expanding group names in the "Newsgroups" header > doesn't? But the only place `expand-abbrev' is used in header completion > is in the "To/From/Cc" header, so I don't really understand how the two > situations differ. I think I inadvertently left out an important piece of information. BBDB is in use here. I create my own mailing lists using the 'mail-alias' BBDB field. The problem comes up when I enter a BBDB defined mail-alias in the To: field and press the spacebar to expand that into the full list of BBDB addresses that have the mail-alias in question. The list appears, of course, but gnu-alias-determine-identity doesn't run, and so my From: address (etc.) isn't altered, when in fact based on one or more of the mail-alias entries, I may want it changed in accord with my gnus alias rules. The BBDB mail-alias expansion takes place in mail-abbrev-expand-wrapper in mailabbrevs.el which is not part of Gnus. That's where I did some horribly shameful hacking. Everything is fine with simple tab completion of a (non-mail-alias) regular email address in the To: field. > I also don't know what hook gnus-alias uses to do its alias switching; > if we knew that then this would be easier. This happens with tab completion with the following line of code: (add-hook 'bbdb-complete-mail-hook 'gnus-alias-determine-identity) However this mechanism isn't used with mail-alias expansion. > If your Emacs is recent and you have the option > `message-expand-name-standard-ui', try setting it to t and see what that > does. I'll look into it. Thank you for your reply. -- Bob Newell Honolulu, Hawai`i - Via GNU/Linux/Emacs/Gnus/BBDB