X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=plugins%2Fmail_fetch%2Ffetch.php;h=0ba24dfe577f8d38bf182712a14e1439eb6daf94;hb=e015cf1069b58c5af6273b2f5e20c7e0ec55832a;hp=400707a6dd7465bac30c96be330d1cedc39b006d;hpb=d622d38af6c2101b24c27851caf30866070c90c1;p=squirrelmail.git
diff --git a/plugins/mail_fetch/fetch.php b/plugins/mail_fetch/fetch.php
index 400707a6..0ba24dfe 100644
--- a/plugins/mail_fetch/fetch.php
+++ b/plugins/mail_fetch/fetch.php
@@ -1,25 +1,33 @@
' .
+ htmlspecialchars( $msg ) .
+ ' |
';
+ flush();
+ }
-
-function Mail_Fetch_Status($msg) {
- echo '' .
- htmlspecialchars( $msg ) .
- ' |
';
- flush();
-}
displayPageHeader($color, 'None');
$mailfetch_server_number = getPref($data_dir, $username, "mailfetch_server_number");
@@ -105,7 +113,7 @@ function Mail_Fetch_Status($msg) {
$pop3 = new POP3($mailfetch_server, 60);
- echo "
" .
+ echo "
" .
_("Fetching from ") .
(($mailfetch_alias_[$i_loop] == '')?$mailfetch_server:$mailfetch_alias_[$i_loop]) .
" | ";
@@ -123,7 +131,7 @@ function Mail_Fetch_Status($msg) {
Mail_Fetch_Status(_("Opening POP server"));
$Count = $pop3->login($mailfetch_user, $mailfetch_pass);
if (($Count == false || $Count == -1) && $pop3->ERROR != '') {
- Mail_Fetch_Status(_("Login Failed:") . $pop3->ERROR );
+ Mail_Fetch_Status(_("Login Failed:") . ' ' . $pop3->ERROR );
continue;
}
|