浏览代码

Added a hook for the priority plugin.

phutnick 24 年之前
父节点
当前提交
73951385c4
共有 1 个文件被更改,包括 4 次插入0 次删除
  1. 4 0
      functions/smtp.php

+ 4 - 0
functions/smtp.php

@@ -12,6 +12,7 @@
    define('smtp_php', true);
 
    include('../functions/addressbook.php');
+   include('../functions/plugin.php');
 
    global $username, $popuser, $domain;
 
@@ -567,8 +568,11 @@
    function sendMessage($t, $c, $b, $subject, $body, $reply_id) {
       global $useSendmail, $msg_id, $is_reply, $mailbox, $onetimepad;
       global $data_dir, $username, $domain, $key, $version, $sent_folder, $imapServerAddress, $imapPort;
+      global $more_headers;
       $more_headers = Array();
 
+      do_hook("smtp_send");
+
       $imap_stream = sqimap_login($username, $key, $imapServerAddress, $imapPort, 1);
 
       if (isset($reply_id) && $reply_id) {