Fetch icon indicating copy to clipboard operation
Fetch copied to clipboard

Allow get raw unparsed message (with all headers and body)

Open Koc opened this issue 8 years ago • 1 comments

Please implement Message::__toString() which returns unparsed email

Koc avatar Nov 23 '17 12:11 Koc

According to this StackOverflow post, it should be as simple as

public function __toString()
{
	$imap = $this->imapConnection->getImapStream();
	return imap_fetchheader($imap, $this->uid, FT_PREFETCHTEXT) .
		"\n" .
		imap_body($imap, $this->uid)
	;
}

drjayvee avatar Mar 02 '22 15:03 drjayvee