Added a hook for the priority plugin.
authorphutnick <phutnick@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Wed, 19 Sep 2001 20:31:37 +0000 (20:31 +0000)
committerphutnick <phutnick@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Wed, 19 Sep 2001 20:31:37 +0000 (20:31 +0000)
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@1506 7612ce4b-ef26-0410-bec9-ea0150e637f0

functions/smtp.php

index 0405a1d..0d0edd1 100644 (file)
@@ -12,6 +12,7 @@
    define('smtp_php', true);
 
    include('../functions/addressbook.php');
+   include('../functions/plugin.php');
 
    global $username, $popuser, $domain;
 
    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) {