<commit_before>{title help="Webmail"}{tr}Mail-in accounts{/tr}{/title}

<table class="normal" style="text-align:center">
  <tr>
    <th>
      {tr}Action{/tr}
    </th>
    <th>
      {tr}Account{/tr}
    </th>
    <th>{tr}Type{/tr}</th>
    <th>{tr}Active{/tr}</th>
    <th>{tr}Anonym{/tr}</th>
    <th>{tr}Attach{/tr}</th>
    <th>{tr}Inline{/tr}</th>
    <th>{tr}Categ{/tr}</th>
    <th>{tr}Email resp{/tr}</th>
  </tr>
  {cycle values="even,odd" print=false}
  {section name=ix loop=$accounts}
    <tr class="{cycle}">
      <td class="action">
        <a href="tiki-admin_mailin.php?accountId={$accounts[ix].accountId}#add">{icon _id='page_edit'}</a>
        <a href="tiki-admin_mailin.php?remove={$accounts[ix].accountId}" >{icon _id='cross' alt="{tr}Remove{/tr}"}</a>
      </td>
      <td class="text">{$accounts[ix].account}</td>
      <td class="text">{tr}{$accounts[ix].type}{/tr}</td>
      <td class="text">{tr}{$accounts[ix].active}{/tr}</td>
      <td class="text">{tr}{$accounts[ix].anonymous}{/tr}</td>
      <td class="text">{tr}{$accounts[ix].attachments}{/tr}</td>
      <td class="text">{tr}{$accounts[ix].show_inlineImages}{/tr}</td>
      <td class="text">{tr}{$accounts[ix].categoryId}{/tr}</td>
      <td class="text">{tr}{$accounts[ix].respond_email}{/tr}</td>
	  
    </tr>
  {/section}
</table>
<br>
{if $tikifeedback}
{section name=n loop=$tikifeedback}<div class="simplebox {if $tikifeedback[n].num > 0} highlight{/if}">{$tikifeedback[n].mes}</div>{/section}
{/if}
<br>

<a name="add" ></a><h2>{if $accountId eq 0}{tr}Add new Mail-in account{/tr}{else}{tr}Edit Mail-in account:{/tr} <i>{$info.account}</i>{/if}</h2>
<form action="tiki-admin_mailin.php" method="post">
  <input type="hidden" name="accountId" value="{$accountId|escape}">
  <table class="formcolor">
    <tr>
      <td>{tr}Account name{/tr}</td>
      <td colspan="3"><input type="text" name="account" value="{$info.account|escape}"></td>
    </tr>
    <tr>
      <td>{tr}POP server{/tr}</td>
      <td><input type="text" name="pop" value="{$info.pop|escape}"></td>
      <td>{tr}Port{/tr}</td>
      <td><input type="text" name="port" size="7" value="{$info.port}"></td>
    </tr>
    <tr>
      <td>{tr}SMTP server{/tr}</td>
      <td><input type="text" name="smtp" value="{$info.smtp|escape}"></td>
      <td>{tr}Port{/tr}</td>
      <td><input type="text" name="smtpPort" size="7" value="{$info.smtpPort}"></td>
    </tr>
    <tr>
      <td>{tr}SMTP requires authentication{/tr}</td>
      <td colspan="3">
        {tr}Yes{/tr}
        <input type="radio" name="useAuth" value="y" {if $info.useAuth eq 'y'}checked="checked"{/if}>
        {tr}No{/tr}
        <input type="radio" name="useAuth" value="n" {if $info.useAuth eq 'n'}checked="checked"{/if}>
      </td>
    </tr>
    <tr>
      <td>{tr}Username{/tr}</td>
      <td colspan="3"><input type="text" name="username" value="{$info.username|escape}"></td>
    </tr>
    <tr>
      <td>{tr}Password{/tr}</td>
      <td colspan="3"><input type="password" name="pass" value="{$info.pass|escape}"></td>
    </tr>
    <tr>
      <td>{tr}Type{/tr}</td>
      <td colspan="3">
        <select name="type" id='mailin_type' onchange='javascript:chgMailinType();'>
		  {if $prefs.feature_articles eq 'y'}
			<option value="article-put" {if $info.type eq 'article-put'}selected="selected"{/if}>{tr}article-put{/tr}</option>
          {/if}
          <option value="wiki-get" {if $info.type eq 'wiki-get'}selected="selected"{/if}>{tr}wiki-get{/tr}</option>
          <option value="wiki-put" {if $info.type eq 'wiki-put'}selected="selected"{/if}>{tr}wiki-put{/tr}</option>
          <option value="wiki-prepend" {if $info.type eq 'wiki-prepend'}selected="selected"{/if}>{tr}wiki-prepend{/tr}</option>
          <option value="wiki-append" {if $info.type eq 'wiki-append'}selected="selected"{/if}>{tr}wiki-append{/tr}</option>
          <option value="wiki" {if $info.type eq 'wiki'}selected="selected"{/if}>{tr}wiki{/tr}</option>
        </select>
      </td>
    </tr>

{if $prefs.feature_articles eq 'y'}
<tr id='article_topic' {if $info.type ne 'article-put'}style="display:none;"{/if}><td>{tr}Article Topic{/tr}</td><td>
<select name="article_topicId">
{foreach $topics as $topicId=>$topic}
<option value="{$topicId|escape}" {if $info.article_topicId eq $topicId}selected="selected"{/if}>{$topic.name}</option>
{/foreach}
<option value="" {if $info.article_topicId eq 0}selected="selected"{/if}>{tr}None{/tr}</option>
</select>
{if $tiki_p_admin_cms eq 'y'}<a href="tiki-admin_topics.php" class="link">{tr}Admin Topics{/tr}</a>{/if}
</td><td></td><td></td></tr>
<tr id='article_type' {if $info.type ne 'article-put'}style="display:none;"{/if}><td>{tr}Article Type{/tr}</td><td>
<select id='articletype' name='article_type'>
<option value="">-</option>
{section name=t loop=$types}
<option value="{$types[t].type|escape}" {if $info.article_type eq $types[t].type}selected="selected"{/if}>{tr}{$types[t].type}{/tr}</option>
{/section}
</select>
{if $tiki_p_admin_cms eq 'y'}<a href="tiki-article_types.php" class="link">{tr}Admin Types{/tr}</a>{/if}
</td><td></td><td></td></tr>
{/if}
    <tr>
      <td>{tr}Active{/tr}</td>
      <td colspan="3">
        {tr}Yes{/tr}
        <input type="radio" name="active" {if $info.active eq 'y'}checked="checked"{/if} value="y">
        {tr}No{/tr}
        <input type="radio" name="active" {if $info.active eq 'n'}checked="checked"{/if} value="n">
      </td>
    </tr>
    <tr>
      <td>{tr}Allow anonymous access{/tr}</td>
      <td colspan="3">
        {tr}Yes{/tr}
        <input type="radio" name="anonymous" {if $info.anonymous eq 'y'}checked="checked"{/if} value="y">
        {tr}No{/tr}
        <input type="radio" name="anonymous" {if $info.anonymous eq 'n'}checked="checked"{/if} value="n">
      </td>
    </tr>
   {if $prefs.feature_wiki_attachments eq 'y'}
    <tr>
      <td>{tr}Allow attachments{/tr}</td>
      <td colspan="3">
        {tr}Yes{/tr}
        <input type="radio" name="attachments" {if $info.attachments eq 'y'}checked="checked"{/if} value="y">
        {tr}No{/tr}
        <input type="radio" name="attachments" {if $info.attachments eq 'n'}checked="checked"{/if} value="n">
      </td>
    </tr>
    <tr>
      <td>{tr}Show inline images{/tr}</td>
      <td colspan="3">
        {tr}Yes{/tr}
        <input type="radio" name="show_inlineImages" {if $info.show_inlineImages eq 'y'}checked="checked"{/if} value="y">
        {tr}No{/tr}
        <input type="radio" name="show_inlineImages" {if $info.show_inlineImages eq 'n' || $info.show_inlineImages eq '' }checked="checked"{/if} value="n">
      </td>
    </tr>
    {/if}
    <tr>
      <td>{tr}Discard to the end from{/tr}</td>
      <td colspan="3">
      <input type="text" name="discard_after" value="{$info.discard_after|escape}">
      </td>
   </tr>
   {if $prefs.feature_categories eq 'y'}
    <tr>
      <td>{tr}Auto-assign categoryId{/tr}</td>
      <td colspan="3">
        <input type="text" size="10" name="categoryId" value="{$info.categoryId}" />
      </td>
    </tr>
    {/if}
    <tr>
      <td>{tr}Email response when no access{/tr}</td><commit_msg>[ENH] Make it easier to spot and change requirements<commit_after>{title help="Webmail"}{tr}Mail-in accounts{/tr}{/title}

<table class="normal" style="text-align:center">
  <tr>
    <th>
      {tr}Action{/tr}
    </th>
    <th>
      {tr}Account{/tr}
    </th>
    <th>{tr}Type{/tr}</th>
    <th>{tr}Active{/tr}</th>
    <th>{tr}Anonym{/tr}</th>
    <th>{tr}Attach{/tr}</th>
    <th>{tr}Inline{/tr}</th>
    <th>{tr}Categ{/tr}</th>
    <th>{tr}Email resp{/tr}</th>
  </tr>
  {cycle values="even,odd" print=false}
  {section name=ix loop=$accounts}
    <tr class="{cycle}">
      <td class="action">
        <a href="tiki-admin_mailin.php?accountId={$accounts[ix].accountId}#add">{icon _id='page_edit'}</a>
        <a href="tiki-admin_mailin.php?remove={$accounts[ix].accountId}" >{icon _id='cross' alt="{tr}Remove{/tr}"}</a>
      </td>
      <td class="text">{$accounts[ix].account}</td>
      <td class="text">{tr}{$accounts[ix].type}{/tr}</td>
      <td class="text">{tr}{$accounts[ix].active}{/tr}</td>
      <td class="text">{tr}{$accounts[ix].anonymous}{/tr}</td>
      <td class="text">{tr}{$accounts[ix].attachments}{/tr}</td>
      <td class="text">{tr}{$accounts[ix].show_inlineImages}{/tr}</td>
      <td class="text">{tr}{$accounts[ix].categoryId}{/tr}</td>
      <td class="text">{tr}{$accounts[ix].respond_email}{/tr}</td>
	  
    </tr>
  {/section}
</table>
<br>
{if $tikifeedback}
{section name=n loop=$tikifeedback}<div class="simplebox {if $tikifeedback[n].num > 0} highlight{/if}">{$tikifeedback[n].mes}</div>{/section}
{/if}
<br>

<a name="add" ></a><h2>{if $accountId eq 0}{tr}Add new Mail-in account{/tr}{else}{tr}Edit Mail-in account:{/tr} <i>{$info.account}</i>{/if}</h2>
<form action="tiki-admin_mailin.php" method="post">
  <input type="hidden" name="accountId" value="{$accountId|escape}">
  <table class="formcolor">
    <tr>
      <td>{tr}Account name{/tr}</td>
      <td colspan="3"><input type="text" name="account" value="{$info.account|escape}"></td>
    </tr>
    <tr>
      <td>{tr}POP server{/tr}</td>
      <td><input type="text" name="pop" value="{$info.pop|escape}"></td>
      <td>{tr}Port{/tr}</td>
      <td><input type="text" name="port" size="7" value="{$info.port}"></td>
    </tr>
    <tr>
      <td>{tr}SMTP server{/tr}</td>
      <td><input type="text" name="smtp" value="{$info.smtp|escape}"></td>
      <td>{tr}Port{/tr}</td>
      <td><input type="text" name="smtpPort" size="7" value="{$info.smtpPort}"></td>
    </tr>
    <tr>
      <td>{tr}SMTP requires authentication{/tr}</td>
      <td colspan="3">
        {tr}Yes{/tr}
        <input type="radio" name="useAuth" value="y" {if $info.useAuth eq 'y'}checked="checked"{/if}>
        {tr}No{/tr}
        <input type="radio" name="useAuth" value="n" {if $info.useAuth eq 'n'}checked="checked"{/if}>
      </td>
    </tr>
    <tr>
      <td>{tr}Username{/tr}</td>
      <td colspan="3"><input type="text" name="username" value="{$info.username|escape}"></td>
    </tr>
    <tr>
      <td>{tr}Password{/tr}</td>
      <td colspan="3"><input type="password" name="pass" value="{$info.pass|escape}"></td>
    </tr>
    <tr>
      <td>{tr}Type{/tr}</td>
      <td colspan="3">
        <select name="type" id='mailin_type' onchange='javascript:chgMailinType();'>
		  {if $prefs.feature_articles eq 'y'}
			<option value="article-put" {if $info.type eq 'article-put'}selected="selected"{/if}>{tr}article-put{/tr}</option>
          {/if}
          <option value="wiki-get" {if $info.type eq 'wiki-get'}selected="selected"{/if}>{tr}wiki-get{/tr}</option>
          <option value="wiki-put" {if $info.type eq 'wiki-put'}selected="selected"{/if}>{tr}wiki-put{/tr}</option>
          <option value="wiki-prepend" {if $info.type eq 'wiki-prepend'}selected="selected"{/if}>{tr}wiki-prepend{/tr}</option>
          <option value="wiki-append" {if $info.type eq 'wiki-append'}selected="selected"{/if}>{tr}wiki-append{/tr}</option>
          <option value="wiki" {if $info.type eq 'wiki'}selected="selected"{/if}>{tr}wiki{/tr}</option>
        </select>
      </td>
    </tr>

{if $prefs.feature_articles eq 'y'}
<tr id='article_topic' {if $info.type ne 'article-put'}style="display:none;"{/if}><td>{tr}Article Topic{/tr}</td><td>
<select name="article_topicId">
{foreach $topics as $topicId=>$topic}
<option value="{$topicId|escape}" {if $info.article_topicId eq $topicId}selected="selected"{/if}>{$topic.name}</option>
{/foreach}
<option value="" {if $info.article_topicId eq 0}selected="selected"{/if}>{tr}None{/tr}</option>
</select>
{if $tiki_p_admin_cms eq 'y'}<a href="tiki-admin_topics.php" class="link">{tr}Admin Topics{/tr}</a>{/if}
</td><td></td><td></td></tr>
<tr id='article_type' {if $info.type ne 'article-put'}style="display:none;"{/if}><td>{tr}Article Type{/tr}</td><td>
<select id='articletype' name='article_type'>
<option value="">-</option>
{section name=t loop=$types}
<option value="{$types[t].type|escape}" {if $info.article_type eq $types[t].type}selected="selected"{/if}>{tr}{$types[t].type}{/tr}</option>
{/section}
</select>
{if $tiki_p_admin_cms eq 'y'}<a href="tiki-article_types.php" class="link">{tr}Admin Types{/tr}</a>{/if}
</td><td></td><td></td></tr>
{/if}
    <tr>
      <td>{tr}Active{/tr}</td>
      <td colspan="3">
        {tr}Yes{/tr}
        <input type="radio" name="active" {if $info.active eq 'y'}checked="checked"{/if} value="y">
        {tr}No{/tr}
        <input type="radio" name="active" {if $info.active eq 'n'}checked="checked"{/if} value="n">
      </td>
    </tr>
    <tr>
      <td>{tr}Allow anonymous access{/tr}</td>
      <td colspan="3">
        {tr}Yes{/tr}
        <input type="radio" name="anonymous" {if $info.anonymous eq 'y'}checked="checked"{/if} value="y">
        {tr}No{/tr}
        <input type="radio" name="anonymous" {if $info.anonymous eq 'n'}checked="checked"{/if} value="n">
      </td>
    </tr>
    <tr>
      <td>{tr}Allow attachments{/tr}</td>
      <td colspan="3">
	   {if $prefs.feature_wiki_attachments eq 'y'}
        {tr}Yes{/tr}
        <input type="radio" name="attachments" {if $info.attachments eq 'y'}checked="checked"{/if} value="y">
        {tr}No{/tr}
        <input type="radio" name="attachments" {if $info.attachments eq 'n'}checked="checked"{/if} value="n">
	    {else}
		<a href="tiki-admin.php?page=wiki&cookietab=2&highlight=feature_wiki_attachments">Activate attachments</a>
		{/if}
      </td>
    </tr>
    <tr>
      <td>{tr}Show inline images{/tr}</td>
      <td colspan="3">
		{if $prefs.feature_wiki_attachments eq 'y'}
        {tr}Yes{/tr}
        <input type="radio" name="show_inlineImages" {if $info.show_inlineImages eq 'y'}checked="checked"{/if} value="y">
        {tr}No{/tr}
        <input type="radio" name="show_inlineImages" {if $info.show_inlineImages eq 'n' || $info.show_inlineImages eq '' }checked="checked"{/if} value="n">
	    {else}
		<a href="tiki-admin.php?page=wiki&cookietab=2&highlight=feature_wiki_attachments">Activate attachments</a>
		{/if}
      </td>
    </tr>
    <tr>
      <td>{tr}Discard to the end from{/tr}</td>
      <td colspan="3">
      <input type="text" name="discard_after" value="{$info.discard_after|escape}">
      </td>
   </tr>
    <tr>
      <td>{tr}Auto-assign categoryId{/tr}</td>
      <td colspan="3">
	   {if $prefs.feature_categories eq 'y'}
        <input type="text" size="10" name="categoryId" value="{$info.categoryId}" />
        {else}
		<a href="tiki-admin.php?page=features&highlight=feature_categories">Activate categories</a>
		{/if}
      </td>
    </tr>
    <tr>
      <td>{tr}Email response when no access{/tr}</td>
{'fraction_non_alphanumeric': 0.24231919521479064, 'fraction_numerical': 0.0028548123980424145, 'mean_word_length': 3.825516562807478, 'pattern_counts': {'":': 0, '<': 443, '<?xml version=': 0, '>': 447, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4531133', 'n_tokens_mistral': 5721, 'n_tokens_neox': 5635, 'n_words': 908}