:: Re: [DNG] sender's address [was: Ke…
Page principale
Supprimer ce message
Répondre à ce message
Auteur: Walter Dnes
Date:  
À: Devuan list
Sujet: Re: [DNG] sender's address [was: Keyboard scancodes, keycodes & etc.]
On Sun, Jan 19, 2025 at 09:10:20PM +0100, Didier Kryn wrote

> This means that the true author of the mail should be found in the
> "Reply-to:" field.


Yeah, but... *THIS IS A MAILING LIST AND REPLIES SHOULD GO TO THE
LIST*. When I joined this list recently, I found that some posts would
show up as being "From: johnsmith@???". My MUA (mutt) has
options to reply to the list or to the individual sender. This has
worked with all other mailing lists I've ever subscribed to. But there
were some posts in this list where the reply would *ALWAYS* go back to
the individual sender. I got tired of manually over-writing the reply
destination to go to the list. I did some research ("asked Mr. Google")
and came up with a two-step procmail recipie to fix the problem...

############################################################
:0:
* ^Return-Path: .*dng-bounces@lists\.dyne\.org
{
    :0fhw
    | formail -I"Reply-To: dng@??? (Devuan list)"


    :0:
    devuan/
}
############################################################


Notes:

1) At the top, check for for the "Return-Path:" unique to this list.
If found, go into the recipies inside the braces. Note that the match
is done done only once at the very top. The steps inside the braces are
executed unconditionally. If flow gets inside the braces, we know that
the "Return-Path:" header matches.

2) procmail is set up to take only one action per step. The "formail"
step adds the desired "Reply-To:" header and deletes all other
"Reply-To:" headers. The incoming email is not delivered, but continues
through the chain of recipies.

3) The next step is unconditional delivery to my "devuan/" mailbox. I
use "Maildir" format, hence the trailing slash.

--
Walter Dnes <waltdnes@???>
There are 2 types of people in this world
1) Those who can extrapolate from incomplete data