On Mon, Jun 17, 2013 at 10:28:54AM -0500, David Champion wrote:
> * On 16 Jun 2013, jeremy bentham wrote: 
> > I have a macro which works...sometimes.
> > 
> > macro generic,pager ,t ":set folder=imaps://mail.eskimo.com<enter>c
> > =toms<enter>*v/AM<enter><enter>"
> > 
> > (All one long line in my muttrc; I broke it up for readability
> > here.)
> > 
> > If it fails, when I launch it mutt beeps immediately after I hit
> > "t" and doesn't complete it.  Usually it gets as far as the toms
> > mailbox and opens that.
> > 
> > When it works, it finds a particular pdf file (nice of the sender
> > always to include the string AM only in that file...) and opens it.
> 
> When it doesn't work, can you execute it manually with success?  

Huh.  Don't think I've ever managed to _reliably_ test that,
since it hasn't failed twice running, OR, since it fails midway,
I just do the necessary keystrokes to finish it.

Not like it's automating something that would otherwise take me
fifteen minutes :-) .

> Other than that I can't help debug very much because I don't 
> know what your key bindings are, and I no longer remember 
> the defaults.
> 
> General tip for requesting help on the lists: formulate your macros
> to use keybinding names, not keystrokes.  That means putting each and
> every interaction EXCEPT for prompt input into angle brackets using the
> binding's name.  If you can do that before posting, more people will
> understand what you're trying to do up front.
> 
> No criticism meant -- just a utilitarian perspective. ;)

Okay:

macro generic,pager ,t ":set
folder=imaps://mail.eskimo.com<enter><change-folder>
=toms<enter><last-entry><view-attachments><search>AM<enter><enter>"

I stuck this version in my muttrc and it failed, then worked.

-- 
 Dave Williams    [email protected]

Reply via email to