Set the message’s envelope header to unixfrom, which should be a string. (See mboxMessage for a brief description of this header.)
email.message/EmailMessage.set_unixfrom
EmailMessage.set_unixfrom