***** Chem, MAILS package body ***** is total_visitors number(7); score number(8); h_id header.id%TYPE; h_msg_date header.msg_date%TYPE; h_subject header.subject%TYPE; h_sender header.sender%TYPE; h_bytes header.bytes%TYPE; up int := 0; -- ~1: by header; ~2: by date; ~3: by subject; ~4 by sender; ~5: by people session_id number(6); key varchar2(200); usr_query_id number; procedure listfolders(action_cgi in varchar2) is total_folder number := 0; begin select count(*) into total_folder from folder; htp.p(htf.line); htp.p('There are total '||total_folder|| ' folders in your mailbox. Which folder would you like to choose ?'||htf.para); htp.formOpen(cgi_bin||'MAILS.'||action_cgi); list_folder(12); end; procedure list_folder(m integer) is total number := 0; n integer := 1; cursor cfolder is select id,name,n_msg from folder order by name; begin select sum(n_msg),count(*) into total,n from folder; if (n > m) then n := m; end if; htp.p(''); for folder in cfolder loop htp.p('