From 809671070efe8ff29c633e9be03d0d41a5cf6560 Mon Sep 17 00:00:00 2001 From: Joel Uckelman Date: Mon, 27 Feb 2012 05:08:35 +0100 Subject: Renamed functions in build_email.php. --- src/build_email.php | 31 ++++++++++++++++--------------- 1 file changed, 16 insertions(+), 15 deletions(-) (limited to 'src/build_email.php') diff --git a/src/build_email.php b/src/build_email.php index cad2968..a5bb7bd 100644 --- a/src/build_email.php +++ b/src/build_email.php @@ -2,7 +2,7 @@ require_once(__DIR__ . '/Util.php'); -function build_text($text, $edit) { +function build_email_text($text, $edit) { if ($edit) { $edit_notice = <<encode(); @@ -78,7 +78,7 @@ function build_body(array &$headers, $text, $attachments, $footer) { return $body; } -function build_from($name, $email) { +function build_email_from($name, $email) { $qname = ''; if (is_ascii($name)) { @@ -112,10 +112,11 @@ function build_email_subject($forumtag, $reply, $subject) { return utf8_quote_non_ascii($subject); } -function build_headers($userName, $userEmail, $to, $sender, $subject, $edit, - $time, $messageId, $forumURL, $inReplyTo, $references) { - - $from = build_from($userName, $userEmail); +function build_email_headers( + $userName, $userEmail, $to, $sender, $subject, $edit, + $time, $messageId, $forumURL, $inReplyTo, $references) +{ + $from = build_email_from($userName, $userEmail); $subject = utf8_quote_non_ascii($subject); $date = date(DATE_RFC2822, $time); @@ -145,7 +146,7 @@ function build_headers($userName, $userEmail, $to, $sender, $subject, $edit, return $headers; } -function build_text_part(Mail_mimePart $mime, $text) { +function build_email_text_part(Mail_mimePart $mime, $text) { $params = array( 'content_type' => 'text/plain', 'charset' => 'utf-8', @@ -155,8 +156,8 @@ function build_text_part(Mail_mimePart $mime, $text) { $mime->addSubPart($text, $params); } -function build_attachment(Mail_mimePart $mime, $type, - $filename, $descr, $data) { +function build_email_attachment(Mail_mimePart $mime, $type, + $filename, $descr, $data) { $params = array( 'content_type' => $type, 'encoding' => 'base64', @@ -167,7 +168,7 @@ function build_attachment(Mail_mimePart $mime, $type, $mime->addSubPart($data, $params); } -function build_message_id($postId, $editId, $time, $forumHost) { +function build_email_message_id($postId, $editId, $time, $forumHost) { return "<$time.$postId.$editId.bridge@$forumHost>"; } -- cgit v1.2.3