[Pymilter] replacebody()
Ed Wong
smewcc at gmail.com
Wed Jul 5 03:23:55 EDT 2023
Hi,
I've tried to use replacebody(), but the final result is an empty message
while displayed even though the email is there. I've even saved the email
to a file.
pyl = []
for part in msg.walk():
if part.is_multipart():
pass
else:
py = part.get_payload()
py += "\r\n Processed by me\r\n"
pyl.append(py)
self.replacebody("\r\n".join(pyl))
Is there something I'm missing?
Thanks
Ed
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://gathman.org/pipermail/pymilter/attachments/20230705/a67b8eb8/attachment.html>
More information about the Pymilter
mailing list