Re: Undependable macro

2013-06-20 Thread jeremy bentham
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.comc
> > =toms*v/AM"
> > 
> > (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
=tomsAM"

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

-- 
 Dave Williamsd...@eskimo.com


Re: Undependable macro

2013-06-17 Thread David Champion
* On 16 Jun 2013, jeremy bentham wrote: 
> I have a macro which works...sometimes.
> 
> macro generic,pager ,t ":set folder=imaps://mail.eskimo.comc
> =toms*v/AM"
> 
> (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?  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. ;)

-- 
David Champion • d...@bikeshed.us


Undependable macro

2013-06-16 Thread jeremy bentham
I have a macro which works...sometimes.

macro generic,pager ,t ":set folder=imaps://mail.eskimo.comc
=toms*v/AM"

(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.

I suspect there's some sort of timing issue; I've gotten as far
as not finding any obvious way to _wait_ in TFM.  If that's the
problem

-- 
 Dave Williamsd...@eskimo.com