# Surgeweb plain HTML interface # Primary page template that displays a "message for editing" ||define||file||edit.htm||\ ||include||_head.htm||
||include||_layout_begin.htm|| ||define||menu||edit|| ||include||_menu_bar.htm|| # Setup the message info ||iftrue(compose_refresh)|| # Nothing to do, everything should be all set ||else|| ||if(equal(send_type,(compose)))|| ||define((from),email_address(pref_reply,concat(username_ex,(@),domain_ex)))|| ||define(signature_out,pref_signature)|| ||define((reply_header),()|| ||else|| # Load the message index into memory ||tcmd_load_msg_info|| # Setup some input parameters to the tcmd_process_message processing function # - Reformat orgininal message based on send_type variable ||define||tparam_send_reformat||true|| # - We will be expecting the output to be text as opposed to html # ||define||tparam_show_as||text|| # Now process the message for sending giving us all the message || variables ||tcmd_process_message|| ||if(or(equal(send_type,(reply)),equal(send_type,(forward))))|| ||define((RH1),(--- Original message ---To: | |||
Redirecting original message intact. Message cannot be edited. | |||
From: | ||web_encode(from)|| | ||
Subject: | ||web_encode(subject)|| | ||
Attachments: | ||begin_list_attachments|| ||part_name|| (||bytes_basic(part_size)||)||iftrue(more)||,||endif|| ||end_list_attachments|| | ||
Cc: | |||
Bcc: | |||
From: | ||web_encode(from)|| | ||ifdef||show_cc_bcc||Hide cc / bcc | ||else||Show cc / bcc | ||endif||
Subject: | |||
Attachments: | ||define((foreach),attach_ids)|| ||begin_list_foreach||||if(not(istrue(first)))||,||endif|| ||lookup(concat((attach_fname_),item))|| (||bytes_basic(lookup(concat((attach_fsize_),item)))||)\ ||end_list_foreach||\ |