We are no longer offering accounts on this server. Consider https://gitlab.freedesktop.org/ as a place to host projects.

Commit c31d6e7f authored by Evan Prodromou's avatar Evan Prodromou

pass type to error

darcs-hash:20080718202124-84dde-42b9c1d73c51c9bb98cb3896bb03716067762c48.gz
parent 1f8040ce
...@@ -137,14 +137,14 @@ class MailerDaemon { ...@@ -137,14 +137,14 @@ class MailerDaemon {
} else if ($type == 'text/plain') { } else if ($type == 'text/plain') {
$msg = $parsed->body; $msg = $parsed->body;
} else { } else {
$this->unsupported_type($parsed); $this->unsupported_type($type);
} }
return array($from, $to, $msg); return array($from, $to, $msg);
} }
function unsupported_type($parsed) { function unsupported_type($type) {
$this->error(NULL, "Unsupported message type: " . $parsed->ctype_primary . "/" . $parsed->ctype_secondary ."\n"); $this->error(NULL, "Unsupported message type: " . $type);
} }
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment