From: Bob Newell <bobnewell@bobnewell.net>
To: ding@gnus.org
Subject: Re: Aliases with mailing lists
Date: Fri, 03 Dec 2021 11:28:32 -1000 [thread overview]
Message-ID: <87h7bps7i7.fsf@emailmessageidheader.nil> (raw)
In-Reply-To: <87y251y1ej.fsf@ericabrahamsen.net> (Eric Abrahamsen's message of "Fri, 03 Dec 2021 10:43:48 -0800")
Eric Abrahamsen <eric@ericabrahamsen.net> 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
next prev parent reply other threads:[~2021-12-03 21:28 UTC|newest]
Thread overview: 29+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-12-03 1:07 Bob Newell
2021-12-03 17:43 ` Bob Newell
2021-12-03 18:43 ` Eric Abrahamsen
2021-12-03 20:45 ` Emanuel Berg
2021-12-04 12:57 ` Byung-Hee HWANG
2021-12-04 13:17 ` Emanuel Berg
2021-12-05 12:19 ` Byung-Hee HWANG
2021-12-05 18:15 ` Emanuel Berg
2021-12-06 4:56 ` Byung-Hee HWANG
2021-12-06 5:37 ` Byung-Hee HWANG
2021-12-03 21:28 ` Bob Newell [this message]
2021-12-03 22:21 ` Bob Newell
2021-12-04 0:38 ` Eric Abrahamsen
2021-12-05 11:42 ` Eric S Fraga
2021-12-03 18:12 ` Emanuel Berg
2021-12-05 12:42 ` Eric S Fraga
2021-12-05 18:12 ` Emanuel Berg
2021-12-05 20:42 ` Eric S Fraga
2021-12-05 21:30 ` Emanuel Berg
2021-12-05 22:07 ` Eric S Fraga
2021-12-06 2:29 ` Emanuel Berg
2021-12-06 11:05 ` Emanuel Berg
2021-12-06 17:53 Eric Abrahamsen
2021-12-06 18:40 ` Emanuel Berg
2021-12-06 18:46 ` Emanuel Berg
2021-12-07 11:22 ` Eric S Fraga
2021-12-07 12:41 ` Eric S Fraga
2021-12-08 17:46 ` Eric Abrahamsen
2021-12-09 16:59 ` Eric S Fraga
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87h7bps7i7.fsf@emailmessageidheader.nil \
--to=bobnewell@bobnewell.net \
--cc=ding@gnus.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).