note 21501 deleted from function.imap-header by googleguy

From: Date: Tue, 22 Oct 2013 09:02:05 +0000
Subject: note 21501 deleted from function.imap-header by googleguy
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-196842@lists.php.net to get a copy of this message
Note Submitter: ---- I just wanted to state what all these variables were producing considering it isnt documented anywhere that I have been able to find on this site: the object that imap_mailboxmsgs returns has the following fields for the pop3 driver: array( Unread => Deleted => Nmsgs => Size=> Date=> Driver=> Mailbox=> Recent=> ) imap_header returns the following array for the pop3 driver: stdClass Object ( date=> Date=> subject=> Subject=> toaddress=> to=> array stdClass Object ( mailbox=> host=> ) fromaddress=> from=> array stdClass Object ( personal=> mailbox=> host=> ) reply_toaddress=> reply_to=> array stdClass Object ( personal=> mailbox=> host=> ) senderaddress=> sender => array stdClass Object ( personal=> mailbox=> host=> ) Recent=> Unseen=> Flagged=> Answered=> Deleted=> Draft=> Msgno=> MailDate=> Size=> udate=> ) Also, if you are using a pop3 server and you are having difficulties deleting messages, you will need to call imap_expunge immediately after your call to imap_delete. (this was posted somewhere else.. thanks for that!!) feel free to drop me a line if this helped you. Happy coding.

« previous php.notes (#196842) next »