Sample Header Ad - 728x90

How to prefer Reply-To: over From: for save-hook

1 vote
0 answers
58 views
I receive mails from mailing lists that change the From: address to the list address to get better reputation – they also move the original From: address to the Reply-To: header. I normally use a save-hook based upon the origin of the mail: save-hook "~f '^local\.part@domain\.part$'" '=nickname' which does not work in this case. I'm looking for a solution to first check if there is a Reply-To: header, and if so, if it matches the address, else check the From: header. (For recipients, there is the nice ~C, but there doesn't seem to be a modifier that matches on From: and/or Reply-To: – and even if so, I'd prefer Reply-To: over From: in this case.)
Asked by Andreas Ley (11 rep)
Feb 24, 2025, 03:40 PM
Last activity: Feb 24, 2025, 04:39 PM