summaryrefslogtreecommitdiff
path: root/scripts/maildaemon.php
diff options
context:
space:
mode:
authorEvan Prodromou <evan@prodromou.name>2008-12-23 14:21:29 -0500
committerEvan Prodromou <evan@prodromou.name>2008-12-23 14:21:29 -0500
commiteb2f9c98ac115ce67e9a740b200c832153ffa05c (patch)
tree562e524f12420a97fc66a5c9db0ccd6a1f9aea09 /scripts/maildaemon.php
parentedbc0c665cc65875b4d14b79939233b1c9c06bb6 (diff)
replace NULL with null
Another global search-and-replace update. Here, I've replaced the PHP keyword 'NULL' with its lowercase version. This is another PEAR code standards change. darcs-hash:20081223192129-84dde-4a0182e0ec16a01ad88745ad3e08f7cb501aee0b.gz
Diffstat (limited to 'scripts/maildaemon.php')
-rwxr-xr-xscripts/maildaemon.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/scripts/maildaemon.php b/scripts/maildaemon.php
index 6d8507514..886e72ba7 100755
--- a/scripts/maildaemon.php
+++ b/scripts/maildaemon.php
@@ -42,7 +42,7 @@ class MailerDaemon {
function handle_message($fname='php://stdin') {
list($from, $to, $msg) = $this->parse_message($fname);
if (!$from || !$to || !$msg) {
- $this->error(NULL, _('Could not parse message.'));
+ $this->error(null, _('Could not parse message.'));
}
common_log(LOG_INFO, "Mail from $from to $to: " .substr($msg, 0, 20));
$user = $this->user_from($from);
@@ -74,7 +74,7 @@ class MailerDaemon {
function user_from($from_hdr) {
$froms = mailparse_rfc822_parse_addresses($from_hdr);
if (!$froms) {
- return NULL;
+ return null;
}
$from = $froms[0];
$addr = common_canonical_email($from['address']);
@@ -140,7 +140,7 @@ class MailerDaemon {
'decode_headers' => true,
'decode_bodies' => true));
if (!$parsed) {
- return NULL;
+ return null;
}
$from = $parsed->headers['from'];
@@ -167,7 +167,7 @@ class MailerDaemon {
}
function unsupported_type($type) {
- $this->error(NULL, "Unsupported message type: " . $type);
+ $this->error(null, "Unsupported message type: " . $type);
}
function cleanup_msg($msg) {