
18 Nov
2020
18 Nov
'20
9:25 a.m.
On 2020-11-18 00:33, Zhiliang Hu wrote:
To catch mail to self could be an overkill as someone could copy mail to self (multiple addresses in "To:") when people tend not to manage "Sent" box these days.
I was thinking a recipe to parse out the 2 parts in "From:" line: "joe@mysite.org" <extusr@water.ne.jp> which obviously is not legitimate. That's why I mentioned using 'formail'..
See (for example) H_vars.inc in https://rvtol.home.xs4all.nl/procmail/basic/pm/ on how to match and capture parts of the message into variables. In there, $H_From_ and $H_From are separate captures: the envelope-from and the header-from. In https://rvtol.home.xs4all.nl/procmail/basic/ there is a gl_demo.rc that shows some usage. -- Ruud