<<< Date Index >>>     <<< Thread Index >>>

Re: too many arguments



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Monday, July 10 at 10:00 AM, quoth johns@xxxxxxxxxxxxxxx:
>i have a macro that gives me an error message:
>Error in /home/johns/.muttrc, line 44: macro: too many arguments
>source: errors in /home/johns/.muttrc
>Press any key to continue...

You are putting in spaces (and quotes) without escaping them. Try 
quoting your macro string, like so:

>macro index \ch <enter-command>set 
>editor="/bin/true"<enter><forward-message>spam<enter><enter><send-message><delete-message><enter-command>set
> editor=$EDITOR<enter>

macro index \ch '<enter-command>set 
editor="/bin/true"<enter><forward-message>spam<enter><enter><send-message><delete-message><enter-command>set
 editor=$EDITOR<enter>'

Note the single quotes.

You could also escape the spaces, like so:

macro index \ch <enter-command>set\ 
editor="/bin/true"<enter><forward-message>spam<enter><enter><send-message><delete-message><enter-command>set\
 editor=$EDITOR<enter>

~Kyle
- -- 
One of the world's greatest problems is the impossibility of any 
person searching for the truth on any subject when they believe they 
already have it.
                                                        -- Dave Wilbur
-----BEGIN PGP SIGNATURE-----
Comment: Thank you for using encryption!

iD8DBQFEsl+gBkIOoMqOI14RAiCoAKCYMXkVOQJsClIqUMy5xVIrfikOSgCgyHx5
NiaJ7Vxtepvr09b/B/BaZyw=
=8lZK
-----END PGP SIGNATURE-----