Location: PHPKode > projects > CsWebmail > cswebmail-3.10/cswebmail-3.10/templates/AntiSpamProcmailRule_edit_presentation.php
<?if(VALID_DOCUMENT != 1) die('what?');
$mailbox_names = get_mailboxes_names();
unset($mailbox_names['INBOX']);
?>
<input type="hidden" name="name" value="<?=$this->name?>"/>
<input type="hidden" name="entry" value="<?=$this->name?>"/>
<tr><th colspan="2">Spam Filtering</th></tr>

<tr>
<td>Action</td>
<td>
<input name="rule-action" value="move-mbox" type="radio" <?=($this->rule['rule-action']=='move-mbox' || $this->rule['rule-action']=='')?'checked':''?>/>

Move Folder:
<select name="move-mbox">
<?foreach($mailbox_names as $k=>$v){?>
<option value="<?=$v?>" <?=$this->rule['action']==basename($v)?'selected':''?>><?=$k?></option>
<?}?>
</select>
<br/>
<input name="rule-action" value="forward-email" type="radio" <?=$this->rule['rule-action']=='forward-email'?'checked':''?>/>
Forward to Email Address: <input name="forward-email" size="30" type="text" value="<?=$this->rule['rule-action']=='forward-email'?$this->rule['action']:''?>"/>
<br/>
<input name="rule-action" value="discard-email" type="radio" <?=$this->rule['rule-action']=='discard-email'?'checked':''?>/>
Discard Email
</td>
</tr>
Return current item: CsWebmail