Re: why :command does not work

2017-12-18 Thread Rainer Sokoll


> Am 18.12.2017 um 08:09 schrieb Yubin Ruan :
> 
> Why :command fails to execute the `command'. Doesn't mutt work like vim?

: lets you invoke muttrc commands. You are looking for !.

Rainer


signature.asc
Description: Message signed with OpenPGP


Re: why :command does not work

2017-12-18 Thread Yubin Ruan
On Mon, Dec 18, 2017 at 11:29:28AM +0100, Rainer Sokoll wrote:
> 
> 
> > Am 18.12.2017 um 08:09 schrieb Yubin Ruan :
> > 
> > Why :command fails to execute the `command'. Doesn't mutt work like vim?
> 
> : lets you invoke muttrc commands. You are looking for !.

I mean, when at index, doing :toggle-new does not work (error unknown
command).

Yubin


Re: why :command does not work

2017-12-18 Thread Jörg Sommer
Yubin Ruan hat am Mon 18. Dec, 18:58 (+0800) geschrieben:
> On Mon, Dec 18, 2017 at 11:29:28AM +0100, Rainer Sokoll wrote:
> > 
> > 
> > > Am 18.12.2017 um 08:09 schrieb Yubin Ruan :
> > > 
> > > Why :command fails to execute the `command'. Doesn't mutt work like vim?
> > 
> > : lets you invoke muttrc commands. You are looking for !.
> 
> I mean, when at index, doing :toggle-new does not work (error unknown
> command).

Is ":exec toggle-new" what you are looking for?

Regards, Jörg


signature.asc
Description: PGP signature


Re: why :command does not work

2017-12-18 Thread Yubin Ruan
On Mon, Dec 18, 2017 at 12:46:59PM +0100, Jörg Sommer wrote:
> Yubin Ruan hat am Mon 18. Dec, 18:58 (+0800) geschrieben:
> > On Mon, Dec 18, 2017 at 11:29:28AM +0100, Rainer Sokoll wrote:
> > > 
> > > 
> > > > Am 18.12.2017 um 08:09 schrieb Yubin Ruan :
> > > > 
> > > > Why :command fails to execute the `command'. Doesn't mutt work like vim?
> > > 
> > > : lets you invoke muttrc commands. You are looking for !.
> > 
> > I mean, when at index, doing :toggle-new does not work (error unknown
> > command).
> 
> Is ":exec toggle-new" what you are looking for?

Yes. Many thanks! Are there any other options other than :exec? I mean, any
other options after a : , such as :look-for-some-command ...

Yubin


Re: set Bcc when To: is not myself

2017-12-18 Thread Yubin Ruan
On Mon, Dec 18, 2017 at 07:34:36AM +, David Woodfall wrote:
> > How can I set the Bcc: to myself when To: is not myself?
> > 
> > I try something like this but it does not work:
> >send-hook "!~t ablacktsh...@gmail.com" 'my_hdr Bcc: Yubin Ruan 
> > '
> > 
> > Then I try this and it work when I try to send a fresh email:
> > 
> >send-hook "~t ablacktshirt" 'my_hdr Bcc:'
> >send-hook . 'my_hdr Bcc: Yubin Ruan '
> > 
> > however when I reply to somebody, it does not work. Frustrating! ;-(
> > 
> >Yubin
> 
> I read in an old post that changing/setting headers doesn't work with
> send-hook.

Is this a bug or something?

Yubin


Re: set Bcc when To: is not myself

2017-12-18 Thread David Woodfall

On Mon, Dec 18, 2017 at 07:34:36AM +, David Woodfall wrote:

> How can I set the Bcc: to myself when To: is not myself?
>
> I try something like this but it does not work:
>send-hook "!~t ablacktsh...@gmail.com" 'my_hdr Bcc: Yubin Ruan 
'
>
> Then I try this and it work when I try to send a fresh email:
>
>send-hook "~t ablacktshirt" 'my_hdr Bcc:'
>send-hook . 'my_hdr Bcc: Yubin Ruan '
>
> however when I reply to somebody, it does not work. Frustrating! ;-(
>
>Yubin

I read in an old post that changing/setting headers doesn't work with
send-hook.


Is this a bug or something?

Yubin


It doesn't seem to be.


Re: why :command does not work

2017-12-18 Thread Kevin J. McCarthy
On Mon, Dec 18, 2017 at 09:09:49PM +0800, Yubin Ruan wrote:
> Yes. Many thanks! Are there any other options other than :exec? I mean, any
> other options after a : , such as :look-for-some-command ...

Other commands are listed at
https://dev.mutt.org/doc/manual.html#commands

 is a function; others are described at
https://dev.mutt.org/doc/manual.html#functions

Functions are typically executed via key-bindings, but can also be run
via the push or exec command (or using hooks, macros, etc).

-- 
Kevin J. McCarthy
GPG Fingerprint: 8975 A9B3 3AA3 7910 385C  5308 ADEF 7684 8031 6BDA


signature.asc
Description: PGP signature