Reply from address with +
Josef 'Jeff' Sipek
jeffpc at josefsipek.net
Fri Jun 25 19:49:15 UTC 2021
Hello,
I started more heavily relying on plus addressing (or whatever the official
name for the feature is) to separate out a few things. Unfortunately, it
means that reverse_name=yes is failing more and more often. I'd like it to
set the from address to the same address (with the +foo), but I'm not sure
what the best way to do this is.
That is, an email sent to jeffpc+foo at ... should have the reply from set to
jeffpc+foo at ...
I have (simplified for the sake of discussion):
set from="jeffpc at ..."
set reverse_name=yes
set use_from=yes
alternates jsipek at ...
(Note that my preferred "bare" address is not listed in alternates, it is
only in $from.)
I see in the docs that alternates takes regular expressions. So, is the
best way something like:
set from="jeffpc at ..."
set reverse_name=yes
set use_from=yes
alternates jeffpc(\+[^@]+)?@... jsipek(same regexp)@...
In other words, do I have to (1) add my preferred address to alternates, and
(2) change every one of my half a dozen alternates to include a +<anystring>
match?
This seems convoluted, which is why I'm asking if I missed a better way.
Thanks,
Jeff.
More information about the Mutt-users
mailing list