Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1urGwy-003NoW-Ag for pgsql-www@arkaria.postgresql.org; Wed, 27 Aug 2025 14:16:33 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1urGww-00FaHI-J4 for pgsql-www@arkaria.postgresql.org; Wed, 27 Aug 2025 14:16:31 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1urGww-00FaH3-Aa for pgsql-www@lists.postgresql.org; Wed, 27 Aug 2025 14:16:30 +0000 Received: from mail-yb1-xb2b.google.com ([2607:f8b0:4864:20::b2b]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1urGwt-0021jF-2a for pgsql-www@lists.postgresql.org; Wed, 27 Aug 2025 14:16:29 +0000 Received: by mail-yb1-xb2b.google.com with SMTP id 3f1490d57ef6-e96e892081eso1161402276.3 for ; Wed, 27 Aug 2025 07:16:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hagander.net; s=mail; t=1756304187; x=1756908987; darn=lists.postgresql.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=AwydVNjh5CmJmFFn10+9OTqUyK5g3KlcCOeCSO9JWT0=; b=GkxA7zEp6F7LHRDnJFZkaGz/jqXAKNk7Jm/kyPrmnqw/8si01jKhfQCnaE9nmwfWYt u52nVYctKST8IgyHgFIOmhKpQ4EP506gsBSwjB+VxEqNP1y7DVaRB0Ll7F6fF+3RNIEn NFRIvjRorgmiU6I1DSZ+dCCxFjcUg9TwBlRENeyi5XLp8y1yMud78mlMvzZH480CwG14 3/gxvMlCYzVPHz07eRoiiSQBztSnmc0s7CcifLMn/7C0fncTdBbZpVqaRaeYhd5XO3yZ LIlXd/59WFZo1CwsajqnFDvQeLJogMlLFxNJT+MgfCdn52e1MyX4vsDb+HNsfBZUbfN/ RFhQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1756304187; x=1756908987; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=AwydVNjh5CmJmFFn10+9OTqUyK5g3KlcCOeCSO9JWT0=; b=XQc2fHYupUuPBqrc7iJ27uHM8KGZr2ZmWZe6OBb+E3tmS6IaR6qucmRam1QmK5M7yD jNBPNrDELENWP/WQT8ssBPN3k2bZyvnm+5Ip8+oaB9SsHLkxOqSRFZ+WN+ClL/mbQctR aWdJRnO9R5Z6Aq4VkhtTdRst+IIeN14MDMD8emI9tMAUvPxs/jJDIg53V46TVSQOPBY1 mY2IXTCIboq1z2+j9lTjenDXPgd32nDAz8pgDwneNAPq+3JutJDxrko2OhZccwINwSiA +h4f76yH5B3P5Vwv7nxv+qVkOqlLbc3POlGJvVMVpg6OI4bHM0CAmwQKUS/RNEzxL57+ ylkw== X-Gm-Message-State: AOJu0YwDOBUrfkvikYSfa3cDgwv2sDN55A9heEinaQfSZaoZghWeBDRY nEo69iPs7+PNaW29+digfV/Wn50dyn4DnGMxASvxPdAPpBDGF+/a/d4j053ZNTeUzHjHe/Q920U j3C9LoAfm1DCHq6vEem+TDJTtcpXmZpdtS5BpM6yKrTDlPrCLZwM= X-Gm-Gg: ASbGnctF2+RXwwakMjwNGgcFCNfdVvImIzpeoHyIfhlczII5+C7IcObpKDvCsCvP6QV QFCNYEaee5AB8QgPuB05+6toC74/j0+kg2Qd+XhmVoLpWP3m+27Beza9nSxZE2Hu0MTUfXsI3D6 WxeenRXYhZUjaYn+ac+f2ur1B/RHWN3E6nPwwutPf3O2cX6gF+3zIhRUQjxXpx9LuYGeaAepfhi uyCUtNkUiJoNJICB7A= X-Google-Smtp-Source: AGHT+IGUUEyD5BLH+zBMMbxbPReSJrc9GQVF/l5HdOHhXBOLPIXkm0begwaB5sQ5D16VHAUFICjJw2oPO4fxS77l9S0= X-Received: by 2002:a05:690c:60c3:b0:721:391d:8ec6 with SMTP id 00721157ae682-721391da0c1mr62641937b3.45.1756304187351; Wed, 27 Aug 2025 07:16:27 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Magnus Hagander Date: Wed, 27 Aug 2025 16:16:14 +0200 X-Gm-Features: Ac12FXzQsSr1ZGZjDCnVhVtJahlDF1ocrelp_kjPOgN3-V8eQAyvIGrfnVoRvgQ Message-ID: Subject: Re: Slight issue in bounce management in PGLister To: =?UTF-8?Q?C=C3=A9lestin_Matte?= Cc: PostgreSQL WWW Content-Type: multipart/alternative; boundary="000000000000347563063d596f31" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --000000000000347563063d596f31 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Fri, May 2, 2025 at 7:15=E2=80=AFPM C=C3=A9lestin Matte wrote: > Hello, > > I noticed a problem with bounces in PGLister: when an address is newly > added to a list, it is supposed that all former emails were properly > delivered. All prior emails are marked as "Delivered to remote > server", which is not the case as the address was not subscribed yet > (they should not appear at all). > > As a result, a bouncing address will not immediately be flagged as a > bounce. > > A way to fix that could be to add an "added_date" field to e.g. > list_subscriberaddress. > > This may be intentional behaviour as fixing it requires adding a field, > for what is pretty much a corner case (one can expect a newly added > address is not immediately bouncing). > Do you think a fix is worth implementing? > Here's a very late comment on this. I'd consider it a corner case, so I'm not sure it would warrant this in itself. But it's not intentional behavior that I'm aware of. That said, tracking when a subscription happens could also be useful for other cases I think it might be worthwhile doing. Side-question regarding bounces: I did not find any process in the > codebase that automatically unsubscribes bouncing addresses > (bouncehandler.py leaves this as "run separtely"). > Is this expected to always done manually? > > Correct, there is no code in place for that.They show up on the admin dashboard for manual handling. //Magnus --000000000000347563063d596f31 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
On Fri, May 2, 2025 at 7:15=E2=80=AFPM C= =C3=A9lestin Matte <celestin= .matte@cmatte.me> wrote:
Hello,

I noticed a problem with bounces in PGLister: when an address is newly
added to a list, it is supposed that all former emails were properly
delivered. All prior emails are marked as "Delivered to remote
server", which is not the case as the address was not subscribed yet (they should not appear at all).

As a result, a bouncing address will not immediately be flagged as a
bounce.

A way to fix that could be to add an "added_date" field to e.g. list_subscriberaddress.

This may be intentional behaviour as fixing it requires adding a field,
for what is pretty much a corner case (one can expect a newly added
address is not immediately bouncing).
Do you think a fix is worth implementing?

Here's a very late comment on this.

I'd= consider it a corner case, so I'm not sure it would warrant this in it= self. But it's not intentional behavior that I'm aware of.

That said, tracking when a subscription happens could also= be useful for other cases I think it might be worthwhile doing.
=

Side-question regarding bounces: I did not find any process in the
codebase that automatically unsubscribes bouncing addresses
(bouncehandler.py leaves this as "run separtely").
Is this expected to always done manually?


Correct, there is no code in place for that.They show up on the admi= n dashboard for manual handling.

//Magnus
=C2=A0
--000000000000347563063d596f31--