-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMailHeader.class.php
More file actions
30 lines (27 loc) · 1.08 KB
/
Copy pathMailHeader.class.php
File metadata and controls
30 lines (27 loc) · 1.08 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<?php
namespace ImapServer;
require_once( $_SERVER[ "DOCUMENT_ROOT" ] . "/MailDate.class.php" );
require_once( $_SERVER[ "DOCUMENT_ROOT" ] . "/MailSubject.class.php" );
require_once( $_SERVER[ "DOCUMENT_ROOT" ] . "/MailFromAddress.class.php" );
require_once( $_SERVER[ "DOCUMENT_ROOT" ] . "/MailFrom.class.php" );
class MailHeader{
protected $date;
protected $subject;
protected $author;
protected $from;
public function __construct( $header ){
$this->date = MailDate::get( $header );
$this->subject = MailSubject::get( $header );
$this->author = MailFromAddress::get( $header );
$this->from = MailFrom::get( $header );
}
public function out(){
print '<tr>';
print '<td> ' . date( 'd-m-Y', $this->date ) . '</td>';
print '<td> ' . $this->subject . '</td>';
print '<td> ' . $this->author . '</td>';
print '<td> ' . $this->from . '</td>';
print '</tr>';
}
}
// eof