Re: Refering to current message headers in mutt macros

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Cameron,

On Tue, Aug 14, 2012 at 08:38:45AM +1000, Cameron Simpson wrote:
> On 13Aug2012 23:04, Suvayu Ali <fatkasuvayu+linux@xxxxxxxxx> 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 <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>"
> 
> No, it looks like you're using the shell's "source" command.
> I imagine you want mutt doing the sourcing, since you will be writing mutt
> commands to the file. Something like:
> 
>   <pipe-message> shell-command >tempfile <enter> <enter-command>source
>   tempfile<enter>
> 
> I would have "shell-command" invoke a script of your own; that way it is
> easy to modify and your macro is simple.
> 

This was very helpful thank you.  I had some trouble figuring out how to
form the command returned by my script, I realised now I had to use
`push "string with <command> and arguments"'.

> | > Also consider joining the mutt-users list; plenty of mutters there.
> | Thanks for reminding me, I will do that soon.
> 
> Not that I have any objection to extra mutt advertising here, but your
> issues are mutt specific, not fedora specific...
> 

:) 

Thanks again,

-- 
Suvayu

Open source is the future. It sets us free.
-- 
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux