public function getMailsInfo(array $mailsIds) {
		$mails = imap_fetch_overview($this->getImapStream(), implode(',', $mailsIds), FT_UID);
		if(is_array($mails) && count($mails))
		{
			foreach($mails as &$mail)
			{
				if(isset($mail->subject)) {
					$mail->subject = $this->decodeMimeStr($mail->subject, $this->serverEncoding);
				}
				if(isset($mail->from)) {
					$mail->from = $this->decodeMimeStr($mail->from, $this->serverEncoding);
				}
				if(isset($mail->to)) {
					$mail->to = $this->decodeMimeStr($mail->to, $this->serverEncoding);
				}
			}
		}
		return $mails;
	}
public function getMailsInfo(array $mailsIds) {
		$mails = imap_fetch_overview($this->getImapStream(), implode(',', $mailsIds), FT_UID);
		if(is_array($mails) && count($mails))
		{
			foreach($mails as &$mail)
			{
				if(isset($mail->subject)) {
					$mail->subject = $this->decodeMimeStr($mail->subject, $this->serverEncoding);
				}
				if(isset($mail->from)) {
					$mail->from = $this->decodeMimeStr($mail->from, $this->serverEncoding);
				}
				if(isset($mail->to)) {
					$mail->to = $this->decodeMimeStr($mail->to, $this->serverEncoding);
				}
			}
		}
		return $mails;
	}
public function getMailsInfo ( array $ mailsIds ) { $ mails = imap_fetch_overview ( $ this -> getImapStream ( ) , implode ( ',' , $ mailsIds ) , FT_UID ) ; if ( is_array ( $ mails ) && count ( $ mails ) ) { foreach ( $ mails as & $ mail ) { if ( isset ( $ mail -> subject ) ) { $ mail -> subject = $ this -> decodeMimeStr ( $ mail -> subject , $ this -> serverEncoding ) ; } if ( isset ( $ mail -> from ) ) { $ mail -> from = $ this -> decodeMimeStr ( $ mail -> from , $ this -> serverEncoding ) ; } if ( isset ( $ mail -> to ) ) { $ mail -> to = $ this -> decodeMimeStr ( $ mail -> to , $ this -> serverEncoding ) ; } } } return $ mails ; }
Fetch mail headers for listed mails ids

Returns an array of objects describing one mail header each. The object will only define a property if it exists. The possible properties are:
subject - the mails subject
from - who sent it
to - recipient
date - when was it sent
message_id - Mail-ID
references - is a reference to this mail id
in_reply_to - is a reply to this mail id
size - size in bytes
uid - UID the mail has in the mailbox
msgno - mail sequence number in the mailbox
recent - this mail is flagged as recent
flagged - this mail is flagged
answered - this mail is flagged as answered
deleted - this mail is flagged for deletion
seen - this mail is flagged as already read
draft - this mail is flagged as being a draft

@param array $mailsIds
@return array
Fetch mail headers for listed mails ids