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(_at_)lx140e(_dot_)htt-consult(_dot_)com>
How do I get formail to at least put
From rgm Tue May 12 16:47:30 2020
If not the final rgm(_at_)lx140e(_dot_)htt-consult(_dot_)com
??
thanks
____________________________________________________________
procmail mailing list -- procmail(_at_)lists(_dot_)rwth-aachen(_dot_)de
Procmail homepage: http://www.procmail.org/
To unsubscribe send an email to
procmail-leave(_at_)lists(_dot_)rwth-aachen(_dot_)de
https://lists.rwth-aachen.de/postorius/lists/procmail.lists.rwth-aachen.de