function TrackerGateway() {
$this->Error();
-
+
/* Copy mail message to tmp file */
$tmpfile = $this->copyMailTmp();
//DBG("Tmpname: ". $tmpfile);
/* parse email */
$ret = $this->parseMail($tmpfile);
-
+
/* Delete temp file */
unlink($tmpfile);
-
+
/* Check the return variable from parseMail */
if (!$ret) {
return false;
if (!$ret) {
return false;
}
-
+
return true;
}
$tmpfile = tempnam ("/tmp", "artifact_gateway.".util_randnum()."-".util_randnum());
$in = fopen("php://stdin", "r");
$out = fopen($tmpfile, "w");
-
+
while($buffer = fgets($in, 4096)) {
fputs($out, $buffer);
}