# ~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(equal(user_folder_top,(1)))|| ||endif|| # (+ size + other info) ||endif|| ||end_list_folders||
$$st_fldmng_col_top$$ $$st_fldmng_col_fld$$ $$st_fldmng_col_msgs$$ $$st_fldmng_col_unread$$ $$st_fldmng_col_actions$$
 System folders (and any user created subfolders of these)
 User folders (no special behaviour)
||if(or(istrue(showtop_show),istrue(showtop_hide)))|| # ||endif|| ||if(equal(nfld_id,(INBOX)))||
||endif|| # ||iftrue(showtop_show)||top||endif|| # ||iftrue(showtop_hide)||more||endif||
||nfld_id|| ||nfld_nmsg||||nfld_unread|| # 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||

* Top: This allows you to customise which folders are displayed as "Top Level" folders. Subfolders trees are displayed with their base folder. The inbox is always displayed as a top level folder.

Note: Drafts vs Templates - Messages in your Templates folder ||ifndef||templates_exists|| (create templates folder now) ||endif|| do not get deleted when your edited email is sent (unlike drafts which do get deleted). Copy messages to your Templates folder from another folder to create a message template.

#

# 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||