||define||max_to_display||10||
<html>
<script language="JavaScript">
<!---
function start()
{
||ifdef||_refresh||
	if (||_refresh|| > 0) {
		setTimeout("mysubmit()",||_refresh||000)
	}
||endif||
}
function mysubmit()
{
	document.List.cmd.value = "reload_mail";
	document.List.submit()
}

function goto_page()
{
        document.goto_page.pos.value = (||_max_message_display|| * (document.goto_page.goto_page.value - 1)) + 1;
        document.goto_page.submit();
}

// -->
</script>


<head>
<title>||current_user|| has ||nitems|| messages</title>
</head>

||ifdef||background||
<body background="||nwimg||/||background||" onLoad="start()">
||else||
<body onLoad="start()">
||endif||

||ifdef||email||
<script language="JavaScript">
	document.location.replace("||action||?cmd=msg_new&utoken=||utoken||&email=||email||");
</script>
||else||


||include||nfmenu.tpl||

||ifdef||error||
	<center>
	<table border="1">
		<tr>	<td><img src="||nwimg||/attention.gif">
			<td bgcolor="ffffff">||error||</td>
		</tr>
	</table>
	</center>
||endif||

||ifdef||msg||
	<center>
	<table border="1">
		<tr>	<td bgcolor="ffffff">||msg||</td>
		</tr>
	</table>
	</center>
||endif||

<form name="reload_fld" method="POST" action="||action||">
	<input type="hidden" name="utoken" value="||utoken||">
	<input type="hidden" name="fld" value="||folder||">
	<input type="hidden" name="checknew" value="checknew">
	<input type="hidden" name="cmd" value="">
	<input type="hidden" name="pos" value="||pos||">

||ifdef||info_msg||
	<h3>Message: ||info_msg||</h3>
||endif||


	<table>
		<tr>
||ifequal||host_num||0||
||ifdef||_real_name||
		<td><h4>Mail List: ||_real_name|| (||folder|| ||nitems|| messages)</ht4></td>
||else||
		<td><h4 >Mail List:  ||current_user|| (||folder|| ||nitems|| messages)</ht4></td>
||endif||
||else||
		<td><h4 >Mail List:  ||current_user|| (||folder|| ||nitems|| messages)</ht4></td>
||endif||
||ifequal||folder||(||lang||new_mail_name||)||
		<td><input type="image" border="0" src="||nwimg||/checkmail.gif" name="reload_mail"></td>
||else||
		<td><input type="image" border="0" src="||nwimg||/reload.gif" name="reload_mail"></td>
||endif||
		<td width=100>
			||ifequal||fetch_manual||true||
				<input type="image" border="0" src="||nwimg||/getfetch.gif" name="get_fetch">
			||endif||
		</td>
		<td align="right">Folder:</td>
		<td><select name="dstfld" size="1">
     				<option>||fldlist||</option>
			</select></td>
		<td><input type="image" border="0" src="||nwimg||/gtfldr.gif" name="switch"></td>
		</tr>
||ifequal||fld||INBOX||
||ifequal||_nnew||0||
||else||
		<tr align="right"><td><h4>(||_nnew|| new items)</td>
||endif||
||endif||
	</table>
</form>

||ifdef||more_to_download||
	<table>
		<tr>	<td><b>Webmail has downloaded ||ifndef||max_download||100||else||||max_download||||endif||
			leaving ||more_to_download|| to download next time.</b></td>
		</tr>
	</table>
||endif||


<table>

<tr valign="center">
	<td valign="center"><em>Connection Type: ||connection_type||</em></td>
	<td valign="center">(You are using:
		||ifdef||ie_version||
			IE ||ie_version||
		||else||
			||ifdef||netscape_version||
				Netscape ||netscape_version||
			||else||
				Unknown Browser
			||endif||
		||endif||
		)
	</td>
</tr>
||ifdef||_no_logout||
<tr valign="center">
	<td colspan=3><em>Please Note: You did not Logout from last session.</em></td>
||endif||


||ifdef||disk_quota||
||ifdef||pop_size||
<script>
	if (||disk_quota|| > 0)
		if (||pop_size||/||disk_quota|| > 0.9) 	    document.writeln('<tr><td colspan="3"><h3>POP Disk space low ||kpop_size|| of ||kdisk_quota|| bytes used</h3></td></tr>');

</script>
||endif||
||endif||

</table>



<!------------------------------------------------>
<!--- This pops up the TODO list only on login --->
||ifequal||_played_sound||1||
||ifgreater||current_todos||0||
<script language="JavaScript">
<!---
	open("||action||?cmd=list&page=todo_only.tpl&utoken=||utoken||",
		'TODO',
		'width=470,height=150,toolbar=no,location=no,directories=no,status=no,menubar=no,resizable=yes,scrollbars=yes',
		'POPUP');
// -->
</script>
||endif||
||endif||

<!------------------------------------------------>

<table border="1" bgcolor="ffffff">
<table width="100%">
<tr>	<td><img src="||nwimg||/iread0.gif">/<img src="||nwimg||/iread1.gif">&nbsp;=&nbsp;unread/read</td>
	<td><img src="||nwimg||/iunseen1.gif"> = new</td>
	<td><img src="||nwimg||/iattach1.gif"> = attachment</td>
	<td><img src="||nwimg||/ireply1.gif"> = replied</td>
	<td><img src="||nwimg||/idelete1.gif"> = Deleted</td>
</table>

||ifdef||num_pages||
<center>

<table>
<tr><td>

<table border cellpadding="2" cellspacing="0">
<tr align="center">
	<td><b>Page ||page_pos|| of ||num_pages||</b></td>
</tr>

||ifequal||num_pages||1||
||else||
<tr align="center"><td>
	<table border="0" cellpadding="0" cellspacing="0">
	<tr>

||ifdef||pageup||
		<td><a href="||action||?cmd=list&pos=||pageup||&utoken=||utoken||&fld=||fld||"><img border="0" src="||nwimg||/lendcol.gif"></a></td>
||else||
		<td><img border="0" src="||nwimg||/lend.gif"></td>
||endif||


	||begin_pages||
	||iflower||npage||10||
	||ifequal||npage||page_pos||
		<td><a href="||action||?cmd=list&pos=||pagepos||&utoken=||utoken||&fld=||fld||"><img border="0" src="||nwimg||/||npage||on.gif"></a></td>
	||else||
		<td><a href="||action||?cmd=list&pos=||pagepos||&utoken=||utoken||&fld=||fld||"><img border="0" src="||nwimg||/||npage||off.gif"></a></td>
	||endif||

	||else||
	||ifequal||npage||10||

		||iflower||9||page_pos||
			<td><a href="||action||?cmd=list&pos=||pagepos||&utoken=||utoken||&fld=||fld||"><img border="0" src="||nwimg||/staron.gif"></a></td>
		||else||
			<td><a href="||action||?cmd=list&pos=||pagepos||&utoken=||utoken||&fld=||fld||"><img border="0" src="||nwimg||/staroff.gif"></a></td>
		||endif||

	||endif||
	||endif||
	||end_pages||

<!--- Can be used instead of the above.
	This will display 10 quick pages at a time, with the one which
	you are on in the middle if possible.

	||begin_xpages||10||
	||ifequal||npage||page_pos||
		<td width=15>||npage||</a></td>
	||else||
		<td width=15><a href="||action||?cmd=list&pos=||pagepos||&utoken=||utoken||&fld=||fld||">||npage||</a></td>
	||endif||
	||end_xpages||
 --->


||ifdef||pagedown||
		<td><a href="||action||?cmd=list&pos=||pagedown||&utoken=||utoken||&fld=||fld||"><img border="0" src="||nwimg||/rendcol.gif"></a></td>
||else||
		<td><img border="0" src="||nwimg||/rend.gif"></td>
||endif||

	</tr>
	</table>
</td></tr>
<tr align="center">
	<form name="goto_page" method="POST" action="||action||">
		<input type=hidden name="utoken" value="||utoken||">
		<input type=hidden name="fld" value="||folder||">
		<input type=hidden name="cmd" value="list">
		<input type=hidden name="pos" value="">

	<td><table cellpadding="0" cellspacing="0">
		<tr><td>
			<a href="javascript:goto_page()">Goto Page</a>
			<input type="text" size="2" maxlength="2" name="goto_page">
		</td></tr>
		</table>
	</td></form>
</tr>
||endif||
</table>

</td>
||ifequal||fld||INBOX||
||ifnequal||_nnew||0||
<td><img border="0" src="||nwimg||/show_new.gif"  alt="Show New" name="Show New" usemap="#dopopup">
	<map name="dopopup"><area coords="0,0,100,100" href="javascript:window.open('||action||?cmd=list&page=new_msg.tpl&utoken=||putoken||&&','NEWMSG','width=470,height=150,toolbar=no,location=no,directories=no,status=no,menubar=no,resizable=yes,scrollbars=yes');void(0);"></map>
</td>
||endif||
||endif||
</tr>
</table>


</center>
||endif||

<form name="List" method="POST" action="||action||">
	<input type="hidden" name="utoken" value="||utoken||">
	<input type="hidden" name="fld" value="||folder||">
	<input type="hidden" name="checknew" value="checknew">
	<input type="hidden" name="cmd" value="">

	<table border="1" bgcolor="ffffff">
		<tr><th>
		<th><a href="javascript:SelectAll();">Sel</a>
||ifequal||sort_on||subject:||
||ifequal||sort_reverse||true||
		<th><a href="||action||?cmd=list&sort_on=subject:&sort_method=text&sort_reverse=false&utoken=||utoken||&fld=||fld||&pos=||pos||">Subject</a>
||else||
		<th><a href="||action||?cmd=list&sort_on=subject:&sort_method=text&sort_reverse=true&utoken=||utoken||&fld=||fld||&pos=||pos||">Subject</a>
||endif||||else||
		<th><a href="||action||?cmd=list&sort_on=subject:&sort_method=text&sort_reverse=true&utoken=||utoken||&fld=||fld||&pos=||pos||">Subject</a>
||endif||

||ifequal||folder||copy_name||
	||ifequal||sort_on||to:||
		||ifequal||sort_reverse||true||
				<th><a href="||action||?cmd=list&sort_on=to:&sort_method=text&sort_reverse=false&utoken=||utoken||&fld=||fld||&pos=||pos||">To</a>
		||else||
				<th><a href="||action||?cmd=list&sort_on=to:&sort_method=text&sort_reverse=true&utoken=||utoken||&fld=||fld||&pos=||pos||">To</a>
		||endif||
	||else||
			<th><a href="||action||?cmd=list&sort_on=to:&sort_method=text&sort_reverse=true&utoken=||utoken||&fld=||fld||&pos=||pos||">To</a>
	||endif||
||else||
	||ifequal||folder||Draft||
		||ifequal||sort_on||to:||
			||ifequal||sort_reverse||true||
					<th><a href="||action||?cmd=list&sort_on=to:&sort_method=text&sort_reverse=false&utoken=||utoken||&fld=||fld||&pos=||pos||">To</a>
			||else||
					<th><a href="||action||?cmd=list&sort_on=to:&sort_method=text&sort_reverse=true&utoken=||utoken||&fld=||fld||&pos=||pos||">To</a>
			||endif||
		||else||
				<th><a href="||action||?cmd=list&sort_on=to:&sort_method=text&sort_reverse=true&utoken=||utoken||&fld=||fld||&pos=||pos||">To</a>
		||endif||
	||else||
		||ifequal||sort_on||from:||
			||ifequal||sort_reverse||true||
					<th><a href="||action||?cmd=list&sort_on=from:&sort_method=text&sort_reverse=false&utoken=||utoken||&fld=||fld||&pos=||pos||">From</a>
			||else||
					<th><a href="||action||?cmd=list&sort_on=from:&sort_method=text&sort_reverse=true&utoken=||utoken||&fld=||fld||&pos=||pos||">From</a>
			||endif||
		||else||
				<th><a href="||action||?cmd=list&sort_on=from:&sort_method=text&sort_reverse=true&utoken=||utoken||&fld=||fld||&pos=||pos||">From</a>
		||endif||
	||endif||
||endif||

		<th>Forward
||ifequal||sort_on||date:||
||ifequal||sort_reverse||true||
		<th><a href="||action||?cmd=list&sort_on=date:&sort_method=date&sort_reverse=false&utoken=||utoken||&fld=||fld||&pos=||pos||">Date</a>
||else||
		<th><a href="||action||?cmd=list&sort_on=date:&sort_method=date&sort_reverse=true&utoken=||utoken||&fld=||fld||&pos=||pos||'">Date</a>
||endif||||else||
		<th><a href="||action||?cmd=list&sort_on=date:&sort_method=date&sort_reverse=true&utoken=||utoken||&fld=||fld||&pos=||pos||">Date</a>
||endif||

		<th>Time
||ifequal||sort_on||h_bytes||
||ifequal||sort_reverse||true||
		<th><a href="||action||?cmd=list&sort_on=h_bytes&sort_method=number&sort_reverse=false&utoken=||utoken||&fld=||fld||&pos=||pos||">Bytes</a>
||else||
		<th><a href="||action||?cmd=list&sort_on=h_bytes&sort_method=number&sort_reverse=true&utoken=||utoken||&fld=||fld||&pos=||pos||">Bytes</a>
||endif||||else||
		<th><a href="||action||?cmd=list&sort_on=h_bytes&sort_method=number&sort_reverse=false&utoken=||utoken||&fld=||fld||&pos=||pos||">Bytes</a>
||endif||
		<th>Attach


||define||max_line_count||2||

||ifequal||nitems||0||
	||ifgreater||fld_fetch_msg||0||
	||else||
		||define||no_items||true||
	||endif||		
||endif||

||ifdef||no_items||
		<tr><td></td><td>&nbsp;</td><td colspan="7">"This Folder Contains No Messages"</td></tr>
||else||


		||begin_list||

	||ifequal||h_isdraft||0||

		||ifequal||line||0||
			<tr bgcolor="#C0C0C0"><td nowrap>
		||else||
			<tr bgcolor="#ffffff"><td nowrap>
		||endif||
				<a href="||action||?cmd=itemflag-||h_uidl||&pos=||pos||&flag=read&utoken=||utoken||&fld=||fld||"><img border="0" src="||nwimg||/iread||h_isread||.gif"></a>
				<img src="||nwimg||/iattach||h_isattached||.gif">
				<a href="||action||?cmd=itemflag-||h_uidl||&pos=||pos||&flag=reply&utoken=||utoken||&fld=||fld||"><img border="0" src="||nwimg||/ireply||h_isreplied||.gif"></a>
				<a href="||action||?cmd=itemflag-||h_uidl||&pos=||pos||&flag=delete&utoken=||utoken||&fld=||fld||"><img border="0" src="||nwimg||/idelete||h_isdeleted||.gif"></a>
<!--				<a href="||action||?cmd=itemflag-||h_uidl||&pos=||pos||&flag=flagged&utoken=||utoken||&fld=||fld||"><img border=0 src="||nwimg||/iflag||h_isflagged||.gif"></a>-->

			<td><input type=checkbox name="sel_||h_uidl||" value="on">
			<td nowrap>
				||ifequal||fet_number||0||<img src="||nwimg||/fetch1.gif">
				||else||
					||ifequal||fet_number||1||<img src="||nwimg||/fetch2.gif">
					||else||
						||ifequal||fet_number||2||<img src="||nwimg||/fetch3.gif">
						||else||
							||ifequal||fet_number||3||<img src="||nwimg||/fetch4.gif">
							||else||
								<img src="||nwimg||/fetch0.gif">
							||endif||

						||endif||
					||endif||
				||endif||

			<a href="||b_item||" >
				||ifequal||h_priority||urgent||
					<font color="#FF0000"><b>Urgent</b> ||lchop||h_subject||40||</font>
				||else||
					||lchop||h_subject||40||
				||endif||
			</a>
			<img src="||nwimg||/iunseen||h_isunseen||.gif">
			||ifequal||folder||copy_name||
				<td>||html_text||h_to||</td>
			||else||
				||ifequal||folder||Draft||
					<td>||html_text||h_to||</td>
				||else||
					<td>||html_text||h_from_personal||</td>
				||endif||
			||endif||
			<td><a href="||b_forward_edit||">Forward</a></td>
			<td>||h_date_day||</td><td nowrap>||h_date_time||</td>
			<td>||h_bytes||</td><td>||h_attach||</td>
	||else||

		||ifequal||line||0||
			<tr bgcolor="#C0C0C0"><td nowrap center>
		||else||
			<tr bgcolor="#ffffff"><td nowrap center>
		||endif||
				(DRAFT)
				<a href="||action||?cmd=itemflag-||h_uidl||&pos=||pos||&flag=delete&utoken=||utoken||&fld=||fld||"><img border="0" src="||nwimg||/idelete||h_isdeleted||.gif"></a>
			<td><input type="checkbox" name="sel_||h_uidl||" value="on">
			<td nowrap>
				||ifequal||fet_number||0||<img src="||nwimg||/fetch1.gif">
				||else||
					||ifequal||fet_number||1||<img src="||nwimg||/fetch2.gif">
					||else||
						||ifequal||fet_number||2||<img src="||nwimg||/fetch3.gif">
						||else||
							||ifequal||fet_number||3||<img src="||nwimg||/fetch4.gif">
							||else||
								<img src="||nwimg||/fetch0.gif">
							||endif||

						||endif||
					||endif||
				||endif||

				<a href="||b_item||" >||lchop||h_subject||40||</a>
			<td>
			<td><a href="||b_forward_edit||">Forward</a>
			<td>||h_date_day||<td nowrap>||h_date_time||
			<td>||h_bytes||<td>||h_attach||
	||endif||
		||end_list||
||endif||
		<tr><td></td><td nowrap><input name="allbox" type="checkbox" value="Check All" onClick="CheckAll();"></td><td><i>Select all displayed messages</i></td></tr>

	</table>

||ifdef||num_pages||
<center>
<table border cellpadding="2" cellspacing="0">
||ifequal||num_pages||1||
||else||
<tr align="center"><td>
	<table border="0" cellpadding="0" cellspacing="0">
	<tr>

||ifdef||pageup||
		<td><a href="||action||?cmd=list&pos=||pageup||&utoken=||utoken||&fld=||fld||"><img border="0" src="||nwimg||/lendcol.gif"></a></td>
||else||
		<td><img border="0" src="||nwimg||/lend.gif"></td>
||endif||


	||begin_pages||
	||iflower||npage||10||
	||ifequal||npage||page_pos||
		<td><a href="||action||?cmd=list&pos=||pagepos||&utoken=||utoken||&fld=||fld||"><img border="0" src="||nwimg||/||npage||on.gif"></a></td>
	||else||
		<td><a href="||action||?cmd=list&pos=||pagepos||&utoken=||utoken||&fld=||fld||"><img border="0" src="||nwimg||/||npage||off.gif"></a></td>
	||endif||

	||else||
	||ifequal||npage||10||

		||iflower||9||page_pos||
			<td><a href="||action||?cmd=list&pos=||pagepos||&utoken=||utoken||&fld=||fld||"><img border="0" src="||nwimg||/staron.gif"></a></td>
		||else||
			<td><a href="||action||?cmd=list&pos=||pagepos||&utoken=||utoken||&fld=||fld||"><img border="0" src="||nwimg||/staroff.gif"></a></td>
		||endif||

	||endif||
	||endif||
	||end_pages||

||ifdef||pagedown||
		<td><a href="||action||?cmd=list&pos=||pagedown||&utoken=||utoken||&fld=||fld||"><img border="0" src="||nwimg||/rendcol.gif"></a></td>
||else||
		<td><img border="0" src="||nwimg||/rend.gif"></td>
||endif||

	</tr>
	</table>
</td></tr>
||endif||

<tr align="center">
	<td><b>Page ||page_pos|| of ||num_pages||</b></td>
</tr>
</table>
</center>
||endif||

	<center><table>
	<tr><td><table>
			<tr>
				<td><input type="image" border="0" src="||nwimg||/forward.gif" name="forwardsel"></td>
				<td><input type="image" border="0" src="||nwimg||/copyto.gif" name="copysel"></td>
			</tr>
			<tr>
				<td><input type="image" border="0" src="||nwimg||/delete.gif" name="delsel"></td>
				<td><input type="image" border="0" src="||nwimg||/moveto.gif" name="movesel"></td>
			</tr>
		</table>

		<td>	<select name="dstfld" size="1">
			||ifequal||enable_inbox_transfer||true||
				<option>||fldlist||</option>
			||else||
				<option>||xfldlist||</option>
			||endif||
			</select>Sel Destination Folder:<br>
	</tr>
	</table></center>
	<hr>
</form>


||ifdef||rule_log||
	<center>
		<table border bgcolor="ffffff">
			<tr><th>Log of rule processing</tr>
			<tr><td><pre>||rule_log||</pre></td></tr>
		</table>
	</center>
||endif||


||copyright||

||ifequal||_played_sound||1||
||ifdef||_sound_file||
||ifdef||_nnew||
	<script language="JavaScript">
	<!---
	if (||_nnew|| > 0) {
		var MSIE=navigator.userAgent.indexOf("MSIE");
		var NETS=navigator.userAgent.indexOf("Netscape");
		var OPER=navigator.userAgent.indexOf("Opera");
		if((MSIE>-1) || (OPER>-1)) {
			document.write('<BGSOUND SRC="||_sound_file||" LOOP=false>');
		} else {
			document.write('<EMBED SRC="||_sound_file||" autostart=true loop=false volume=100 align="center" width=0 height=0 controls=smallconsole>');
		}
	}
	// -->
	</script>
||endif||
||endif||
||endif||


||endif||

</body>
||ifdef||list_email_charset||
	<meta http-equiv="Content-type" content="text/html; charset=||list_email_charset||">
||endif||
</html>

<script language="JavaScript">
<!--
function SelectAll()
{
	if (document.List.allbox.checked == true) {
		document.List.allbox.checked = false;
	}
	else {
		document.List.allbox.checked = true;
	}
	CheckAll();
}

function CheckAll()
{
	for (var i=0;i<document.List.elements.length;i++)
	{
		var e = document.List.elements[i];
		if (e.name != 'allbox')
			e.checked = document.List.allbox.checked;
	}
}
//-->
</script>