I figured out that adding the
X-Zimbra-Received to the mail headers in the eml file will fix the problem.
I used the following sed to add the
X-Zimbra-Received. It replicates the
Date line in the message and replace the Date with
X-Zimbra-Received.
Code:
sed 's/\(^Date\:\)\(.*\)/X-Zimbra-Received\:\2\n\1\2/' <infile> > <newfile>