IsmAvatar Posted April 20, 2008 Share Posted April 20, 2008 I've written a php script that will check emails from my mailbox from a certain individual and store the information it contains on a database. The trick now is ensuring that it is indeed coming from the certain individual. As of currently, I use $header->senderaddress, but that can easily be spoofed. What I'm really interested in reading is the x-variables for the email, in particular, X-Email-Type-Id, X-XPT-XSL-Name, and X-user. I did a dump of imap_fetchheader and imap_fetchstructure, but neither seemed to contain them. Link to comment https://forums.phpfreaks.com/topic/101946-imap-x-variables/ Share on other sites More sharing options...
jonsjava Posted April 20, 2008 Share Posted April 20, 2008 the best I can get for you is $header->senderaddress that will just display the same type of info you will receive in $header->bcc[] Link to comment https://forums.phpfreaks.com/topic/101946-imap-x-variables/#findComment-521725 Share on other sites More sharing options...
jonsjava Posted April 20, 2008 Share Posted April 20, 2008 oops, found something: imap_fetchbody(); if you bone up on that, you will get everything you need. Sorry, I don't know exactly what to pass to it, but there you go. Link to comment https://forums.phpfreaks.com/topic/101946-imap-x-variables/#findComment-521727 Share on other sites More sharing options...
IsmAvatar Posted April 20, 2008 Author Share Posted April 20, 2008 Thanks a bunch. The arguments are the mailbox, the message number, and the part you wish to retrieve, in my case, "0" for the extended header information, which in turn indeed contains my desired x-variables. Thanks again. Link to comment https://forums.phpfreaks.com/topic/101946-imap-x-variables/#findComment-521729 Share on other sites More sharing options...
jonsjava Posted April 20, 2008 Share Posted April 20, 2008 Would you possibly consider marking this thread resolved? Link to comment https://forums.phpfreaks.com/topic/101946-imap-x-variables/#findComment-521743 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.