Re: viewing URLs (muttils or lynx?)

2008-03-25 Thread Kyle Wheeler

On Friday, March 14 at 10:50 PM, quoth Robert Svoboda:

This got me thinking about this:

1. pipe message through display_filter extracting and
numbering links

2. in the extracting step create macros for internal pager
which would correspond with numbered links

3. source those macros 


4. pressing numbers in pager starts the browser for the link
(Not exactly TAB, but good enough I guess)

What you guys think?


On the thought that just parsing  links would be sufficient, I 
whipped up a little perl script based on what I've done for 
extract_url.pl. I call this little script "tagurl.pl". I'm not 
completely satisfied with it yet, but it's a start. What do you think?


It's designed to be used as a pre-filter for auto_view handlers (i.e.  
it takes HTML input and outputs tagged HTML) OR as a $display_filter 
that extracts/tags links from plaintext.


By default, it creates a macro file that mutt can source called 
~/.tagurl.macro-output


~Kyle
--
He who dares not offend cannot be honest.
   -- Thomas Paine


tagurl.pl
Description: Perl program


pgpWaO2lgmy3j.pgp
Description: PGP signature


Re: Tag all but any thread I have replied to..

2008-03-25 Thread Wael Nasreddine
This One Time, at Band Camp, Kyle Wheeler <[EMAIL PROTECTED]> said, On Tue, Mar 
25, 2008 at 08:26:16PM -0500:
> On Tuesday, March 25 at 11:39 PM, quoth Wael Nasreddine:
> > I'm subscribed to a lot of mailing lists, and sometimes I'd like to
> > clean them up, but I want to keep any thread that I have at least
> > one reply to, how do I tag ALL except threads with my reply ??

> If you're using mutt 1.5.13 or newer, and all your threads are
> currently expanded (i.e. no messages are hidden), AND if you have
> correctly set up your "alternates" addresses, you can use this
> pattern:

>  !~(~P)

> Without correct alternates, you can use this:

>  !~(~C [EMAIL PROTECTED]|~f [EMAIL PROTECTED])

> Without having all of your threads expanded, unfortunately, it's not
> possible. Mutt has a bug in it that prevents collapsed messages from
> being tagged by patterns at all. :(

> If you're using *stable* mutt (1.4.x), then there's no really good way
> to do what you want, unfortunately. Doing it manually is as good as it
> gets.
Thank you that worked nicely :)

--
Wael Nasreddine
http://wael.nasreddine.com
PGP: 1024D/C8DD18A2 06F6 1622 4BC8 4CEB D724  DE12 5565 3945 C8DD 18A2

/\ Reliable source, n.:
/\   The guy you just met.


pgpjTWvxZAKyx.pgp
Description: PGP signature


Re: alternates not working when replying to some mailing lists

2008-03-25 Thread Kyle Wheeler
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Tuesday, March 25 at 06:47 PM, quoth Alain Bench:
>>| send-hook . 'set [EMAIL PROTECTED]'
>>| send-hook ~l 'set [EMAIL PROTECTED]'
>> Does anything speak against this?
>
>That's perfect for you, on the latest Mutt. But setting $from in
>a send-hook wasn't possible before version 1.5.17.

Eh? I didn't know that. All the UPDATING file says about 1.5.17 is 
that --enable-exact-address works again. That's a useful change that 
should probably be documented better.

~Kyle
- -- 
Compassion is the basis of morality.
 -- Arnold Schopenhauer
-BEGIN PGP SIGNATURE-
Comment: Thank you for using encryption!

iEYEARECAAYFAkfpprkACgkQBkIOoMqOI17FWgCgzpShKe7pONGmL9JMoyZiw2ju
kYYAoMzval0R0YlyBaF/z8bcrmtcvErn
=lYrN
-END PGP SIGNATURE-


Re: Tag all but any thread I have replied to..

2008-03-25 Thread Kyle Wheeler
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Tuesday, March 25 at 11:39 PM, quoth Wael Nasreddine:
> I'm subscribed to a lot of mailing lists, and sometimes I'd like to 
> clean them up, but I want to keep any thread that I have at least 
> one reply to, how do I tag ALL except threads with my reply ??

If you're using mutt 1.5.13 or newer, and all your threads are 
currently expanded (i.e. no messages are hidden), AND if you have 
correctly set up your "alternates" addresses, you can use this 
pattern:

 !~(~P)

Without correct alternates, you can use this:

 !~(~C [EMAIL PROTECTED]|~f [EMAIL PROTECTED])

Without having all of your threads expanded, unfortunately, it's not 
possible. Mutt has a bug in it that prevents collapsed messages from 
being tagged by patterns at all. :(

If you're using *stable* mutt (1.4.x), then there's no really good way 
to do what you want, unfortunately. Doing it manually is as good as it 
gets.

~Kyle
- -- 
History will be kind to me, for I intend to write it.
   -- Winston Churchill
-BEGIN PGP SIGNATURE-
Comment: Thank you for using encryption!

iEYEARECAAYFAkfppjgACgkQBkIOoMqOI16XiACg/F6V01qmj3wj31Qb0f4uSOoU
9pcAoLdkFrv1T+voSq877SMNhL8H3yKf
=Mk6G
-END PGP SIGNATURE-


Re: alternates not working when replying to some mailing lists

2008-03-25 Thread Dominik Meister
Hi Alain

Alain Bench [Tue, Mar 25, 2008 at 06:47:23PM +0100]:
> Don't change, Dominik. I'm speaking for others.

Thanks for making that clear.

Dominik

-- 
Dominik Meister
My public GnuPG key is available at http://www.meisternet.ch/gpg.txt


Tag all but any thread I have replied to..

2008-03-25 Thread Wael Nasreddine
Hello,

I'm subscribed to a lot of mailing lists, and sometimes I'd like to
clean them up, but I want to keep any thread that I have at least one
reply to, how do I tag ALL except threads with my reply ??

Right now I have a not-so-fancy solution, I tag all emails except
sent/received by me using '!(~C [EMAIL PROTECTED]|~f [EMAIL PROTECTED])'
and tag/delete them all then I undelete all messages in threads where
I have an undeleted messages manually :S

P.S: I keep Received and Sent messages in the same folder for each
accoung/mailing list, this way I get a nice thread view with all
replies...

Regards,

--
Wael Nasreddine
http://wael.nasreddine.com
PGP: 1024D/C8DD18A2 06F6 1622 4BC8 4CEB D724  DE12 5565 3945 C8DD 18A2

/ö\ "Irrationality is the square root of all evil"
/ö\-- Douglas Hofstadter


pgp7iYg7XvE0A.pgp
Description: PGP signature


Re: folder hooks and condition not for the first message

2008-03-25 Thread Alain Bench
Hello Raphael,

 On Friday, March 21, 2008 at 16:48:11 +0100, Raphael Brunner wrote:

> the command  is to delete from the selected message to
> bottom, not like without it, to the top message.

What happens if you drop  and set $resolve?


Bye!Alain.
-- 
set honor_followup_to=yes in muttrc is the default value, and makes your
list replies go where the original author wanted them to go: Only to the
list, or with a private copy.


Re: alternates not working when replying to some mailing lists

2008-03-25 Thread Alain Bench
Hello Dominik,

 On Monday, March 24, 2008 at 16:18:24 +0100, Dominik Meister wrote:

>| send-hook . 'set [EMAIL PROTECTED]'
>| send-hook ~l 'set [EMAIL PROTECTED]'
> Does anything speak against this?

That's perfect for you, on the latest Mutt. But setting $from in
a send-hook wasn't possible before version 1.5.17. The following is
portable across all Mutt versions and still allowing the $reverse_name
feature (unless you're sending to a list):

| set realname="John D'oh"
| set [EMAIL PROTECTED]
| send-hook .   "unmy_hdr From:"
| send-hook ~l  "my_hdr From: [EMAIL PROTECTED]"

Don't change, Dominik. I'm speaking for others.


Bye!Alain.
-- 
Mutt muttrc tip to send mails in best adapted first necessary and sufficient
charset (version for East Europe Latin-2/CP-852/CP-1250 terminal users):
set 
send_charset="us-ascii:iso-8859-1:iso-8859-15:windows-1252:iso-8859-2:windows-1250:utf-8"


Re: Change the browser used when activating an html attachment

2008-03-25 Thread Andreas Pakulat
On 25.03.08 14:41:05, Kyle Wheeler wrote:
> On Tuesday, March 25 at 08:29 PM, quoth Andreas Pakulat:
> >Hi,
> >
> >a long time ago I configured mutt to use firefox as browser when I
> >open an html attachment. Unfortunately I can't find the place anymore
> >and I'd like to change that back now. How does mutt determine which
> >browser to use for that?
> 
> Mutt uses ~/.mailcap to determine how to handle attachments.

Thanks, that gave me the right starting point. For the record: On my
debian I just need to give konqueror a higher priority via
/etc/mailcap.order

Andreas

-- 
You will have long and healthy life.


Re: Change the browser used when activating an html attachment

2008-03-25 Thread Gary Johnson
On 2008-03-25, Kyle Wheeler <[EMAIL PROTECTED]> wrote:
> On Tuesday, March 25 at 08:29 PM, quoth Andreas Pakulat:
> >Hi,
> >
> >a long time ago I configured mutt to use firefox as browser when I
> >open an html attachment. Unfortunately I can't find the place anymore
> >and I'd like to change that back now. How does mutt determine which
> >browser to use for that?
> 
> Mutt uses ~/.mailcap to determine how to handle attachments.

Mutt looks in other places for your mailcap file as well, so if
you don't find what you're looking for there, look in the mutt 
manual, chapter 5, section 3, "MIME Viewer configuration with 
mailcap", for a list of those other places.  To find the values of 
the $PKGDATADIR and $SYSCONFDIR symbols mentioned there, execute

   mutt -v

from the shell.  You might also want to execute this command,

   set ?mailcap_path

within mutt to see if mutt's default places have been overridden by 
this variable's setting.

Regards,
Gary



Re: Change the browser used when activating an html attachment

2008-03-25 Thread Kyle Wheeler
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Tuesday, March 25 at 08:29 PM, quoth Andreas Pakulat:
>Hi,
>
>a long time ago I configured mutt to use firefox as browser when I
>open an html attachment. Unfortunately I can't find the place anymore
>and I'd like to change that back now. How does mutt determine which
>browser to use for that?

Mutt uses ~/.mailcap to determine how to handle attachments.

~Kyle
- -- 
The test of our progress is not whether we add more to the abundance 
of those who have much; it is whether we provide enough for those who 
have too little.
   -- Franklin D. Roosevelt
-BEGIN PGP SIGNATURE-
Comment: Thank you for using encryption!

iEYEARECAAYFAkfpVVEACgkQBkIOoMqOI14exgCg7xFbJKzvORQ1YOUvrFrv/rJf
YWQAn3ERmsjBYIpX/WsTlo3WILCD4H46
=iS6k
-END PGP SIGNATURE-


Change the browser used when activating an html attachment

2008-03-25 Thread Andreas Pakulat
Hi,

a long time ago I configured mutt to use firefox as browser when I
open an html attachment. Unfortunately I can't find the place anymore
and I'd like to change that back now. How does mutt determine which
browser to use for that?

Andreas

-- 
It was all so different before everything changed.


Store multiple attached files in the same path

2008-03-25 Thread Andreas Pakulat
Hi,

is there a convenient way to store multiple attachements into the same
path? If I tag all of them and then use ;+s mutt asks me for the
filename/path for each one, but I'd like to give just a path and mutt
should use the filenames as are in the mail.

Andreas

-- 
You have a reputation for being thoroughly reliable and trustworthy.
A pity that it's totally undeserved.