File2pcap takes any sort of input file and creates a pcap showing this file in transfer by HTTP/HTTP2, FTP(active/passive) or by email(SMTP/POP3/IMAP) in the form of an attachment. The generated pcap includes a full TCP stream from Syn to Fin.
The tool supports both IPv4 and IPv6 as well as various encodings for the email options.