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

<body>
||ifequal||fetch_manual||true||
	<a href="||action||?cmd=get_fetch&folder=||fld||&utoken=||utoken||&force_connection=true&&">Check other accounts</a><br>
||endif||

<table border="0" cellpadding="0" cellspacing="0" rules="none">
<tr valign="top">
	<td>||include||nfmenu.tpl||</td><td>&nbsp;</td>
</tr>
<tr>
	<td>
		<form name="List" method="POST" action="||action||">
		<input type=hidden name="force_connection" value="true">
		<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="">

		||ifdef||error||
			<center>
			<table border="10">		
				<tr>
					<td><img src="||nwimg||/attention.gif"></td>
					<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||

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

		<table width="100%">
		<tr>
			<td>
				<b>
				||ifequal||host_num||0||
					||ifdef||_real_name||
						||_real_name||
					||else||
						||current_user||
					||endif||
				||else||
					||current_user||
				||endif||
				(||folder|| ||nitems|| messages)

				||ifnequal||_nnew||0||
					||_nnew|| new 
				||endif||
				(||connection_type||)
				</b>
			</td>
			<td><b>Page ||page_pos|| of ||num_pages||</b></td>
			<td>||pop_size|| bytes of ||disk_quota|| bytes used</td>
		</tr>
		<tr>
			<td>
				||ifdef||num_pages||
					||ifequal||num_pages||1||
					||else||
						Go To Page:
						<b>
						||ifdef||pageup||
							<a href="||action||?cmd=list&pos=||pageup||&utoken=||utoken||&fld=||fld||&force_connection=true">Previous</a>
						||else||
							Previous
						||endif||

						||begin_pages||
							||ifequal||npage||page_pos||
								||npage||
							||else||
								<a href="||action||?cmd=list&pos=||pagepos||&utoken=||utoken||&fld=||fld||&force_connection=true">||npage||</a>
							||endif||
						||end_pages||

						||ifdef||pagedown||
							<a href="||action||?cmd=list&pos=||pagedown||&utoken=||utoken||&fld=||fld||&force_connection=true">Next</a>
						||else||
							Next
						||endif||
						</b>
					||endif||
				||endif||
			</td>
		</tr>
		</table>

		<table border="1" bgcolor="ffffff" cellspacing="0" cellpadding="0" width="100%">
		<tr>
			<th>&nbsp;</th>
			<th><a href="javascript:SelectAll();">Sel</a></th>
			
			<!--All this mucky || stuff below is just to allow you to sort in reverse by clicking twice -->
			||ifequal||sort_on||subject:||
			||ifequal||sort_reverse||true||
					<th>&nbsp;<a href="||action||?cmd=list&force_connection=true&sort_on=subject:&sort_method=text&sort_reverse=false&utoken=||utoken||&fld=||fld||&pos=||pos||">Subject</a>&nbsp;</th>
			||else||
					<th>&nbsp;<a href="||action||?cmd=list&force_connection=true&sort_on=subject:&sort_method=text&sort_reverse=true&utoken=||utoken||&fld=||fld||&pos=||pos||">Subject</a>&nbsp;</th>
			||endif||||else||
					<th>&nbsp;<a href="||action||?cmd=list&force_connection=true&sort_on=subject:&sort_method=text&sort_reverse=true&utoken=||utoken||&fld=||fld||&pos=||pos||">Subject</a>&nbsp;</th>
			||endif||

			||ifequal||sort_on||from:||
			||ifequal||sort_reverse||true||
					<th>&nbsp;<a href="||action||?cmd=list&force_connection=true&sort_on=from:&sort_method=text&sort_reverse=false&utoken=||utoken||&fld=||fld||&pos=||pos||">From</a>&nbsp;</th>
			||else||
					<th>&nbsp;<a href="||action||?cmd=list&force_connection=true&sort_on=from:&sort_method=text&sort_reverse=true&utoken=||utoken||&fld=||fld||&pos=||pos||">From</a>&nbsp;</th>
			||endif||||else||
					<th>&nbsp;<a href="||action||?cmd=list&force_connection=true&sort_on=from:&sort_method=text&sort_reverse=true&utoken=||utoken||&fld=||fld||&pos=||pos||">From</a>&nbsp;</th>
			||endif||

					<th>&nbsp;Fwd&nbsp;</th>
			||ifequal||sort_on||date:||
			||ifequal||sort_reverse||true||
					<th>&nbsp;<a href="||action||?cmd=list&force_connection=true&sort_on=date:&sort_method=date&sort_reverse=false&utoken=||utoken||&fld=||fld||&pos=||pos||">Date</a>&nbsp;</th>
			||else||
					<th>&nbsp;<a href="||action||?cmd=list&force_connection=true&sort_on=date:&sort_method=date&sort_reverse=true&utoken=||utoken||&fld=||fld||&pos=||pos||'">Date</a>&nbsp;</th>
			||endif||||else||
					<th>&nbsp;<a href="||action||?cmd=list&force_connection=true&sort_on=date:&sort_method=date&sort_reverse=true&utoken=||utoken||&fld=||fld||&pos=||pos||">Date</a>&nbsp;</th>
			||endif||
						
					<th>&nbsp;Time&nbsp;</th>
			||ifequal||sort_on||h_bytes||
			||ifequal||sort_reverse||true||
					<th>&nbsp;<a href="||action||?cmd=list&force_connection=true&sort_on=h_bytes&sort_method=number&sort_reverse=false&utoken=||utoken||&fld=||fld||&pos=||pos||">Bytes</a>&nbsp;</th>
			||else||
					<th>&nbsp;<a href="||action||?cmd=list&force_connection=true&sort_on=h_bytes&sort_method=number&sort_reverse=true&utoken=||utoken||&fld=||fld||&pos=||pos||">Bytes</a>&nbsp;</th>
			||endif||||else||		
					<th>&nbsp;<a href="||action||?cmd=list&force_connection=true&sort_on=h_bytes&sort_method=number&sort_reverse=false&utoken=||utoken||&fld=||fld||&pos=||pos||">Bytes</a>&nbsp;</th>
			||endif||
					<th>&nbsp;Attach&nbsp;</th>
			||ifinstr||fld||INBOX||
			||else||
					<th>&nbsp;Host&nbsp;</th>
			||endif||




			||define||max_line_count||2||
			||begin_list||
				||ifequal||h_isdraft||0||
					||ifequal||line||0||
						<tr bgcolor="#C0C0C0">
					||else||
						<tr bgcolor="#ffffff">
					||endif||
					<td nowrap>
						<a href="||action||?cmd=itemflag-||h_uidl||&pos=||pos||&flag=read&utoken=||utoken||&fld=||fld||&force_connection=true"><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||&force_connection=true"><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||&force_connection=true"><img border=0 src="||nwimg||/idelete||h_isdeleted||.gif"></a>
					</td>
					<td><input type=checkbox name="sel_||h_uidl||" value="on"></td>
					<td nowrap>
						<img src="||nwimg||/iunseen||h_isunseen||.gif">
						<a href="||b_item||" >
							||ifdef||h_pri||
								||ifequal||h_pri||urgent||
									<font color="#FF0000"><b>Urgent</b> ||lchop||h_subject||40||</font>
								||else||
									||iflower||h_pri||1||
										||lchop||h_subject||40||
									||else||
										||iflower||h_pri||3||
											<font color="#FF0000"><b>Urgent</b> ||lchop||h_subject||40||</font>
										||else||
											||lchop||h_subject||40||
										||endif||
									||endif||
								||endif||
							||else||
								||lchop||h_subject||40||
							||endif||
						</a>
					</td>
					<td>||html_text||h_from_personal||</td>
					<td><a href="||b_forward||">Fwd</a></td>
					<td>||h_date_day||</td>
					<td nowrap>||h_date_time||</td>
					<td>||h_bytes||</td>
					<td>||h_attach||</td>
					||ifinstr||fld||INBOX||
					||else||
						<td>||h_user||@||h_host||</td>
					||endif||

				||else||

					||ifequal||line||0||
						<tr bgcolor="#C0C0C0">
					||else||
						<tr bgcolor="#ffffff">
					||endif||
						<td nowrap center>
							(DRAFT)
							<a href="||action||?cmd=itemflag-||h_uidl||&pos=||pos||&flag=delete&utoken=||utoken||&fld=||fld||&force_connection=true"><img border=0 src="||nwimg||/idelete||h_isdeleted||.gif"></a>
						</td>
						<td><input type=checkbox name="sel_||h_uidl||" value="on"></td> 
						<td nowrap><a href="||b_item||" >||chop||h_subject||40||</a></td>
						<td>&nbsp;</td>
						<td><a href="||b_forward||">Fwd</a></td>
						<td>||h_date_day||</td>
						<td nowrap>||h_date_time||</td>
						<td>||h_bytes||</td>
						<td>||h_attach||</td>
						<td>||h_user||@||h_host||</td>
					</tr>
				||endif||
			||end_list||
		<tr>
			<td nowrap></td>
			<td><input name="allbox" type="checkbox" value="Check All" onClick="CheckAll();"></td><td nowrap colspan=9><i>Select all</i></td>
		</tr>
		</table>

		<table border="2" width="100%" cellpadding="0" cellspacing="0">
		<tr>
			<td><b>Selected Items</b></td>
			<td>
				<table width="100%">
				<tr>
					<td align="center"><input type="submit" name="forwardsel" value="Forward"></td>
					<td align="center"><input type="submit" name="delsel" value="Delete"></td>
				</tr>
				</table>
			</td>
			<td>
				<table width="100%">
				<tr>
					<td align="center"><input type="submit" value="Copy To" name="copysel"></td>
					<td align="center"><input type="submit" value="Move To" name="movesel"></td>
					<td align="center">
						<select name="dstfld" size="1">
							||ifequal||enable_inbox_transfer||true||
								<option>||fldlist||</option>
							||else||
								<option>||xfldlist||</option>
							||endif||
						</select>
					</td>
				</tr>
				</table>
			</td>
		</tr>
		</table>

		<p>

		<table border="4" width="100%" cellpadding="0">
		<tr valign="middle">
			<td>
				<table border="0" rules="none" cellspacing="0" cellpadding="0">
				<tr>
					<td><img src="||nwimg||/iread0.gif"></td>
					<td>/</td>
					<td><img src="||nwimg||/iread1.gif"></td>
					<td>&nbsp; = unread/read</td>
				</tr>
				</table>
			</td>
			<td>
				<table border="0" rules="none" cellspacing="0" cellpadding="0">
				<tr>
					<td><img src="||nwimg||/iunseen1.gif"></td>
					<td>&nbsp; = new</td>
				</tr>
				</table>
			</td>
			<td>
				<table border="0" rules="none" cellspacing="0" cellpadding="0">
				<tr>
					<td><img vspace="0" src="||nwimg||/iattach1.gif"></td>
					<td> = attachment</td>
				</tr>
				</table>
			</td>
				<td>
					<table border="0" rules="none" cellspacing="0" cellpadding="0">
					<tr>
						<td><img src="||nwimg||/ireply1.gif"></td>
						<td>&nbsp; = replied</td>
					</tr>
					</table>
				</td>
			<td>
				<table border="0" rules="none" cellspacing="0" cellpadding="0">
				<tr>
					<td><img src="||nwimg||/idelete1.gif"></td>
					<td>&nbsp; = Deleted</td>
				</tr>
				</table>
			</td>
		</tr>
		</table>
		</form>

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

		||ifdef||_no_logout||
			Please Note: You did not Logout from last session.
		||endif||

		||copyright||
	</td>
</tr>
</table>
</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>
