Re: How to process a Zipped, Base64 encoded email body
Sam Varshavchik <[email protected]> Mon, 13 Apr 2020 22:45:44 -0400
| Newsgroups | gmane.mail.maildrop |
|---|---|
| Message-ID | <[email protected]> |
Philip Rhoades writes: > People, > > I get DMARC summaries emailed to me regularly, but, annoyingly - because it > is a small amount of information anyway - the body of the email is Zipped > and Base64 encoded . . > > Before I try to work out how to process these mails so that they end up with > a plan text email body, is there existing information about how to do this > so I don't waste a lot of time producing something that some more clued-up > person has already done more nicely? - I imagine that someone has already > had to deal with this sort of situation . . You can use reformime's -X or -x option to strip off the base64 encoding of the MIME section. You'll probably want to have a shell script that sets up something in /tmp where -x can dump into. Note that -x will extract every MIME section, not just an attachment, so you'll have to have some smarts in the shell script to look at what came out, and if there's anything in there worth preserving. At that point you'll have the the base64-decoded data, that you can unzip. _______________________________________________ Courier-maildrop mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/courier-maildrop
signature.asc
(application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEMWrVnbBKLOeG9ifkazpiviedvyUFAl6VI9gACgkQazpivied vyVWaA/+MEGedsDGAB2ttIQnbgJ7x2Jb9J2Qbz5iNNTZ2zDVRhkuNUbM1ppIR5/F h5qEUwps+5Pu3SpVlohsCdmMAZoEsXjWtLReUlRt9T/tdp5zVmYmqt3Gg6H953pz 0n6FSOAUj4hFDsYxGgAoVPVMlHOv0k8BxMSYoWCnVCIWaVGDP8vAJwZXG0HILgg1 S8T7xvixUePv2EpILTa44YIXmXcJRPmGWxJASsbzlq7r8ZTKczADVnfdm8oHVyxH /K1kkiOoPjpHbzXa1WpL7JqDWmIzYAdMDqJdduIxQ5VwIZE0kN7j+txYQ26NwzDw 5ej8kJ0R6Ubs2QAgM7r9T2gNrRq3fpOnRUEplnY31DgxnxtU84vmJ1BJcixfRFyJ 68VgFgATgYIwbPTiIsjKuBqv4NODJmZfBZnXkhFG+Qf2mUkiKIiyBiNw364BHexK CqIBnyKYJ5BFw6GHtw0fRARwC0OgsqcJKdKa3/4TdMdR45ao/5/VDi5lmFGQHn7G WxbZRQzRagqE9YEg96bP/LubFB5u1CS1tITp/mpJtnvjcWp6XU7aVJdV7M05GBWN 4DQsqSOumgr+L6d5i4LWNEuNRXm8Pxwlb6nDdXBAOEiRKEpFzgRK9ep42fPsOVuP sMrGftVE4TkNchZlWvC+jzeNKrxrqBlxmggEqHIyJh5NygWqqHU= =1DZx -----END PGP SIGNATURE-----