change Reply-To:

Pau vim.unix at gmail.com
Wed Oct 21 13:36:04 UTC 2020


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 <xxxxx at 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.unix at 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 <xxxxx at xxxx.xyz>'
>
> and it works fine!
>
> thanks again,
>
> Pau
>
> On Tue, Oct 20, 2020 at 9:13 PM Jon LaBadie <mutter at 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 ಚಿರಾಗ್ ನಟರಾಜ್ <mailinglist at 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.email at domain.tld>'
> > > >
> >
> > Something like this is working for me:
> >
> >   set my_ChGrp='^(aa at chdom1\.com|bb at chdom2\.com|cc at chnet\.net)$'
> >
> >   send-hook '~t $my_ChGrp' 'my_hdr Reply-To: Me Me <Me at 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 <Me at my.com>'
> >
> > Jon
> > --
> > Jon H. LaBadie                 jon at labadie.us
> >  11226 South Shore Rd.          (703) 787-0688 (H)
> >  Reston, VA  20190              (703) 935-6720 (C)


More information about the Mutt-users mailing list