Hi all,
I got stuck, while trying to get the following to work:
. I am able to receive mails by local_part filtering, this means,
name-topic1@domain, name-topic2@domain, ...
are automatically forwarded to name@domain
. Now when I reply to a mail I have received e.g. on the address
name-topic1@domain, I want mutt to take this address and put it
into the From field (plus some additional config changes
like http://www.acoustics.hut.fi/~mara/mutt/profiles.html)
. All "-xxxxxx" suffixes are arbitrary and nowhere configured,
filtering is done by pattern matching.
. I use mutt (1.5.18 debian) currently
How could I implement the filtering?
I faild using message-hook, which works in principle, because I did not
get the clue how to pass a matched string to the executed command.
After that, I tried a workaround. The message-hook runs a script,
which writes the desired mutt commands to tmp file. Which could be
sourced after piping:
message-hook . "push
'<pipe-message>~/.mutt/message_hook.pl<enter><source>~/.mutt/message_hook.tmp<enter>'"
The message pipe works, but I am not sure if <source> is the right syntax
here, because From is not changed. Sourcing it manually works.
Are there other, more suited, ways to implement this?
E.g something like pipe message to a script and the output of the script is
piped automatically by mutt?
Thanks for reading
Bastian