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

Re: macro question



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

On Wednesday, August  6 at 11:32 PM, quoth Thorsten Scherf:
> in my muttrc I have the following:
>
> folder-hook . 'macro index,pager d <delete-message>'
> folder-hook 'INBOX$' \
>  'macro pager,index d "<save-message>+INBOX.Trash<enter>"'
>
> this should move my deleted mails from INBOX to the trash folder. but it
> doesn't work.

Hmmm... What is the value of $folder? How about this (untested):

folder-hook = \
   'macro pager,index d "<save-message>+INBOX.Trash<enter>"'

I'm guessing that the inbox is referred to in mutt's innards slightly 
differently than you're expecting for whatever reason.

Obviously, it's the regex that's the issue. You could also just try 
something simple like adding:

     folder-hook I 'set my_var=testing; set ?my_var'

... And if that works, build it up from there:

     folder-hook IN 'set my_var=testing2; set ?my_var'

~Kyle
- -- 
Next in importance to freedom and justice is popular education, 
without which neither freedom nor justice can be permanently 
maintained.
                                                   -- James A. Garfield
-----BEGIN PGP SIGNATURE-----
Comment: Thank you for using encryption!

iEYEARECAAYFAkiai64ACgkQBkIOoMqOI179ywCguveJRSpIQbpoBHRGBAj61G5l
pc4An2Ry5CowP+xAmEM9/baP1JqrbX9W
=jb+z
-----END PGP SIGNATURE-----