Re: Refering to current message headers in mutt macros

2012-08-14 Thread Suvayu Ali
Hi Cameron, On Tue, Aug 14, 2012 at 08:38:45AM +1000, Cameron Simpson wrote: > On 13Aug2012 23:04, Suvayu Ali wrote: > | On Mon, Aug 13, 2012 at 09:24:56AM +1000, Cameron Simpson wrote: > | > | How do I say, run that command on the current message (or pipe it) > | > | inside the macro definition?

Re: Refering to current message headers in mutt macros

2012-08-13 Thread Cameron Simpson
On 13Aug2012 23:04, Suvayu Ali wrote: | On Mon, Aug 13, 2012 at 09:24:56AM +1000, Cameron Simpson wrote: | > | How do I say, run that command on the current message (or pipe it) | > | inside the macro definition? | > | > Use to send the message to a script which writes a mutt | > command, and th

Re: Refering to current message headers in mutt macros

2012-08-13 Thread Suvayu Ali
Hi Cameron, On Mon, Aug 13, 2012 at 09:24:56AM +1000, Cameron Simpson wrote: > On 13Aug2012 01:11, Suvayu Ali 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";' > | > | H

Re: Refering to current message headers in mutt macros

2012-08-12 Thread Cameron Simpson
On 13Aug2012 01:11, Suvayu Ali 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 definit

Re: Refering to current message headers in mutt macros

2012-08-12 Thread Suvayu Ali
Hello Heinz, On Sun, Aug 12, 2012 at 11:29:37PM +0200, Heinz Diehl wrote: > Hei, > > On 12.08.2012, Suvayu Ali wrote: > > > I am trying to write a mutt macro where I need to refer to a header from > > the current message. The use case is something like this: > [] > > I'm not quite shure w

Re: Refering to current message headers in mutt macros

2012-08-12 Thread Heinz Diehl
Hei, On 12.08.2012, Suvayu Ali wrote: > I am trying to write a mutt macro where I need to refer to a header from > the current message. The use case is something like this: [] I'm not quite shure what you want mutt to do in this case. Functions as e.g. "limit" can match on specific content

Refering to current message headers in mutt macros

2012-08-12 Thread Suvayu Ali
Hi Mutt using Fedora users, I am trying to write a mutt macro where I need to refer to a header from the current message. The use case is something like this: macro pager " \n" Is there anyway to do that? PS: If I could run a shell command on the current message to get the info, that wo