I'm using the isync package from Debian [0.7-1] and mutt from Debian
[1.3.28-2] and attempting to use the folder-hooks from
http://www.cs.hmc.edu/~me/isync/ without success.

Here are some examples that don't work for me:

folder-hook '!' 'macro index $ "<sync-mailbox>!isync -aC\n"'

folder-hook '!' "macro index $ <sync-mailbox><shell-escape>'isync -aC'<enter>"

The intention is to macro the $ key to flag the messages as deleted, and
update all of my listed mailboxes.  If there are no deleted messages in
the folder, no problem.  It will fetch new ones.  But as soon as I
delete a message and try to use the $-macro, mutt tells me:

/home/binder/Mail/manjusri/aC is not a mailbox.

where /home/binder/Mail/manjusri/ is my designated spoolfile. 
I suspect this is a case of something being expanded in a way which I'm
not expecting.

I finally found a workaround, which is to leave $ defaulted to
<sync-mailbox> and use this folder-hook, instead:

folder-hook '!' "macro index G \
    <shell-escape>'isync -aC'<enter>"

I suppose it's no great hardship to use $ followed by G to sync the
deleted messages to the mailbox and subsequently call isync to purge
them, but I'm confused as to why the <function> notation is
expanding in the ways it seems to be.

Can someone point me at a source for information about quoting,
expansion and macros in mutt?  I've found some useful bits in the manual
but nothing seems to explain what I'm seeing and all the Google searches
I can think of turn up old bug reports.

--Shannon.

Reply via email to