Mark Sapiro writes:
On 3/17/22 10:19, Stephen J. Turnbull wrote:
Дилян Палаузов writes:
realname = re.sub(r'@([^ .]+\.)+[^ .]+$', '---', realname)
The obvious hack is to change '---' to '', which you can do locally.
I'm not sure why we use '---', since it's not informative. I will have to see if one of the other devs knows, or maybe there's something in the history.
In particular, we don't include the original From: @domain because of goal #2 [in dmarc.py]. We use --- to imply that something is missing. Perhaps ellipsis would have been a better choice, but we didn't want anything that even hinted at a domain.
OK, that makes some sense. Here's goal #2:
# 2) the original From: address should not be in a comment or display
# name in the new From: because it is claimed that multiple domains
# in any fields in From: are indicative of spamminess. This means
# it should be in Reply-To: or Cc:.
I don't recall there being documentation of this claim. I certainly believe it happens at least occasionally (I know several mail admins who will implement any filter that might eliminate 1 or more spams in the next decade ;-). But is it really a major problem?
I'm coming around to the idea of a general format language for configuring various Mailman-generated texts with a bunch of standard codes (like strftime). There are too many "minority" problems like the OP's (and I suspect "multiple addresses are spam" for that matter) for me to be comfortable ignoring the set, but on the other hand the number of options we'd have to provide to satisfy 1/10th of them would be insane, and unpopular with 99% of the folks considering changing the default.
I am considering adding this as a project to GSoC. Comments welcome.
Steve