mmmh... I spoke too fast.... it does not work, instead, Reply-To: is always set to the alternative email address, regardless of
send-hook '~t ^.*\.cn$' 'my_hdr Reply-To: Me Surname <xx...@xxxx.xyz>' or defining a group, as Jon suggested... can you please explain the syntax of that send-hook? maybe I will be able to understand why it is not working... The backslash is to "protect" all dots, right? and the circumflex ^ means "starting with"... what if it is just one address among another 10? On Wed, Oct 21, 2020 at 12:29 PM Pau <vim.u...@gmail.com> wrote: > > thanks to you all! This is what I came up with... Since the only > problem I have is with China addresses, I have added this line > > send-hook '~t ^.*\.cn$' 'my_hdr Reply-To: Me Surname <xx...@xxxx.xyz>' > > and it works fine! > > thanks again, > > Pau > > On Tue, Oct 20, 2020 at 9:13 PM Jon LaBadie <mut...@jgcomp.com> wrote: > > > > On Tue, Oct 20, 2020 at 06:51:15PM +0200, Pau wrote: > > > thanks a lot! Is there a way to have several email addresses in a > > > single hook, or do I have to repeat the hook for every single email > > > address? > > > > > > On Tue, Oct 20, 2020 at 6:25 PM ಚಿರಾಗ್ ನಟರಾಜ್ <mailingl...@chiraag.me> > > > wrote: > > > > > > > > Hi Pau, > > > > > > > > You can use a send-hook with something like this: > > > > > > > > send-hook '~t <insert email address here>' 'my_hdr Reply-To: Alternate > > > > Email <alternate.em...@domain.tld>' > > > > > > > > Something like this is working for me: > > > > set my_ChGrp='^(aa@chdom1\.com|bb@chdom2\.com|cc@chnet\.net)$' > > > > send-hook '~t $my_ChGrp' 'my_hdr Reply-To: Me Me <m...@my.com>' > > > > If they all have the same domain, or one that can be expressed > > by a regular expression, something like this might work also: > > > > send-hook '~t ^.*@chdom\.com$' 'my_hdr Reply-To: Me Me <m...@my.com>' > > > > Jon > > -- > > Jon H. LaBadie j...@labadie.us > > 11226 South Shore Rd. (703) 787-0688 (H) > > Reston, VA 20190 (703) 935-6720 (C)