# ~folders.htm compose message file ||ifequal||sid||0|| ||else||
||if(not(istrue(imap_flags_available)))||
WARNING: Custom IMAP flags are disabled on this server, this means surgeweb's Universal Labels are not available. Universal labels are much more efficient and can be read using other IMAP email clients. It is recommended that the administrator enables g_imap_user_flags.
||endif||
Labels allow you to mark messages with one or more tags such as: ||define||label_name||Important|| ||define||label_bg||#FFE3E3|| ||define||label_bdr||#F0B2B2|| ||undef||label_col||
||web_encode(label_name)||
or   ||define||label_name||Personal|| ||define||label_bg||#D3E2C3|| ||define||label_bdr||#98BB74|| ||undef||label_col||
||web_encode(label_name)||
a bit like flagging a message with a star but more flexible.

Create new label**: Create as Surgeweb label

||begin_list_labels|| \ ||iftrue(imap_label)|| ||else|| ||endif|| ||define||done_some||true|| ||end_list_labels|| ||if(not(istrue(done_some)))||
Display name Label Actions Displayed as Stored as
||web_encode(label_name)|| rename | color | ||iftrue(label_hidden)|| show ||else|| hide ||endif|| \ ||iftrue(label_hidden)|| ||else||
||web_encode(label_name)||
||endif||\
||label_tag||Universal label (||iftrue(new_label)||not yet allocated||else||||label_flagbit|| of 22||endif||)||label_tag||Surgeweb label
No Labels currently defined. ||endif||

**

Before using labels please read the notes on the use of labels.
Once created you can rename the display name, or hide a label but not delete it.
Universal labels are stored as IMAP custom flags.    Surgeweb labels are stored as a message header.


||iftrue(imap_flags_available)||
Some IMAP mail clients use IMAP flags such has $label1 or Junk or JunkRecorded. Surgeweb will try and initialise these with appropriate values but you can apply the mappings below or manually change display name, color etc.
Mail client mapping: #




||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 ||ifdef||output_folders|| ||define||script_block||execute_it|| ||include||_flds.js|| ||endif|| ||endif||