
When I use a -I From: to replace my From: line, formail is putting foo@bar in the first line From. I have a file, t, I saved from cron. It starts with: From: "(Cron Daemon)" <rgm> To: rgm Subject: Cron <rgm@lx140e> rsync -tvz rsync.tools.ietf.org::tools.id/*-hip-*.xml /home/common/ietf/drafts/xml MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Auto-Submitted: auto-generated Precedence: bulk X-Cron-Env: <XDG_SESSION_ID=270> as a simple test I ran the following: formail -I "From: (Cron Daemon) <$USER@$HOSTNAME>" >> m$USER < t The headers in my m$USER are: From foo@bar Tue May 12 16:47:30 2020 To: rgm Subject: Cron <rgm@lx140e> rsync -tvz rsync.tools.ietf.org::tools.id/*-hip-*.xml /home/common/ietf/drafts/xml MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Auto-Submitted: auto-generated Precedence: bulk X-Cron-Env: <XDG_SESSION_ID=270> . . . Status: RO Content-Length: 101 Lines: 3 From: (Cron Daemon) <rgm@lx140e.htt-consult.com> How do I get formail to at least put From rgm Tue May 12 16:47:30 2020 If not the final rgm@lx140e.htt-consult.com ?? thanks