||ifequal||closeonload||true||
	<html>
	<head><title></title></head>
	<body onload="window.close()"></body>
	</html>
||else||
||get_list_charset||
||ifnempty||header_charset||||begin_language||||ifempty||match_lang||||ifequal||header_charset||lang_charset||||define||match_lang||lang_name||||endif||||endif||||end_language||||endif||
||ifnempty||list_email_charset||||begin_language||||ifempty||match_lang||||ifequal||list_email_charset||lang_charset||||define||match_lang||lang_name||||endif||||endif||||end_language||||endif||
||ifempty||match_lang||||ifdef||override_list_lang||||define||match_lang||override_list_lang||||endif||||endif||
<!-- language == '||match_lang||' -->
||ifempty||match_lang|| ||else||||begin_language||||ifequal||match_lang||lang_name||||ifinstr||lang_charset||UTF-8||||define||lang_charset||iso-8859-1||||endif||||ifinstr||list_email_charset||UTF-7||||define||lang_charset||iso-8859-1||||endif||||define||meta||(<meta http-equiv="Content-type" content="text/html; charset=||lang_charset||">)||||define||display_lang||lang_charset||||endif||||end_language||||endif||||endif||
||meta||

<html>
<head>
||ifdef||do_post_cmd||
	||post_cmd||(||user_cgi_http_prefix||/cgi/user.cgi?cmd=auto_login&||do_post_cmd||&vhost=||vhost||)||
||endif||
<link rel="stylesheet" type="text/css" href="||nwimg||||tpl_color||/surge.css" />
<script type="text/javascript">
<!--
||/*||// The following is the lang translations for POPUP javascript alerts||*/||
var one_fwd="||_one_fwd||";
var x_redirect = "||lang_str||Please select a message to redirect||";
var x_delete = 	 "||lang_str||Please select a message to delete||";
var x_move = 	 "||lang_str||Please select a message to move||";
var x_reply = 	 "||lang_str||Please select a message to reply to||";
var x_reply2 = 	 "||lang_str||You can only reply to one message at a time||";
var x_resend = 	 "||lang_str||Please select a message to resend||";
var x_fwd =	 "||lang_str||Please select a message to forward||";
||ifequal||_item_window||true||
var iw=true;
||else||
var iw=false;
||endif||
||ifdef||_refresh||
var r=||_refresh||;
||else||
var r=0;
||endif||
-->
</script>
<script type="text/javascript" src="||common_files||/util.js"></script>
<script type="text/javascript" src="||nwimg||/layout.js"></script>
<script type="text/javascript" src="||nwimg||/list.js"></script>
<title>||cust_title|| - ||lang_str||(||folder||)||</title>
</head>
||ifequal||folder||INBOX||||define||xdata||( refresh_init\[\];)||||endif||
||ifequal||folder||(||inbox_folder||)||||define||xdata||( refresh_init\[\])||||endif||
<body class="body" onload="||xdata||doresize();" onresize="doresize()">

||include||_layout_start.tpl||
||ifinstr||login_msg||$DUE|| ||include||_payment.tpl|| ||endif||
||ifdef||error|| ||include||_errorinline.tpl|| ||endif||
||ifdef||msg|| ||include||_msginline.tpl|| ||endif||
||ifgreater||xmax||0|| ||ifgreater||xamount||xmax|| ||define||msg||(||lang_str||You are over your quota, using|| ||xamount||/||xmax||)|| ||include||_msginline.tpl|| ||endif|| ||endif||

<form name="List" method="post" action="||action||">
<input type="hidden" name="utoken" value="||utoken||" />
<input type="hidden" name="folder" value="||encode_text||folder||" />
<input type="hidden" name="encode_text" value="folder" />
<input type="hidden" name="cmd" value="" />
<input type="hidden" name="page" value="" />
<input type="hidden" name="dstfld" value="" />
<input type="hidden" name="pos" value="||pos||" />
<input type="hidden" name="get_attach_id" value="true" />
||ifequal||folder||copy_name||
<input type="hidden" name="resend" value="" />
<input type="hidden" name="h_to" value="" />
||endif||
||ifequal||folder||waste_name||
<input type="hidden" name="force_empty" value="true" />
<input type="hidden" name="ignore_trash" value="true" />
||endif||
<center>
||ifdef||post_cmd_failed|| ||include||_post_failed.tpl|| ||endif||
||ifequal||fetch_manual||true||	||undef||gotfet|| ||begin_fet|| ||define||gotfet||true|| ||end_fet||
	||ifdef||gotfet||
<a class="LF" href="javascript:G('get_fetch&force_connection=true')">||lang_str||Check other accounts||</a><br />
	||endif||
||endif||

||ifdef||more_to_download||
<table class="bg1">
<tr><td><b>||cust_display_name|| ||lang_str||has downloaded|| ||max_downloaded|| ||lang_str||leaving|| ||more_to_download|| ||lang_str||to download next time you check mail||.</b></td></tr>
</table>
||endif||

||ifequal||folder||waste_name||
	<div><a class="LF b" href="javascript:E('empty','||lang||waste_name||')">||lang_str||Click here to empty|| ||lang||waste_name||</a></div>
||endif||
||ifequal||folder||spam_name||
	<div><a class="LF b" href="javascript:E('empty_spam','||lang||spam_name||')">||lang_str||Click here to empty|| ||lang||spam_name||</a></div>
||endif||

<table width="95%"><tr>
<td width="10%" nowrap class="ten"><b class="LF">||lang_str||(||folder||)||</b> ( ||ifgreater||nunread||0||<b>||nunread||</b> / ||endif||||nitems|| )</td>
<td><table align="center">||include||_listbuttons.tpl||</table></td>
<td width="5%"></td>
</tr></table>
<table class="LT" cellspacing="0" cellpadding="1">
<tr class="bg1">
	<td class="b">||lang_str||Select||</td>
	<td class="b">||lang_str||Attach||</td>
	<td></td>
	||undef||from||	||undef||to|| ||undef||h_bytes||
	||ifequal||folder||copy_name|| ||define||to_from||to:|| ||define||sorthead||To|| ||else|| ||define||to_from||from:|| ||define||sorthead||From|| ||endif||
	||ifequal||sort_on||to_from|| ||ifequal||sort_reverse||true|| ||define||truefalse||false|| ||define||dirn||v|| ||else|| ||define||truefalse||true|| ||define||dirn||^|| ||endif|| ||else|| ||define||truefalse||true|| ||define||dirn|| || ||endif||
	<td width="30%"><a class="b" href="javascript:G('list&sort_on=||to_from||&sort_method=text&sort_reverse=||truefalse||')">||lang||sorthead||</a> ||dirn||</td>
	||ifequal||sort_on||subject:|| ||ifequal||sort_reverse||true|| ||define||truefalse||false|| ||define||dirn||v|| ||else|| ||define||truefalse||true|| ||define||dirn||^|| ||endif|| ||else|| ||define||truefalse||true|| ||define||dirn|| || ||endif||
	<td width="40%"><a class="b" href="javascript:G('list&sort_on=subject:&sort_method=thread&sort_reverse=||truefalse||')">||lang_str||Subject||</a> ||dirn||</td>
	||ifequal||sort_on||date:|| ||ifequal||sort_reverse||true|| ||define||truefalse||false|| ||define||dirn||v|| ||else|| ||define||truefalse||true|| ||define||dirn||^|| ||endif|| ||else|| ||define||truefalse||true|| ||define||dirn|| || ||endif||
	<td nowrap><a class="b" href="javascript:G('list&sort_on=date:&sort_method=date&sort_reverse=||truefalse||')">||lang_str||Date||</a>&nbsp;</td>
	<td nowrap><a class="b" href="javascript:G('list&sort_on=date:&sort_method=date&sort_reverse=||truefalse||')">||lang_str||Time||</a>||dirn||</td>
	||ifequal||sort_on||h_bytes|| ||ifequal||sort_reverse||true|| ||define||truefalse||false|| ||define||dirn||v|| ||else|| ||define||truefalse||true|| ||define||dirn||^|| ||endif|| ||else|| ||define||truefalse||true|| ||define||dirn|| || ||endif||
	<td nowrap><a class="b" href="javascript:G('list&sort_on=h_bytes&sort_method=number&sort_reverse=||truefalse||')">||lang_str||Size||</a>||dirn||</td>
</tr>
||define||max_line_count||2||
||define||xnum||0||
||begin_list||
||ifequal||h_priority||urgent|| ||ifequal||h_isread||0|| ||define||cls||(class="red b" )|| ||else|| ||define||cls||(class="red" )|| ||endif|| ||else|| ||ifequal||h_isread||0|| ||define||cls||(class="b" )|| ||else|| ||undef||cls|| ||endif|| ||endif||
<tr class="L||line||||ifequal||h_isunseen||1||new||endif||">
	<td><input type="checkbox" name="sel_||h_uidl||" value="on" /></td>
	<td>||h_attach||</td>
	<td>||ifequal||h_isreplied||1||<b>&laquo;</b>||endif||</td>
||ifequal||h_isdraft||0||
||undef||ToFromField||
||ifequal||folder||copy_name||
	||begin_email||h_to||||ifdef||ToFromField|| ||define||ToFromField||(||ToFromField||, ||email_personal||)|| ||else|| ||define||ToFromField||email_personal|| ||endif||||end_email||
||else||
	||ifdef||h_from_personal||
		||define||ToFromField||h_from_personal||
	||endif||
||endif||
	<td nowrap><a ||cls||href="javascript:I('||h_uidl||')">||ifdef||number_fetch||||ifdef||fet_number||(||fet_number||)||endif||||endif||||lchop||ToFromField||40||</a></td>
	<td nowrap><a ||cls||href="javascript:I('||h_uidl||')">||lchop||h_subject||70||</a></td>
||else||
	<td>(||lang_str||Draft||)</td>
	<td nowrap><a ||cls||href="javascript:G('msg_draft-||h_uidl||&get_attach_id=true')">||lchop||h_subject||70||</a></td>
||endif||
	<td nowrap>||h_date_day||</td>
	<td nowrap>||h_date_time||</td>
	<td>||h_kbytes||k</td>
</tr>||define||msgs_displayed||true||||define||xnum||(||add||xnum||1||)||
||end_list||
||ifndef||msgs_displayed||
<tr class="L1"><td colspan="8">&nbsp;</td></tr>
||endif||
<tr class="bg1">
	<td colspan="4"><input name="allbox" type="checkbox" onClick="CheckAll();" /> ||lang_str||Click to select all messages on this page||</td>
	<td colspan="4" class="rt" nowrap>||define||break||21||
		||nitems|| ||lang_str||Msgs in total - page|| ||page_pos|| ||lang_str||of|| ||num_pages|| -
		||ifdef||pageup||
			 <a href="javascript:G('list&pos=||pageup||')">||lang_str||Click here for previous page||</a> -
		||endif||
		||begin_pages||
			||ifequal||break||npage|| <br> ||define||break||(||add||break||20||)|| ||endif||
			||ifequal||npage||page_pos||
				 <b>||npage||</b>
			||else||
				 <a href="javascript:G('list&pos=||pagepos||')">||npage||</a>
			||endif||
		||end_pages||
		||ifdef||pagedown||
			 - <a href="javascript:G('list&pos=||pagedown||')">||lang_str||Click here for next page||</a>
		||endif||
	</td>
</tr></table>
||ifgreater||xnum||20||
<table width="95%"><tr>
<td width="10%" nowrap class="ten"></td>
<td><table align="center">||include||_listbuttons.tpl||</table></td>
<td width="5%"></td>
</tr></table>
||endif||
||ifdef||rule_log||
	<center>
		<table border="1" bgcolor="ffffff">
		<tr><td>||lang_str||Log of rule processing||</td></tr>
		<tr><td><pre>||rule_log||</pre></td></tr>
		</table>
	</center>
||endif||
</form>
</body>
</html>
||endif||