Refering to current message headers in mutt macros
Suvayu Ali
fatkasuvayu+linux at gmail.com
Mon Aug 13 21:04:21 UTC 2012
Hi Cameron,
On Mon, Aug 13, 2012 at 09:24:56AM +1000, Cameron Simpson wrote:
> On 13Aug2012 01:11, Suvayu Ali <fatkasuvayu+linux at gmail.com> wrote:
> | > You could use a short python or perl-script to extract the message-id,
> | > e.g. something like this
> | >
> | > perl -ne '/^Message-Id:\s+(.*)/; print "$1\n";'
> |
> | How do I say, run that command on the current message (or pipe it)
> | inside the macro definition?
>
> Use <pipe-message> to send the message to a script which writes a mutt
> command, and then source the resulting file.
>
Do you mean something like this:
"<pipe-message> <shell-cmd> > <tmp-file>; source <tmp-file>"
> Also consider joining the mutt-users list; plenty of mutters there.
Thanks for reminding me, I will do that soon.
:)
--
Suvayu
Open source is the future. It sets us free.
More information about the users
mailing list