From: jervfors Date: Fri, 17 Apr 2009 10:28:27 +0000 (+0000) Subject: Changing back to messages. X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=5fe0662e2fa39482b7752e3be0a07341980715c8;p=squirrelmail.git Changing back to messages. git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@13558 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- diff --git a/plugins/mail_fetch/fetch.php b/plugins/mail_fetch/fetch.php index 95bb9b57..5a7a065a 100644 --- a/plugins/mail_fetch/fetch.php +++ b/plugins/mail_fetch/fetch.php @@ -30,7 +30,7 @@ sqgetGlobalVar('delimiter', $delimiter, SQ_SESSION); /* end globals */ /** - * @param string $msg mail + * @param string $msg message */ function Mail_Fetch_Status($msg) { echo html_tag( 'table', @@ -224,18 +224,18 @@ for ($i_loop=$i_start;$i_loop<$i_stop;$i_loop++) { $i = 1; if ($Count>0) { - // If we leave mails on server, try using UIDL + // If we leave messages on server, try using UIDL if ($mailfetch_lmos == 'on') { Mail_Fetch_Status(_("Fetching UIDL...")); $msglist = $pop3->command_uidl(); if (is_bool($msglist)) { Mail_Fetch_Status(_("Server does not support UIDL.") . ' '.htmlspecialchars($pop3->error)); - // User asked to leave mails on server, but we can't do that. + // User asked to leave messages on server, but we can't do that. $pop3->command_quit(); continue; // $mailfetch_lmos = 'off'; } else { - // calculate number of new mails + // calculate number of new messages for ($j = 1; $j <= sizeof($msglist); $j++) { // do strict comparison ('1111.10' should not be equal to '1111.100') if ($msglist[$j] === $mailfetch_uidl) { @@ -245,17 +245,17 @@ for ($i_loop=$i_start;$i_loop<$i_stop;$i_loop++) { } } } - // fetch list of mails with LIST + // fetch list of messages with LIST // we can use else control, but we can also set $mailfetch_lmos // to off if server does not support UIDL. if ($mailfetch_lmos != 'on') { - Mail_Fetch_Status(_("Fetching list of mails...")); + Mail_Fetch_Status(_("Fetching list of messages...")); $msglist = $pop3->command_list(); } } if ($Count < $i) { - Mail_Fetch_Status(_("Login OK: No new mails")); + Mail_Fetch_Status(_("Login OK: No new messages")); $pop3->command_quit(); continue; } @@ -265,21 +265,21 @@ for ($i_loop=$i_start;$i_loop<$i_stop;$i_loop++) { continue; } else { $newmsgcount = $Count - $i + 1; - Mail_Fetch_Status(sprintf(ngettext("Login OK: Inbox contains %s mail", - "Login OK: Inbox contains %s mails",$newmsgcount), $newmsgcount)); + Mail_Fetch_Status(sprintf(ngettext("Login OK: Inbox contains %s message", + "Login OK: Inbox contains %s messages",$newmsgcount), $newmsgcount)); } if ($mailfetch_lmos == 'on') { - Mail_Fetch_Status(_("Leaving mails on server...")); + Mail_Fetch_Status(_("Leaving messages on server...")); } else { - Mail_Fetch_Status(_("Deleting mails from server...")); + Mail_Fetch_Status(_("Deleting messages from server...")); } for (; $i <= $Count; $i++) { - Mail_Fetch_Status(sprintf(_("Fetching mail %s."), $i)); + Mail_Fetch_Status(sprintf(_("Fetching message %s."), $i)); if (!ini_get('safe_mode')) - set_time_limit(20); // 20 seconds per mail max + set_time_limit(20); // 20 seconds per message max $Message = $pop3->command_retr($i); @@ -297,7 +297,7 @@ for ($i_loop=$i_start;$i_loop<$i_stop;$i_loop++) { $response=(implode('',$response)); $message=(implode('',$message)); if ($response != 'OK') { - Mail_Fetch_Status(_("Error Appending Mail!")." ".htmlspecialchars($message) ); + Mail_Fetch_Status(_("Error Appending Message!")." ".htmlspecialchars($message) ); Mail_Fetch_Status(_("Closing POP")); $pop3->command_quit(); Mail_Fetch_Status(_("Logging out from IMAP")); @@ -309,19 +309,19 @@ for ($i_loop=$i_start;$i_loop<$i_stop;$i_loop++) { } exit; } else { - Mail_Fetch_Status(_("Mail appended to mailbox")); + Mail_Fetch_Status(_("Message appended to mailbox")); } if ($mailfetch_lmos != 'on') { if( $pop3->command_dele($i) ) { - Mail_Fetch_Status(sprintf(_("Mail %d deleted from remote server!"), $i)); + Mail_Fetch_Status(sprintf(_("Message %d deleted from remote server!"), $i)); } else { Mail_Fetch_Status(_("Delete failed:") . htmlspecialchars($pop3->error) ); } } } else { echo $Line; - Mail_Fetch_Status(_("Error Appending Mail!")); + Mail_Fetch_Status(_("Error Appending Message!")); Mail_Fetch_Status(_("Closing POP")); $pop3->command_quit(); Mail_Fetch_Status(_("Logging out from IMAP")); diff --git a/plugins/mail_fetch/functions.php b/plugins/mail_fetch/functions.php index 96d15fa2..5f1e9718 100644 --- a/plugins/mail_fetch/functions.php +++ b/plugins/mail_fetch/functions.php @@ -211,7 +211,7 @@ function mail_fetch_login_function() { $response=(implode('',$response)); $message=(implode('',$message)); if ($response != 'OK') { - $outMsg .= _("Error Appending Mail!")." ".htmlspecialchars($message); + $outMsg .= _("Error Appending Message!")." ".htmlspecialchars($message); if ($mailfetch_lmos == 'on') { setPref($data_dir,$username,"mailfetch_uidl_$i_loop", $msglist[$i-1]); @@ -227,7 +227,7 @@ function mail_fetch_login_function() { } } else { echo "$Line"; - $outMsg .= _("Error Appending Mail!"); + $outMsg .= _("Error Appending Message!"); } }