Re: toggle-quoted

2016-04-10 Thread Bernard Massot
Le 30/03/2016 à 14:15, Andreas Mueller a écrit :
> How can I default fold the quoted Mail in the pager without
> pressing T ?
You can add the following line to your configuration file:
message-hook ~A 'push '
-- 
Bernard Massot


message matching as the index cursor moves

2016-04-10 Thread cs
I've got a macro whose action I would like to adjust according the to status of 
the current message. Thus:


 message-hook . 'macro index,pager F 
"+spool-to-phone" "Flag message 
(copy to phone also)."'

 message-hook ~F 'macro index,pager F "" "Unlag 
message."'

This does not do what I want. What I want is to adjust the definition of the 
"F" macro as I move through messages in the index. Reading the doco, I see that 
message-hook is fired when mutt is deciding how to format a message for the 
pager. (BTW, the exact times various hooks are fired seems rather vague in the 
doco.)


Anyway, is there a way to do what I want, either to fire hooks as I step 
through the index (in index view, not pager view), _or_ to adjust the action of 
a macro according the the flags of the message (or other status - generally any 
pattern I might use in  I suppose).


The reason I want this is that I have "F" bound to both set the (F)lagged 
status _and_ to bounce a copy of the message to my phone (where I keep a 
"shortlist" of important messages). But I want "F" on an already flagged 
message to undo the (F)lagged status and _not_ bounce an additional copy to my 
phone.


Cheers,
Cameron Simpson 


Re: toggle-quoted

2016-04-10 Thread Andreas Mueller
 unfortunately not:
 if I go to my send-dialog,
 I get parts of the hook-macro in my "To:" field

 Andreas

On 11.04.16 08:42, Andreas Mueller wrote:
>   that's it  :-)
>   thanks a lot and have a nice week
> 
>   Andreas
> 
> On 10.04.16 12:31, Bernard Massot wrote:
> > Le 30/03/2016 à 14:15, Andreas Mueller a écrit :
> > > How can I default fold the quoted Mail in the pager without
> > > pressing T ?
> > You can add the following line to your configuration file:
> > message-hook ~A 'push '
> > -- 
> > Bernard Massot
> 
> -- 
> Andreas Müller - Raum: 35/114b - Tel: 2875

-- 
Andreas Müller - Raum: 35/114b - Tel: 2875