Re: Some small projects for mutt(1)

2002-07-01 Thread Josef Karthauser

On Thu, Jun 20, 2002 at 04:18:38PM -0400, Bosko Milekic wrote:
 
 
   Interesting.  How would you have a key bound sequence in mutt set off
 the script on the message, though?  For instance, if I do a ctrl+B, how
 would you ensure that the Right Thing happens, without modifying mutt
 code?
 

Like this:

# Urlview
macro index \cv |urlview\n
macro pager \cv |urlview\n

# Hot keys
macro index \cn l~N\n
macro index \ca lall\n

That fragment from my .muttrc says that control-v is used to invoke the
script urlview (which is in the ports and produces a list of urls in the
email message, and allows me to selection one which gets piped to a
browser).  I've also go ctrl-N and ctrl-A set for each message
selection.

Joe



msg35408/pgp0.pgp
Description: PGP signature


Re: Some small projects for mutt(1)

2002-06-20 Thread Brandon D. Valentine

On Thu, 20 Jun 2002, Bosko Milekic wrote:

On Thu, Jun 20, 2002 at 01:10:39PM -0700, Matthew Hunt wrote:
 This shouldn't be hard to glue together without modifying mutt itself.
 Make a little program, foo, that takes the message on stdin, passes
 it through formail -x subject, massages it into a procmail rule, and
 appends it to some procmail rule file.  The massage step should include
 escaping characters that have special meanings in procmail regexps, and
 adding something like (Re: *)? at the beginning of the subject when
 appropriate.  Shouldn't be more than a screenful of Perl.

  Interesting.  How would you have a key bound sequence in mutt set off
the script on the message, though?  For instance, if I do a ctrl+B, how
would you ensure that the Right Thing happens, without modifying mutt
code?

Check out mutt2procmailrc written by my good friend timball:

http://www.ghettohack.net/timball/

It rocks.

Brandon D. Valentine
-- 
http://www.geekpunk.net [EMAIL PROTECTED]
++[++-][++-].[+-][+-]+.+++..++
+.+[++-]++.+++..+++.--..+.


To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-hackers in the body of the message



Re: Some small projects for mutt(1)

2002-06-20 Thread Matthew Hunt

On Thu, Jun 20, 2002 at 04:18:38PM -0400, Bosko Milekic wrote:

   Interesting.  How would you have a key bound sequence in mutt set off
 the script on the message, though?  For instance, if I do a ctrl+B, how
 would you ensure that the Right Thing happens, without modifying mutt
 code?

By adding something like this to your .muttrc:

macro index \Cb '|/usr/local/bin/junkmail^M'

-- 
Matthew Hunt [EMAIL PROTECTED] * Science rules.
http://www.pobox.com/~mph/   *

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-hackers in the body of the message



Re: Some small projects for mutt(1)

2002-06-20 Thread Bosko Milekic


On Thu, Jun 20, 2002 at 03:27:24PM -0500, Brandon D. Valentine wrote:
 On Thu, 20 Jun 2002, Bosko Milekic wrote:
 
 On Thu, Jun 20, 2002 at 01:10:39PM -0700, Matthew Hunt wrote:
  This shouldn't be hard to glue together without modifying mutt itself.
  Make a little program, foo, that takes the message on stdin, passes
  it through formail -x subject, massages it into a procmail rule, and
  appends it to some procmail rule file.  The massage step should include
  escaping characters that have special meanings in procmail regexps, and
  adding something like (Re: *)? at the beginning of the subject when
  appropriate.  Shouldn't be more than a screenful of Perl.
 
   Interesting.  How would you have a key bound sequence in mutt set off
 the script on the message, though?  For instance, if I do a ctrl+B, how
 would you ensure that the Right Thing happens, without modifying mutt
 code?
 
 Check out mutt2procmailrc written by my good friend timball:
 
 http://www.ghettohack.net/timball/

  Hey, this is awesome stuff!  Thanks!  How come we don't have a port?

 It rocks.
 
 Brandon D. Valentine
 -- 
 http://www.geekpunk.net [EMAIL PROTECTED]
 ++[++-][++-].[+-][+-]+.+++..++
 +.+[++-]++.+++..+++.--..+.

Regards,
-- 
Bosko Milekic
[EMAIL PROTECTED]
[EMAIL PROTECTED]


To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-hackers in the body of the message



Re: Some small projects for mutt(1)

2002-06-20 Thread Brandon D. Valentine

On Thu, 20 Jun 2002, Bosko Milekic wrote:

  Hey, this is awesome stuff!  Thanks!  How come we don't have a port?

I've been busy.  ;-)

Feel free to do the port if you get time before I do.

Brandon D. Valentine
-- 
http://www.geekpunk.net [EMAIL PROTECTED]
++[++-][++-].[+-][+-]+.+++..++
+.+[++-]++.+++..+++.--..+.


To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-hackers in the body of the message