On Wed, Jun 26, 2002 at 11:29:23PM +0530, Vikram Goyal wrote:

> I have defined a folder-hook as:
> folder-hook !Trash "push <enter-command>unset maildir_trash<enter>"
> 
> But the error coming is 'push too many arguments'
> 
> How can I resolve this. Please point me where I am wrong.

That's because the folder hook sees the command

    "push <enter-command>unset maildir_trash<enter>"

so the push command sees the two arguments

    <enter-command>unset

and

    maildir_trash<enter>

The solution is to quote the argument to push.  I think this will work,
but I haven't tested it.

    folder-hook !Trash 'push "<enter-command>unset maildir_trash<enter>"'

HTH,
Gary

-- 
Gary Johnson                               | Agilent Technologies
[EMAIL PROTECTED]                   | Spokane, Washington, USA
http://www.spocom.com/users/gjohnson/mutt/ |

Reply via email to