pass type to error
darcs-hash:20080718202124-84dde-42b9c1d73c51c9bb98cb3896bb03716067762c48.gz
This commit is contained in:
parent
1f8040ce2f
commit
c31d6e7fb1
@ -137,14 +137,14 @@ class MailerDaemon {
|
||||
} else if ($type == 'text/plain') {
|
||||
$msg = $parsed->body;
|
||||
} else {
|
||||
$this->unsupported_type($parsed);
|
||||
$this->unsupported_type($type);
|
||||
}
|
||||
|
||||
return array($from, $to, $msg);
|
||||
}
|
||||
|
||||
function unsupported_type($parsed) {
|
||||
$this->error(NULL, "Unsupported message type: " . $parsed->ctype_primary . "/" . $parsed->ctype_secondary ."\n");
|
||||
function unsupported_type($type) {
|
||||
$this->error(NULL, "Unsupported message type: " . $type);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user