Is there an easy way to add a custom RFC822 header to a message on an IMAP server with imaplib?
I am writing a python-based program that filters my IMAP mail store. When I did this with Procmail I had the option of adding headers. But there doesn't seem to be a way to do that with the Python imap implementation.
Specifically, I want to add a custom header like:
X-VY32-STATUS: Very Cool
So that it appears in the mail headers:
To: [email protected]
From: [email protected]
Subject: Test Message
X-VY32-STATUS: Very Cool
The regular message is down here.