# ~folders.htm compose message file ||ifequal||sid||0|| ||else||
#
$$st_fldmng_new1$$ $$st_fldmng_new2$$

# ||define||tparam_folder_notop||true|| ||begin_list_folders|| ||if(equal(nfld_id,(More Folders)))|| ||else|| ||if(and(equal(user_folder_top,(1)),blank(nfld_missing))))|| # ||define||delta||1|| ||endif|| \ ||if(not(blank(nfld_missing)))||\ \ \ \ \ \ ||else||\ \ # \ \ \ \ # (+ size + other info) ||endif|| ||endif|| ||end_list_folders|| # # #
$$st_fldmng_sysfld$$ $$st_fldmng_sysfld2$$
$$st_fldmng_col_fld$$$$st_fldmng_col_shared$$ $$st_fldmng_col_msgs$$ $$st_fldmng_col_unread$$ $$st_fldmng_col_size$$ $$st_fldmng_col_actions$$ $$st_fldmng_col_top$$
 
$$st_fldmng_userfld$$ $$st_fldmng_userfld2$$
$$st_fldmng_col_fld$$$$st_fldmng_col_shared$$ $$st_fldmng_col_msgs$$ $$st_fldmng_col_unread$$ $$st_fldmng_col_size$$ $$st_fldmng_col_actions$$ $$st_fldmng_col_top$$
||web_encode_js(nfld_short_name)||
     
||web_encode_js(nfld_short_name)||
||nfld_shared||||nfld_nmsg||||nfld_unread||||iftrue(nfld_size_unknown)|| $$st_fldmng_calc$$ ||else|| ||kbytes_basic(nfld_size_kb)|| ||endif|| # rename | delete # delete ||if(or(istrue(user_folder),equal(nfld_id,(Templates))))|| # $$st_fldmng_actn_name$$ | $$st_fldmng_actn_move$$ | $$st_fldmng_actn_del$$ ||endif|| # rename | delete ||iftrue(pref_devt_mode)||[dump] ||endif|| ||if(or(istrue(showtop_show),istrue(showtop_hide)))|| ||if(istrue(showtop_hide))|| $$st_fldmng_demote$$ ||else|| $$st_fldmng_promote$$ ||endif|| ||endif|| # ||if(or(istrue(showtop_show),istrue(showtop_hide)))|| # # ||endif|| # ||if(equal(nfld_id,(INBOX)))||
||endif||
Refresh allRecalculate all

$$st_fldmng_advanced$$

||if(blank(imap_acl_disabled))||
$$st_fldmng_recalc_all_i$$$$st_fldmng_recalc_all_i2$$
$$st_fldmng_refr_all_i$$ $$st_fldmng_refr_all_i2$$
$$st_fldmng_acl_info$$ ||else|| $$st_fldmng_acl_disabled$$ ||endif||


$$st_fldmng_info1$$

$$st_fldmng_info2a$$ ||ifndef||templates_exists|| ($$st_fldmng_info2b$$) ||endif|| $$st_fldmng_info2c$$

$$st_fldmng_info3$$




#
# Still all bit yuck but the construct is getting nicer :-) # I think we need to make the "result div" a script block and then it is as nice as it will get given browser constraints ||ifdef||output_folders|| ||define||script_block||execute_it|| ||define||tparam_folder_notop||false|| ||include||_flds.js|| ||endif|| ||endif||