-
Is there a way to modify the subject or add/modify a header field? I am building a spam filter and need to add the score somehow to an email. Eg (Header):
or, if this is not possible, it could be added to the subject:
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
I'm afraid this isn't really possible. IMAP messages are basically immutable. The best you can do is download the entire message, modify the headers and append it to the mailbox, and then delete the original one. This Stack Overflow questions covers the topic: https://stackoverflow.com/questions/16945041/imap-editing-a-draft-or-existing-message |
Beta Was this translation helpful? Give feedback.
-
With the
|
Beta Was this translation helpful? Give feedback.
I'm afraid this isn't really possible. IMAP messages are basically immutable.
The best you can do is download the entire message, modify the headers and append it to the mailbox, and then delete the original one.
This Stack Overflow questions covers the topic: https://stackoverflow.com/questions/16945041/imap-editing-a-draft-or-existing-message