Is there any access to header values in muttrc file?

2022-01-22 Thread Chris Green
Is there any way to 'see' header values from send-hook?

I want to be able to manipulate the To: address in an external program
so I want to do something like:-

send-hook 'barges.org/discussion-forum' 'source myscript.sh $to|'

I.e. I want the To: address fed into myscript.sh.


-- 
Chris Green


Can one access aliases (the alias 'name' that is) in muttrc file?

2022-01-22 Thread Chris Green
Is there any way to get at the alias 'name' in muttrc?

I'm trying to use send-hook (or send2-hook, or anything really) in
muttrc to change actions/configuration based on the alias which has
been expanded to the destination address.

I have a number of different aliases which expand to the same
destination and I want to do different things according to which alias
was used to send the E-Mail.

I.e. I have aliases (generated dynamically, but that doesn't matter
really) as follows:-

alias dbablife fo...@barges.org
alias dbabarges fo...@barges.org
alias dbabrexit fo...@barges.org
alias dbaeur fo...@barges.org
alias dbagbi fo...@barges.org
alias dbaeutravel fo...@barges.org
alias dbaforum fo...@barges.org

I want to to be able to change things in the message according to the
alias that was used.  I can't add anything extra to the
fo...@barges.org because that's used to match some header information
in received messages.

-- 
Chris Green