Re: Mail-Followup-To and friends

2010-10-25 Thread Mike Hollis
On Mon, Oct 25, 2010 at 01:25:53PM -0500, Kyle Wheeler wrote:
> On Saturday, October 23 at 05:45 PM, quoth Mike Hollis:
> > The only problem with this config is I have to use List-Reply for 
> > some mail and not for others.
> 
> I had this problem (or something similar), and I used hooks to "fix" 
> it for all intents and purposes. With the following hooks, I just use 
> 'r' to reply to any and all messages, and mutt will almost always do 
> the right thing:
> 
> # make replying to the list something I don't have to think about 
>   
> folder-hook . 'bind index l list-reply; bind index r 
> reply' 
> folder-hook "INBOX.Subscribed"'bind index r list-reply; bind index l 
> reply' 
> folder-hook "INBOX.Organizations" 'bind index r list-reply; bind index l 
> reply' 
> message-hook .'bind pager l list-reply; bind pager r 
> reply' 
> message-hook ~l   'bind pager r list-reply; bind pager l 
> reply' 
> 
> In essence, this swaps r and l back and forth in terms of what they 
> do. The first three hooks handle index behavior, the last two hooks 
> handle "what happens when I'm viewing a message" (and function 
> independently of the first three hooks, so list messages can be in any 
> folder). For messages that match the ~l pattern (i.e. lists I am 
> subscribed to or have otherwise defined as mailing lists), r is a 
> list-reply, otherwise, it's a normal reply.
> 
> Maybe this will help you.
> 
> ~Kyle

This works well.I tried on all my mailing list boxes and Mutt brings up 
the list address with "r". I truly appreciate the tip.

Thanks

--- Mike  Hollis ---



Re: Mail-Followup-To and friends

2010-10-25 Thread Kyle Wheeler
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

On Saturday, October 23 at 05:45 PM, quoth Mike Hollis:
> The only problem with this config is I have to use List-Reply for 
> some mail and not for others.

I had this problem (or something similar), and I used hooks to "fix" 
it for all intents and purposes. With the following hooks, I just use 
'r' to reply to any and all messages, and mutt will almost always do 
the right thing:

# make replying to the list something I don't have to think about   
folder-hook . 'bind index l list-reply; bind index r reply' 
folder-hook "INBOX.Subscribed"'bind index r list-reply; bind index l reply' 
folder-hook "INBOX.Organizations" 'bind index r list-reply; bind index l reply' 
message-hook .'bind pager l list-reply; bind pager r reply' 
message-hook ~l   'bind pager r list-reply; bind pager l reply' 

In essence, this swaps r and l back and forth in terms of what they 
do. The first three hooks handle index behavior, the last two hooks 
handle "what happens when I'm viewing a message" (and function 
independently of the first three hooks, so list messages can be in any 
folder). For messages that match the ~l pattern (i.e. lists I am 
subscribed to or have otherwise defined as mailing lists), r is a 
list-reply, otherwise, it's a normal reply.

Maybe this will help you.

~Kyle
- -- 
I do not feel obliged to believe that the same God who has endowed us 
with sense, reason, and intellect has intended us to forgo their use.
-- Gallileo
-BEGIN PGP SIGNATURE-
Comment: Thank you for using encryption!

iQIcBAEBCAAGBQJMxcuxAAoJECuveozR/AWeB6kP/A5ULros+1pI0e1LzMAlwK2y
0MpMOhAHySU9AVS/GsioyfeyH71QISsL2d2Bl24sYw/41dgTa1YEtlIcsDcDXKuT
bcyV//VNkVgY69yRqCN0f30IlpHPWpvkwptWhk+DbQ2PAurUFdu6NfU+C1xqSiMM
8c0nvKbq5r7FE4IyZnWKggXbADMTgC5FYZ83U1+eyVarqVm3Lr7mmlk95RweKXAM
tkbf5kv5u2qOHsGmJTYjvmt+Yd2C4uKDPSbdmPZKkgmZOk9A3/aoBn7yJPboxGvY
1lroUbT1Uy6261+S9K1Re1DRItLCLX453TDgfYrhI2ZpkIYit/WtRZRdPga+sDKS
Bjys+u7LC12Rfe2JwzOO3HZ7kbpDCYkMuSd4AJi7tYJZH1tevl8FK6gpesBZ5IcR
2/3Nu1v32rRRRkeRl8y/bZy5eMkAREgTpL2sK9VF7vx7bCoWJnRWqzhJA8l8pfna
Ci2UXolPrGoh2xcK5G91AeP08hst6qlpI2ZoG2ThmJ6X3hRJtOQL2FUB7iHjRxqT
RCL3dxsKTrSrDowwpE6jwqY3oPGtacmNwE6htkboD/Fvxdks+uZ7EN5UrUrVgTrU
00i61Ltb7T8evUtY3C0mqX92OL1SQpYpCFOUWNLHvsXRRFYB4iKU9pQ+gq4NA40l
Sb5qAsbgkiLil6cUIhA9
=Ot/w
-END PGP SIGNATURE-


Re: Mail-Followup-To and friends

2010-10-24 Thread Mike Hollis
On Sun, Oct 24, 2010 at 02:14:30PM +1100, Cameron Simpson wrote:
> On 23Oct2010 17:45, Mike Hollis  wrote:

> | The only problem with this config is I have to use List-Reply for some
> | mail and not for others.
> 
> they're usually what I intend and easy to change if not.
> 
> I can only suggest some message-hooks to remap 'r' to  or
>  based on patterns, if you don't take my unkosher
>  approach. For example (untested):
> 
>   message-hook . 'map r ""'
>   message-hook '(regexp-matching-your-lists...)' 'map r ""'
>   # or a pattern based on a List-*: header maybe
> 


Many thanks for the suggestions. I tried a couple of hooks last night,
but they didn't have the intended result. I need to brush up on the 
hooks syntax and regular expressions and RTFM.For now using the 
list-reply  works .

-- Mike Hollis ---


Re: Mail-Followup-To and friends

2010-10-23 Thread Cameron Simpson
On 23Oct2010 17:45, Mike Hollis  wrote:
| After reading the docs I have :
| set followup_to=yes 
| set honor_followup_to=yes
| lists  mutt-users@ some-others@
| **suscribe caused only mutt-users@ to be shown in the index
| ** I wanted to see the posters names
| various save-hooks
| 
| If I understand correctly I wiil have Mail-Followup-to header set to the 
| mailing list I am responding and responces go to the list rather than to 
| me , which is what I want.
| 
| The only problem with this config is I have to use List-Reply for some
| mail and not for others.

I confess I always use  ('g') and always eyeball the headers;
they're usually what I intend and easy to change if not.

I can only suggest some message-hooks to remap 'r' to  or
 based on patterns, if you don't take my unkosher
 approach. For example (untested):

  message-hook . 'map r ""'
  message-hook '(regexp-matching-your-lists...)' 'map r ""'
  # or a pattern based on a List-*: header maybe

Cheers,
-- 
Cameron Simpson  DoD#743
http://www.cskk.ezoshosting.com/cs/

Shaft drive, rubber band drive; it doesn't matter. If you can sit
on a bench and race, you can sit at a counter and steer.
- Thomas Keener 


Re: Mail-Followup-To and friends

2010-10-23 Thread Mike Hollis
On Sat, Oct 23, 2010 at 07:30:22PM -0300, Monte Stevens wrote:
> On Sat, Oct 23, 2010 at 05:45:51PM -0400, Mike Hollis wrote:
> > **suscribe caused only mutt-users@ to be shown in the index
> > ** I wanted to see the posters names
> 
> What is your index_format?
> If you are using the default, change the 'L' to 'n'.
> 
> (Sorry for excessive trimming, I only wanted to tackle that part.)
> 
> -- 
> Monte
Thx for the response. The default :
set index_format="%4C %Z %{%b %d} %-15.15L (%?l?%4l&%4c?) %s"

edited to:
set index_format="%4C %Z %{%b %d} %-15.15n (%?l?%4l&%4c?) %s"

fixed the index problem. 

Thanks again for adding to my Mutt lore.

Mike Hollis


Re: Mail-Followup-To and friends

2010-10-23 Thread Monte Stevens
On Sat, Oct 23, 2010 at 05:45:51PM -0400, Mike Hollis wrote:
> **suscribe caused only mutt-users@ to be shown in the index
> ** I wanted to see the posters names

What is your index_format?
If you are using the default, change the 'L' to 'n'.

(Sorry for excessive trimming, I only wanted to tackle that part.)

-- 
Monte