Re: Unexplained mutt error

2022-02-25 Thread Jon LaBadie

On Fri, Feb 25, 2022 at 06:25:01PM -0600, Ranjan Maitra wrote:

On Fri Feb25'22 04:31:32PM, Jon LaBadie wrote:

From: Jon LaBadie 
Date: Fri, 25 Feb 2022 16:31:32 -0500
To: mutt-users@mutt.org
Subject: Re: Unexplained mutt error

On Fri, Feb 25, 2022 at 01:33:52PM -0600, Ranjan Maitra wrote:
>
> My apologies, I guess I was not at all clear in my question. I want a
> hook which if I press "r" would give me a query about if I want to
> answer to the list or reply to the sender.
>

Doesn't the "reply_to" setting allow you to do that already.



It does? I have:

set reply_to=yes

I had no idea about this and I looked it up. So I guess I should put
this as a hook inside my list folders. I will try that, thanks!



Have you overlooked the "Type:" for reply_to?  It is type "quadoption".

So instead of just settings yes and no, I think there are 2 additional
settings, "ask-yes" and "ask-no".  Again, I think the "-yes" and "-no"
are the defaults when you just press Enter as your answer.

Jon

--
Jon H. LaBadie j...@labadie.us
 154 Milkweed Dr (540) 868-8052 (H)
 Lake Frederick, VA 22630(703) 935-6720 (M)



Re: Unexplained mutt error

2022-02-25 Thread Ranjan Maitra
On Fri Feb25'22 04:31:32PM, Jon LaBadie wrote:
> From: Jon LaBadie 
> Date: Fri, 25 Feb 2022 16:31:32 -0500
> To: mutt-users@mutt.org
> Subject: Re: Unexplained mutt error
>
> On Fri, Feb 25, 2022 at 01:33:52PM -0600, Ranjan Maitra wrote:
> >
> > My apologies, I guess I was not at all clear in my question. I want a
> > hook which if I press "r" would give me a query about if I want to
> > answer to the list or reply to the sender.
> >
>
> Doesn't the "reply_to" setting allow you to do that already.
>

It does? I have:

set reply_to=yes

I had no idea about this and I looked it up. So I guess I should put this as a 
hook inside my list folders. I will try that, thanks!

Ranjan


Re: Unexplained mutt error

2022-02-25 Thread Jon LaBadie

On Fri, Feb 25, 2022 at 01:33:52PM -0600, Ranjan Maitra wrote:


My apologies, I guess I was not at all clear in my question. I want a
hook which if I press "r" would give me a query about if I want to
answer to the list or reply to the sender.



Doesn't the "reply_to" setting allow you to do that already.

--
Jon H. LaBadie j...@labadie.us
 154 Milkweed Dr (540) 868-8052 (H)
 Lake Frederick, VA 22630(703) 935-6720 (M)



Re: Unexplained mutt error

2022-02-25 Thread Ranjan Maitra
On Fri Feb25'22 01:29:14PM, Kurt Hackenberg wrote:
> From: Kurt Hackenberg 
> Date: Fri, 25 Feb 2022 13:29:14 -0500
> To: mutt-users@mutt.org
> Subject: Re: Unexplained mutt error
>
> On 2022/02/25 10:53, Ranjan Maitra wrote:
>
> > Regardless, actually I think that all I would be happy with would be a 
> > query or something that alerts me to the fact that I am potentially writing 
> > to an individual address (or a list) (for when I am  on a list, but not in 
> > general, because then I start to blindly accept because most email is not 
> > to a list).
>
> It's possible to configure Mutt so that its index tells you that a message
> came from a list. The default index format includes %L, so all you'd have to
> do is use "subscribe" to tell Mutt what lists you're subscribed to. Or
> there's $auto_subscribe, to do that automatically for lists that announce
> themselves.
>
> With the index telling you the message came from a list, then you would know
> to reply with 'L'.
>
> You could try this to see if you like it by just adding this to your
> .muttrc:
> set auto_subscribe=yes
>
> This section of the manual describes what Mutt can do with mailing lists:
> 


My apologies, I guess I was not at all clear in my question. I want a hook 
which if I press "r" would give me a query about if I want to answer to the 
list or reply to the sender.

Thanks,
Ranjan


Re: Unexplained mutt error

2022-02-25 Thread Kurt Hackenberg

On 2022/02/25 10:53, Ranjan Maitra wrote:


Regardless, actually I think that all I would be happy with would be a query or 
something that alerts me to the fact that I am potentially writing to an 
individual address (or a list) (for when I am  on a list, but not in general, 
because then I start to blindly accept because most email is not to a list).


It's possible to configure Mutt so that its index tells you that a 
message came from a list. The default index format includes %L, so all 
you'd have to do is use "subscribe" to tell Mutt what lists you're 
subscribed to. Or there's $auto_subscribe, to do that automatically for 
lists that announce themselves.


With the index telling you the message came from a list, then you would 
know to reply with 'L'.


You could try this to see if you like it by just adding this to your 
.muttrc:

set auto_subscribe=yes

This section of the manual describes what Mutt can do with mailing lists:



Re: Unexplained mutt error

2022-02-25 Thread Patrick Shanahan
* Ranjan Maitra  [02-25-22 10:54]:
> On Fri Feb25'22 07:00:05AM, Charles Cazabon wrote:
> > From: Charles Cazabon 
> > Date: Fri, 25 Feb 2022 07:00:05 -0600
> > To: mutt-users@mutt.org
> > Subject: Re: Unexplained mutt error
> >
> > Kurt Hackenberg  wrote:
> > > On 2022/02/22 18:10, Ranjan Maitra wrote:
> > >
> > > > As an aside, for others: is there, in .muttrc a way to set things such
> > > > that hitting "r" would automatically switch to reply list ("L") for
> > > > specific folders?
> > [...]
> > > It's possible to change key bindings, so maybe you could do that on the 
> > > fly,
> > > conditionally, for certain folders...or maybe you could write some tricky
> > > macro...but I think probably those are both bad ideas. I think you'd do
> > > better to just always use 'L' to reply to a list.
> >
> > That's the right solution, but I've also seen people configure their MDA to
> > add a Reply-To: header to incoming list messages that don't have them.  
> > Just a
> > thought.
> >
> 
> I see: I use fetchmail and then procmail for fetching email. So, would this 
> be done through fetchmail or procmail?
> 

If you *must* add a header, procmail would be the app.

> Regardless, actually I think that all I would be happy with would be a query 
> or something that alerts me to the fact that I am potentially writing to an 
> individual address (or a list) (for when I am  on a list, but not in general, 
> because then I start to blindly accept because most email is not to a list).
> 
> Any thoughts on if this is possible?

man muttrc

specifically look at 
  lists  [  ... ]
  
and "subscribe"
  
-- 
(paka)Patrick Shanahan   Plainfield, Indiana, USA  @ptilopteri
http://en.opensuse.orgopenSUSE Community Memberfacebook/ptilopteri
Photos: http://wahoo.no-ip.org/piwigo   paka @ IRCnet oftc
What sort of day was it?  A day like all days, filled with 
those events that alter and illuminate our times... 


Re: Unexplained mutt error

2022-02-25 Thread Charles Cazabon
Ranjan Maitra  wrote:
> On Fri Feb25'22 07:00:05AM, Charles Cazabon wrote:
> >
> > That's the right solution, but I've also seen people configure their MDA
> > to add a Reply-To: header to incoming list messages that don't have them.
> 
> I see: I use fetchmail and then procmail for fetching email. So, would this
> be done through fetchmail or procmail?

Here procmail is your MDA.  I know it can do such things, but don't ask me
how.

> Regardless, actually I think that all I would be happy with would be a query
> or something that alerts me to the fact that I am potentially writing to an
> individual address (or a list) (for when I am  on a list, but not in
> general, because then I start to blindly accept because most email is not to
> a list).
> 
> Any thoughts on if this is possible?

There's a number of ways.  If your list mail is in separate folders, you can
use a folder hook to just disable the (r) function, or to remap it to
list-reply.

Charles
-- 
---
Charles Cazabon
GPL'ed software available at:   http://pyropus.ca/software/
---


Re: Unexplained mutt error

2022-02-25 Thread Ranjan Maitra
On Fri Feb25'22 07:00:05AM, Charles Cazabon wrote:
> From: Charles Cazabon 
> Date: Fri, 25 Feb 2022 07:00:05 -0600
> To: mutt-users@mutt.org
> Subject: Re: Unexplained mutt error
>
> Kurt Hackenberg  wrote:
> > On 2022/02/22 18:10, Ranjan Maitra wrote:
> >
> > > As an aside, for others: is there, in .muttrc a way to set things such
> > > that hitting "r" would automatically switch to reply list ("L") for
> > > specific folders?
> [...]
> > It's possible to change key bindings, so maybe you could do that on the fly,
> > conditionally, for certain folders...or maybe you could write some tricky
> > macro...but I think probably those are both bad ideas. I think you'd do
> > better to just always use 'L' to reply to a list.
>
> That's the right solution, but I've also seen people configure their MDA to
> add a Reply-To: header to incoming list messages that don't have them.  Just a
> thought.
>

I see: I use fetchmail and then procmail for fetching email. So, would this be 
done through fetchmail or procmail?

Regardless, actually I think that all I would be happy with would be a query or 
something that alerts me to the fact that I am potentially writing to an 
individual address (or a list) (for when I am  on a list, but not in general, 
because then I start to blindly accept because most email is not to a list).

Any thoughts on if this is possible?

Many thanks and best wishes,
Ranjan




Re: Unexplained mutt error

2022-02-25 Thread Charles Cazabon
Kurt Hackenberg  wrote:
> On 2022/02/22 18:10, Ranjan Maitra wrote:
> 
> > As an aside, for others: is there, in .muttrc a way to set things such
> > that hitting "r" would automatically switch to reply list ("L") for
> > specific folders?
[...]
> It's possible to change key bindings, so maybe you could do that on the fly,
> conditionally, for certain folders...or maybe you could write some tricky
> macro...but I think probably those are both bad ideas. I think you'd do
> better to just always use 'L' to reply to a list.

That's the right solution, but I've also seen people configure their MDA to
add a Reply-To: header to incoming list messages that don't have them.  Just a
thought.

Charles
-- 
---
Charles Cazabon
GPL'ed software available at:   http://pyropus.ca/software/
---