# ~identities.htm compose message file ||ifequal||sid||0|| auth_error('||auth_fail_reason||'); ||else||
#||if(not(istrue(imap_flags_available)))|| #
$$st_lblmng_noflags$$
#||endif||
$$st_actmng_desc1$$

- \ $$st_actmng_desc2$$
  $$st_actmng_desc2g$$
#
- \ # $$st_actmng_desc3$$
  $$st_actmng_desc3g$$

||begin_list_identities||
\ ||if(equal(movable,(1)))|| $$st_actmng_down$$ ||endif|| ||if(equal(movable,(2)))|| $$st_actmng_up$$ | $$st_actmng_down$$ ||endif|| ||if(equal(movable,(3)))|| $$st_actmng_up$$ ||endif||
\
||if(or(equal(ident_type,(self)),equal(ident_type,(acct)),equal(ident_type,(alias))))|| #
||endif||
||ifdef||ident_name|| ||web_encode(concat(ident_name,( <),ident_email,(>)))|| ||else|| ||web_encode||ident_email|| ||endif|| ||iftrue(ident_disabled)|| $$st_actmng_disabled$$ ||endif|| ||if(equal(ident_type,(xacct)))|| $$st_actmng_xact$$ ||else|| $$st_actmng_details$$ ||endif|| ||if(equal(ident_type,(acct)))|| | $$st_actmng_delete_act$$ ||endif|| ||if(equal(ident_type,(alias)))|| | $$st_actmng_delete_act$$ ||endif|| ||if(equal(ident_type,(ident)))|| | $$st_actmng_delete_ident$$ ||endif||
||if(not(blank(ident_replyto)))||$$st_actmng_replyto$$ ||web_encode||ident_replyto||
||endif|| ||if(not(blank(ident_signame)))||$$st_actmng_sig$$ ||web_encode||ident_signame||
||endif|| ||if(not(blank(ident_send)))||$$st_actmng_smtpsvr$$ ||web_encode||ident_send||
||endif|| ||if(not(blank(ident_fetch)))||$$st_actmng_fetchsvr$$ ||web_encode||ident_fetch|| $$st_actmng_fetchnow$$ ||endif||
||if(equal(ident_type,(self)))||$$st_actmng_type_base$$||endif|| ||if(equal(ident_type,(acct)))||$$st_actmng_type_act$$||endif|| ||if(equal(ident_type,(ident)))||$$st_actmng_type_ident$$||endif|| ||if(equal(ident_type,(alias)))||$$st_actmng_type_alias$$||endif|| ||if(equal(ident_type,(xacct)))||$$st_actmng_type_ios$$||endif||
||define||done_some||true|| ||end_list_identities|| ||if(not(istrue(done_some)))||
$$st_actmng_none$$
||endif||
# 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
||define||script_block||execute_it|| ||include||_ident.js|| # ||include||_flds.js||
||ifdef||results|| success_string=''; ||begin_list_results|| add_error('||result_type||','||web_encode_js(result)||'); ||end_list_results|| if(success_string) set_status(success_string,'warning'); ||endif|| panel_show_old("identity"); var js=dge("execute_it"); if(js){ eval(js.innerHTML); js.parentNode.removeChild(js); } ||endif||