Beispiel #1
0
 /**
  * Creates a new message by reading from a file containing a complete mail
  * message. The headers are parsed and stored; the body is left intact.
  *
  * \param $filename
  *   The filename of the file to read
  *
  * \return
  *   A new AnewtMailMessage instance
  */
 public static function from_file($filename)
 {
     assert('is_string($filename)');
     $data = file_get_contents($filename);
     $message = AnewtMailMessage::from_string($data);
     return $message;
 }