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

Re: save-message to ? and then sync the folder



Hi,

* Michael Elkins wrote:
On Thu, Nov 27, 2008 at 02:20:13PM +0100, trance202@xxxxxx wrote:
how can I sync the mailbox after save a message to any folder like this:

macro s "<save-message>?"

the above works great, but after this save mutt should sync
automatically. Like this:

macro s "<save-message>?<sync-mailbox>"

but, this doesn't work, because mutt wait for any data from user and
take then ync-mailbox> as mailbox-destination, which is wrong.

Unfortunately Mutt does not have any way to do what you want.  The
keyboard macro support is not really a substitute for full scripting,
which is really what you'd need here.

Hmm, how about

     macro s "<save-message>?\n<sync-mailbox>"

or

     macro s "<save-message>?<enter><sync-mailbox>"

if I get the problem right.

Rocco