Re: Is there a hook for modifying a To: field?

2020-08-26 Thread Kurt Hackenberg

On 2020-08-26 15:29, Ian Zimmerman wrote:


It would be easy if List-Post: was always present and the other was
sometimes there.


Right, in my case the List-Post is consistent and is the only address
"subscribed" in mutt.

If the List-Post is _not_ consistent, I'd really call it a buggy list
and try to get the listmasters' attention.



Agreed, I also call that a list bug. The set of List-* headers should be 
present in every message from the list.


Re: Is there a hook for modifying a To: field?

2020-08-26 Thread Ian Zimmerman
On 2020-08-26 10:00, Chris Green wrote:

> > I am on a few lists that behave like this. I think they might be
> > rather more common than you suspect. But, I have never had a problem
> > posting - list reply always uses only the address in List-Post. (I
> > use neomutt, maybe it is different in this respect?)
> > 
> Do you have both 'list' addresses in the lists and subscribe entries
> in muttrc?  If the List-Post: entry was always present on my list then
> I could remove the other from lists/subscribe, but it isn't always
> there.
> 
> It would be easy if List-Post: was always present and the other was
> sometimes there.

Right, in my case the List-Post is consistent and is the only address
"subscribed" in mutt.

If the List-Post is _not_ consistent, I'd really call it a buggy list
and try to get the listmasters' attention.

-- 
Ian


Re: Is there a hook for modifying a To: field?

2020-08-26 Thread Chris Green
On Tue, Aug 25, 2020 at 02:52:00PM -0700, Ian Zimmerman wrote:
> On 2020-08-25 15:37, Kurt Hackenberg wrote:
> 
> > >To: "'David Eyre'" ,
> > >   "'ixion'" 
> > ...
> > >List-Post: 
> > 
> > Two different addresses for the list.  Which one is correct?
> > 
> > Do all messages from the list have this mismatch, or only messages
> > from this sender?  If all of them, I suspect misconfiguration of the
> > mailing list software.  If only those from this sender, I suspect that
> > he has an incorrect list address stored locally.
> 
> I am on a few lists that behave like this. I think they might be rather
> more common than you suspect. But, I have never had a problem posting -
> list reply always uses only the address in List-Post. (I use neomutt,
> maybe it is different in this respect?)
> 
Do you have both 'list' addresses in the lists and subscribe entries
in muttrc?  If the List-Post: entry was always present on my list then
I could remove the other from lists/subscribe, but it isn't always
there.

It would be easy if List-Post: was always present and the other was
sometimes there.

-- 
Chris Green


Re: Is there a hook for modifying a To: field?

2020-08-26 Thread Chris Green
On Tue, Aug 25, 2020 at 03:37:57PM -0400, Kurt Hackenberg wrote:
> On Tue, Aug 25, 2020 at 01:46:52PM +0100, Chris Green wrote:
> 
> >Here's the headers, rather verbose I'm afraid:-
> ...
> >From: NWY6 
> ...
> >To: "'David Eyre'" ,
> > "'ixion'" 
> ...
> >List-Post: 
> 
> Two different addresses for the list.  Which one is correct?
> 
> Do all messages from the list have this mismatch, or only messages
> from this sender?  If all of them, I suspect misconfiguration of the
> mailing list software.  If only those from this sender, I suspect that
> he has an incorrect list address stored locally.

It's basically pretty random.  Some senders use one address, some use
the other, so I have to treat both addresses as list addresses.
Removing ix...@ixion.org.uk from lists/subscribe in my muttrc means
that L[ist reply] won't work with all messages to the list.

-- 
Chris Green


Re: Is there a hook for modifying a To: field?

2020-08-25 Thread Ian Zimmerman
On 2020-08-25 15:37, Kurt Hackenberg wrote:

> >To: "'David Eyre'" ,
> > "'ixion'" 
> ...
> >List-Post: 
> 
> Two different addresses for the list.  Which one is correct?
> 
> Do all messages from the list have this mismatch, or only messages
> from this sender?  If all of them, I suspect misconfiguration of the
> mailing list software.  If only those from this sender, I suspect that
> he has an incorrect list address stored locally.

I am on a few lists that behave like this. I think they might be rather
more common than you suspect. But, I have never had a problem posting -
list reply always uses only the address in List-Post. (I use neomutt,
maybe it is different in this respect?)

-- 
Ian


Re: Is there a hook for modifying a To: field?

2020-08-25 Thread raf
On Tue, Aug 25, 2020 at 01:05:39PM +0100, Chris Green  wrote:

> On Tue, Aug 25, 2020 at 09:15:55AM +1000, raf wrote:
> > On Mon, Aug 24, 2020 at 10:32:56AM +0100, Chris Green  wrote:
> > 
> > > I am on a mailing list which has two addresses, occasionally when one
> > > does L[ist reply] the To: address is:-
> > > 
> > > ix...@ixiemaster.ixion.org.uk, Ixilist 
> > > 
> > > At present I normally notice this and remove one of the addresses but
> > > it would be nice if I could automate this.  Is there a hook (send_hook
> > > maybe) that can be used to change this?  It can't just change every
> > > case of either ix...@ixiemaster.ixion.org.uk or ix...@ixion.org.uk as
> > > most of the time a L[ist reply] only gets a single address.
> > > 
> > > -- 
> > > Chris Green
> > 
> > It seems odd that a mailing list would have two
> > addresses. Presumably the are interchangeable. If so,
> > perhaps you could use procmail or imapfilter to replace
> > all instances of one of the addresses with the other as
> > the email arrives. That way, when you read it, mutt
> > only sees one of the addresses.
> > 
> It's the only list I'm on that's like this.  I have a custom filter
> program handling incoming mail so I *could* add a special rule but it
> would have to step outside the normal logic of the filter.
> 
> If I replace all occurrences of one address with the other won't mutt
> then simply send a L[ist reply] to the same address twice? ... or does
> mutt have internal logic such that it won't send mail to duplicated
> addresses?
> 
> -- 
> Chris Green

You could apply the transformation to one email manually, and test that.

cheers,
raf



Re: Is there a hook for modifying a To: field?

2020-08-25 Thread Kurt Hackenberg
On Tue, Aug 25, 2020 at 01:46:52PM +0100, Chris Green wrote:

>Here's the headers, rather verbose I'm afraid:-
...
>From: NWY6 
...
>To: "'David Eyre'" ,
>   "'ixion'" 
...
>List-Post: 

Two different addresses for the list.  Which one is correct?

Do all messages from the list have this mismatch, or only messages
from this sender?  If all of them, I suspect misconfiguration of the
mailing list software.  If only those from this sender, I suspect that
he has an incorrect list address stored locally.


Re: Is there a hook for modifying a To: field?

2020-08-25 Thread Chris Green
On Tue, Aug 25, 2020 at 09:52:01AM +1000, Cameron Simpson wrote:
> On 24Aug2020 10:32, Chris Green  wrote:
> >I am on a mailing list which has two addresses, occasionally when one
> >does L[ist reply] the To: address is:-
> >
> >ix...@ixiemaster.ixion.org.uk, Ixilist 
> >
> >At present I normally notice this and remove one of the addresses but
> >it would be nice if I could automate this.  Is there a hook (send_hook
> >maybe) that can be used to change this?  It can't just change every
> >case of either ix...@ixiemaster.ixion.org.uk or ix...@ixion.org.uk as
> >most of the time a L[ist reply] only gets a single address.
> 
> Can you show the headers of such a message which produces this To: 
> header? And do you have any mutt list subscription settings for these 
> lists?
> 
> [ Personally I use (g)roup-reply and then edit the headers, but I'm 
> weird. ]
> 
Here's the headers, rather verbose I'm afraid:-

`
>From MAILER-DAEMON Tue Aug 25 12:32:32 2020
Return-Path: 
X-Original-To: ch...@zbmc.eu
Delivered-To: ch...@zbmc.eu
Received: from gh-forwarders.misp.co.uk (gh-forwarders.misp.co.uk 
[31.170.120.82])
by esprimo.zbmc.eu (Postfix) with ESMTPS id 2E3D22C01CD
for ; Tue, 25 Aug 2020 13:32:32 +0100 (BST)
Received: from exim by mail3.eqx.gridhost.co.uk with spam-scanned (Exim 4.94)
(envelope-from )
id 1kAY7r-0005xx-Jq
for c...@isbd.net; Tue, 25 Aug 2020 13:32:31 +0100
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on spam4.gridhost.co.uk
X-Spam-Level: 
X-Spam-Status: No, score=-1.9 required=4.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED,
DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM,MAILING_LIST_MULTI,RDNS_NONE,
SPF_HELO_NONE,SPF_NONE,SUBJ_ALL_CAPS autolearn=ham version=3.3.2
X-Spam-RelaysUntrusted: [ ip=35.176.9.206 rdns= helo=ixiemaster.ixion.org.uk
by=mail3.eqx.gridhost.co.uk ident=
envfrom=ixion-boun...@ixiemaster.ixion.org.uk intl=0 id=1kAY7q-0005vF-Kz
auth= msa=0 ] [ ip=127.0.0.1 rdns=localhost helo=!35.176.9.206!
by=ixiemaster.ixion.org.uk ident=
envfrom=ixion-boun...@ixiemaster.ixion.org.uk intl=0 id=1kAY7k-0004KQ-KZ
auth= msa=0 ] [ ip=209.85.128.41 rdns=mail-wm1-f41.google.com
helo=mail-wm1-f41.google.com by=ixiemaster.ixion.org.uk ident=
envfrom=nowayhos...@gmail.com intl=0 id=1kAY7g-0004KH-4P auth= msa=0 ] [
ip=212.159.87.235 rdns=osbornedance.plus.com. helo=OSDA00 
by=smtp.gmail.com
ident= envfrom= intl=0 id=w1sm5645301wmc.18.2020.08.25.05.32.13 
auth=ESMTPSA
msa=0 ]
Received: from [35.176.9.206] (helo=ixiemaster.ixion.org.uk)
by mail3.eqx.gridhost.co.uk with esmtps  (TLS1.2) tls 
TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256
(Exim 4.94)
(envelope-from )
id 1kAY7q-0005vF-Kz; Tue, 25 Aug 2020 13:32:30 +0100
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; 
d=ixion.org.uk; s=20180418;

h=Subject:Sender:List-Subscribe:List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID:Date:In-Reply-To:References:To:From;
 bh=ONaoaCWQ475ZCazJeIgpXfZEbUo1TaB1lNwbIHSGmSg=;

b=cFxIfP5RMcqxWOeVx7y2nm2EDR20RzeLrPb5uZe7YkXq9k/TgSXBZl9AXnXA9JlhOXiHMafzLaYAQSy0HQu6AhAOFS0LsxdW5LV3b3uAoDZvacsVytN9M4iuBNLRWNoEEt+obt9i4GubaS7948fM6OQrSk7YHlLbUpVssD7kpi0=;
Received: from localhost ([127.0.0.1] helo=[35.176.9.206])
by ixiemaster.ixion.org.uk with esmtp (Exim 4.84_2)
(envelope-from )
id 1kAY7k-0004KQ-KZ; Tue, 25 Aug 2020 13:32:26 +0100
Received: from mail-wm1-f41.google.com ([209.85.128.41])
 by ixiemaster.ixion.org.uk with esmtp (Exim 4.84_2)
 (envelope-from ) id 1kAY7g-0004KH-4P
 for ix...@ixion.org.uk; Tue, 25 Aug 2020 13:32:21 +0100
Received: by mail-wm1-f41.google.com with SMTP id y8so1036793wma.0
 for ; Tue, 25 Aug 2020 05:32:20 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=from:to:references:in-reply-to:subject:date:message-id:mime-version
 :content-transfer-encoding:thread-index:content-language
 :disposition-notification-to;
 bh=ONaoaCWQ475ZCazJeIgpXfZEbUo1TaB1lNwbIHSGmSg=;
 b=OnZ/ZLddh37VN4tJkpoZBU6PuLqcuZETfnoq9YfXTAjazPlGdJPut72mXddTc26b4j
 lO4sK06OfE55WU7fHwbBGqF542IWm2LCqxbuNdKA4NC+Rmfnhkij+WtIysLALXN3BGS1
 I754BhGAWQkwmWlTbN9TPQ+L8aLR+FiB7RK/Z+zb8KQOHzXA6JM6vFWzLtQFQzmNVAXy
 /XA2VbPVphgvPe4ifP6Q4wJ62aj1TcxQzABnDmQo9myYEMQLnecF8kzDXAvS19GRtBKm
 FlHTcpqNjifcLg05k+IOvy2zzVlNT05X1kuM1LNaYwqYgwp2XFEJ3WnyPB++Edmxh/ss
 3+LA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:from:to:references:in-reply-to:subject:date
 :message-id:mime-version:content-transfer-encoding:thread-index
 :content-language:disposition-notification-to;
 bh=ONaoaCWQ475ZCazJeIgpXfZEbUo1TaB1lNwbIHSGmSg=;
 b=qIMOmEX8zodnWO68oqcgOkafe0uUhjosvqBIqbBpJ338TaKUuk0BR8p1tXcREuwjtv
 fbcYwHV6GTk67acd/BveSwzcehE3hn7EQhETi3w15uFsU7LoRfHIKUgopzbjNK2svW/x
 KEBQBVp1d8XupGWT

Re: Is there a hook for modifying a To: field?

2020-08-25 Thread Chris Green
On Tue, Aug 25, 2020 at 09:15:55AM +1000, raf wrote:
> On Mon, Aug 24, 2020 at 10:32:56AM +0100, Chris Green  wrote:
> 
> > I am on a mailing list which has two addresses, occasionally when one
> > does L[ist reply] the To: address is:-
> > 
> > ix...@ixiemaster.ixion.org.uk, Ixilist 
> > 
> > At present I normally notice this and remove one of the addresses but
> > it would be nice if I could automate this.  Is there a hook (send_hook
> > maybe) that can be used to change this?  It can't just change every
> > case of either ix...@ixiemaster.ixion.org.uk or ix...@ixion.org.uk as
> > most of the time a L[ist reply] only gets a single address.
> > 
> > -- 
> > Chris Green
> 
> It seems odd that a mailing list would have two
> addresses. Presumably the are interchangeable. If so,
> perhaps you could use procmail or imapfilter to replace
> all instances of one of the addresses with the other as
> the email arrives. That way, when you read it, mutt
> only sees one of the addresses.
> 
It's the only list I'm on that's like this.  I have a custom filter
program handling incoming mail so I *could* add a special rule but it
would have to step outside the normal logic of the filter.

If I replace all occurrences of one address with the other won't mutt
then simply send a L[ist reply] to the same address twice? ... or does
mutt have internal logic such that it won't send mail to duplicated
addresses?

-- 
Chris Green


Re: Is there a hook for modifying a To: field?

2020-08-24 Thread Cameron Simpson
On 24Aug2020 10:32, Chris Green  wrote:
>I am on a mailing list which has two addresses, occasionally when one
>does L[ist reply] the To: address is:-
>
>ix...@ixiemaster.ixion.org.uk, Ixilist 
>
>At present I normally notice this and remove one of the addresses but
>it would be nice if I could automate this.  Is there a hook (send_hook
>maybe) that can be used to change this?  It can't just change every
>case of either ix...@ixiemaster.ixion.org.uk or ix...@ixion.org.uk as
>most of the time a L[ist reply] only gets a single address.

Can you show the headers of such a message which produces this To: 
header? And do you have any mutt list subscription settings for these 
lists?

[ Personally I use (g)roup-reply and then edit the headers, but I'm 
weird. ]

Cheers,
Cameron Simpson 


Re: Is there a hook for modifying a To: field?

2020-08-24 Thread raf
On Mon, Aug 24, 2020 at 10:32:56AM +0100, Chris Green  wrote:

> I am on a mailing list which has two addresses, occasionally when one
> does L[ist reply] the To: address is:-
> 
> ix...@ixiemaster.ixion.org.uk, Ixilist 
> 
> At present I normally notice this and remove one of the addresses but
> it would be nice if I could automate this.  Is there a hook (send_hook
> maybe) that can be used to change this?  It can't just change every
> case of either ix...@ixiemaster.ixion.org.uk or ix...@ixion.org.uk as
> most of the time a L[ist reply] only gets a single address.
> 
> -- 
> Chris Green

It seems odd that a mailing list would have two
addresses. Presumably the are interchangeable. If so,
perhaps you could use procmail or imapfilter to replace
all instances of one of the addresses with the other as
the email arrives. That way, when you read it, mutt
only sees one of the addresses.

cheers,
raf