bugfixes
[squirrelmail.git] / src / download.php
index a4a81a1e975dcbcba593135f553d325173b65ef3..982c7e0f69d5d08579a334c42adc7f8d8b699a25 100644 (file)
@@ -1,4 +1,6 @@
-<?
+<?php
+   session_start();
+
    if (!isset($config_php))
       include("../config/config.php");
    if (!isset($strings_php))
@@ -35,7 +37,7 @@
       echo "</TT></TD></TR></TABLE>";
    }
 
-   $imapConnection = sqimap_login($username, $key, $imapServerAddress, 0);
+   $imapConnection = sqimap_login($username, $key, $imapServerAddress, $imapPort, 0);
    sqimap_mailbox_select($imapConnection, $mailbox);
 
    // $message contains all information about the message