this may seem odd, but I was wondering if it was possible to add personalized header data to emails already in the inbox. For example, let's say I want to add something like myvariable = myvalue to the message header, and then somehow request it. I look through the code from Iloha's mail, and most of the details, such as the subject, as well as received, etc., are in the headers and you can search for them. Can I add my own variable to the email header and request it in the same way? How can this be done with php?
EDIT =====================
Thank you, I know how you can change the headers of sent messages, as well as request custom variables in the message headers, however in this case I want to know whether it is possible to add a user variable to the received message already in my inbox, In fact, let me define situation here.
I'm working on a solution for Google Apps that requires email link support. Basically, the application is such that when an email arrives, we create an order from this email and want to maintain the link to this EXACT email with some identifier that will allow us to identify this email.
The fact is that we do not want to upload emails to the database and maintain a separate store, since we would like to save all the emails on GMAIL. We just need to:
A way to be able to "bind" to a specific email forever - the UID is just a serial number and not very reliable. We could not find any property of the letters that could function as a unique identifier or primary key, so we thought about whether we could generate a key at our end and store it in a user variable in the email itself. However, it seems, unfortunately, there is no way to manipulate the headers of an existing letter.
:( are there any solutions to this problem, I could use any IDEA!