/**
* mail_fetch/fetch.php
*
- * Copyright (c) 1999-2004 The SquirrelMail Project Team
+ * Copyright (c) 1999-2005 The SquirrelMail Project Team
* Licensed under the GNU GPL. For full terms see the file COPYING.
*
* Fetch code.
*
- * $Id$
+ * @version $Id$
* @package plugins
* @subpackage mail_fetch
*/
require_once(SM_PATH . 'plugins/mail_fetch/functions.php' );
require_once(SM_PATH . 'functions/html.php' );
-/* globals */
+/* globals */
sqgetGlobalVar('username', $username, SQ_SESSION);
sqgetGlobalVar('key', $key, SQ_COOKIE);
sqgetGlobalVar('onetimepad', $onetimepad, SQ_SESSION);
echo "<option value=\"$i\">" .
htmlspecialchars($mailfetch[$i]['alias']) .
'</option>' . "\n";
- }
+ }
echo '</select>' .
'</td>' .
'</tr>';
echo '<br />' .
html_tag( 'table',
html_tag( 'tr',
- html_tag( 'td', '<b>' . _("Fetching from ") .
- htmlspecialchars($mailfetch[$i_loop]['alias']) .
+ html_tag( 'td', '<b>' . _("Fetching from ") .
+ htmlspecialchars($mailfetch[$i_loop]['alias']) .
'</b>',
'center' ) ,
'', $color[9] ) ,
} else {
$newmsgcount = $Count - $i + 1;
Mail_Fetch_Status(sprintf(ngettext("Login OK: Inbox contains %s message",
- "Login OK: Inbox contains %s messages",$newmsgcount), $newmsgcount));
+ "Login OK: Inbox contains %s messages",$newmsgcount), $newmsgcount));
}
Mail_Fetch_Status(_("Fetching UIDL..."));
Mail_Fetch_Status(_("Server does not support UIDL."));
if ($mailfetch_lmos == 'on') {
- Mail_Fetch_Status(_("Leaving Mail on Server..."));
+ Mail_Fetch_Status(_("Leaving mail on server..."));
} else {
Mail_Fetch_Status(_("Deleting messages from server..."));
}
while ( (!$MessArray) or (gettype($MessArray) != "array")) {
Mail_Fetch_Status(_("Oops, ") . $pop3->ERROR);
// re-connect pop3
- Mail_Fetch_Status(_("Server error...Disconnect"));
+ Mail_Fetch_Status(_("Server error. Disconnect"));
$pop3->quit();
Mail_Fetch_Status(_("Reconnect from dead connection"));
if (!$pop3->connect($mailfetch_server)) {
fputs($imap_stream, $Message);
fputs($imap_stream, "\r\n");
sqimap_read_data($imap_stream, "A3$i", false, $response, $message);
- $response=(implode('',$response));
- $message=(implode('',$message));
+ $response=(implode('',$response));
+ $message=(implode('',$message));
if ($response != 'OK') {
Mail_Fetch_Status(_("Error Appending Message!")." ".htmlspecialchars($message) );
Mail_Fetch_Status(_("Closing POP"));
if ($mailfetch_lmos != 'on') {
if( $pop3->delete($i) ) {
- Mail_Fetch_Status(_("Message ") . $i . _(" deleted from Remote Server!"));
+ Mail_Fetch_Status(sprintf(_("Message %d deleted from remote server!"), $i));
} else {
Mail_Fetch_Status(_("Delete failed:") . htmlspecialchars($pop3->ERROR) );
}
?>
</center>
</body>
-</html>
+</html>
\ No newline at end of file