On Fri, Nov 30, 2001 at 03:54:33PM -0500, Dan Boger wrote:
> On Fri, Nov 30, 2001 at 12:40:36PM -0800, Gary Johnson wrote:
> > On Fri, Nov 30, 2001 at 08:48:04PM +0100, Cristian wrote:
> > > On Fri, Nov 30, 2001 at 10:23:51AM -0800, Gary Johnson wrote:
> > > Could you automate it? Could you find out whether there are more
> > > than, say, 3 URLs in a message body so it's worth to hand over control
> > > to w3m? Can you do it without slowing down the whole Mutt?
> > 
> > I don't think so.  The problem is that you would have to use an external
> > program to count the URLs and mutt doesn't send the message text to any
> > external program (e.g., "display_filter" or "pager") until it has
> > decided which pager it is going to use.  An external pager wrapper
> > program could select among a set of external pagers, but it couldn't
> > select mutt's internal pager.
> 
> what if you set up a procmail filter, to add a header to messages with 3
> or more urls, and then have mutt match that header?  would that work?

Yes, I think that would work.

Gary

-- 
Gary Johnson                               | Agilent Technologies
[EMAIL PROTECTED]                   | Spokane, Washington, USA
http://www.spocom.com/users/gjohnson/mutt/ |

Reply via email to