summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvan Prodromou <evan@prodromou.name>2008-07-18 14:50:27 -0400
committerEvan Prodromou <evan@prodromou.name>2008-07-18 14:50:27 -0400
commit1378f80dde9fe0dbbc825e001cd1c6e147986729 (patch)
treea7047056a04ddaff1353f544390a8caaae046dd8
parentde6867a07747831784dce49c50ff7cf86c04e449 (diff)
better error msg
darcs-hash:20080718185027-84dde-f349b9772ec091d8b09bc09405a9ff5660902a2c.gz
-rwxr-xr-xmaildaemon.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/maildaemon.php b/maildaemon.php
index c99a3ee48..072f895b8 100755
--- a/maildaemon.php
+++ b/maildaemon.php
@@ -141,17 +141,17 @@ class MailerDaemon {
$msg = $parsed->body;
break;
default:
- $this->unsupported_type();
+ $this->unsupported_type($parsed);
}
default:
- $this->unsupported_type();
+ $this->unsupported_type($parsed);
}
return array($from, $to, $msg);
}
- function unsupported_type() {
- $this->error(NULL, "Unsupported message type");
+ function unsupported_type($parsed) {
+ $this->error(NULL, "Unsupported message type: " . $parsed->ctype_primary . "/" . $parsed->ctype_secondary ."\n");
}
}