I asked this question on Stack Overflow<http://stackoverflow.com/questions/17727716/useful-imap-header-information-not-showing-up>, and I have a more complete description of my problem here, but here's a quick overview:
I'm using standard IMAP functions to get emails from Gmail in PHP. I need to keep track of the Message-ID (and References and In-Reply-To) for each message (all of which can be found in the email headers) to build threads on my website. Once this system gets deployed, I want users to be able to reply to messages in their Gmail to add a message to a thread, but in my web interface, replies can't be attached to the original post because I don't have an In-Reply-To ID from the email header to use to attach their reply to the notification that I sent to them. If I had an In-Reply-To header, the messages could be grouped as there is a thread of IDs connecting them. The problem is that, using the IMAP functions, I can only get full headers with the information that I need from a handful of emails. Each of these emails are shown to have full headers in Gmail (by clicking "Show original" in the message popdown menu), while only some of them provide full headers in my PHP script. How can I get full headers in my PHP script for all emails? -- You received this message because you are subscribed to the Google Groups "Gmail-Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/gmail-users. For more options, visit https://groups.google.com/groups/opt_out.
