浏览代码

renamed sendMessage function to deliverMessage so it won't conflict with the
one in smtp.php which is called from mime for sending retrievalerrors.
At a later time we should adapt retrievalerror or just remove the function
because I don't think retrievalerror messages can supply us valueable
information right anymore.

stekkel 23 年之前
父节点
当前提交
5e19e0ffc4
共有 1 个文件被更改,包括 3 次插入3 次删除
  1. 3 3
      src/compose.php

+ 3 - 3
src/compose.php

@@ -264,7 +264,7 @@ if ($draft) {
      */
     set_my_charset();
     $composeMessage=$compose_messages[$session];
-    if (! sendMessage($composeMessage, true)) {
+    if (! deliverMessage($composeMessage, true)) {
         showInputForm($session);
         exit();
     } else {
@@ -335,7 +335,7 @@ if ($send) {
         do_hook('compose_send');
         $composeMessage=$compose_messages[$session];
 
-	$Result = sendMessage($composeMessage);
+	$Result = deliverMessage($composeMessage);
         if (! $Result) {
             showInputForm($session);
             exit();
@@ -1220,7 +1220,7 @@ function getReplyCitation($orig_from) {
    The message also should be constructed by the message class.
 */
 
-function sendMessage($composeMessage, $draft=false) {
+function deliverMessage($composeMessage, $draft=false) {
     global $send_to, $send_to_cc, $send_to_bcc, $mailprio, $subject, $body,
            $username, $popuser, $usernamedata, $identity, $data_dir,
 	   $request_mdn, $request_dr, $default_charset, $color, $useSendmail,