loops/agent/ui/templates/mailcrawl.html
scrat c3ffee3437 core.py
*agent now creates an empty temporary directory in
 which all jobs should create their jobdirectories

ui/web.py
* outlook crawler has changed, adapted ui methods
  accordingly to access OutlookResource objects
  instead of email.MIME lists
* using agent object as an attribute in the
  AgentHome class which is now passed through when
  necessary
* changed form for creating OutlookCrawlJobs to provide
  possibility to select whether inbox, subfolders or
  both foldertypes should be crawled and to specify
  a regular expression for subfolder selection
  todo: add scheduler options
* changed the way how jobdetails are displayed
* changed display of crawling ressources:
  now it is also possible to display the job folders
  and enter them to view the mail objects

* added first sketch of a filesystem crawler form,
  without functionality at the moment

known bugs: currently having problems with character encodings

git-svn-id: svn://svn.cy55.de/Zope3/src/loops/trunk@1950 fd906abe-77d9-0310-91a1-e0d9ade77398
2007-08-22 13:57:22 +00:00

197 lines
No EOL
8.7 KiB
HTML

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<!--<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> //-->
<html xmlns:nevow="http://nevow.com/ns/nevow/0.1">
<!-- Outlook Mails Page for loops.agent UI Version: 0.1 //-->
<nevow:invisible nevow:render="header_fragment" />
<body>
<div class="body">
<div nevow:render="top_fragment">
</div>
<div id="menu">
<div nevow:render="navigation_fragment">
</div>
<br/>
<br/>
<div class="box">
<h4>User Mode</h4>
<div class="body">
<b>Current Mode: </b><p nevow:render="getActiveUserMode"/>
</div>
</div>
</div>
<div id="content">
<div></div>
<div></div>
<div class="content-1" id="2.body" ondblclick="">
<div class="line-block">
<div class="line"><br /></div>
</div>
<div class="section">
<h3><a id="agent-ui-startpage" name="agent-ui-startpage">Agent: Create Mail Crawl Job</a></h3>
<ul class="simple">
<li>Configuration page for Outlook Mail Crawler jobs.</li>
</ul>
</div>
<div class="section">
<h3><a id="form-overview" name="form-overview">Overview</a></h3>
<ul class="simple">
<li><b>Mail Collection</b><div nevow:render="data" nevow:data="displayViewForm"/></li>
</ul>
<div align="center">
<table border="0" cellpadding="10">
<p nevow:render="displayOutlookMails">
<tr nevow:pattern="OutlookMails" nevow:render="data"/>
</p>
</table>
<form name="OutlookCrawlForm" action="submitOutlookCrawlJob" method="POST">
<fieldset>
<legend>
Mail Crawl Settings
</legend>
<fieldset>
<legend>Folders to crawl</legend>
<table align="center">
<tr>
<td>
<label for="lblCrawlInbox">Crawl inbox</label>
</td>
<td>
<input id="lblCrawlInbox" name="inbox" type="checkbox"
value="inbox"/><!-- outlook job param //-->
</td>
</tr>
<tr>
<td>
<label for="lblCrawlSubfolders">Crawl subfolders</label>
</td>
<td>
<input type="checkbox" id="lblCrawlSubfolders" name="subfolders"
value = "subfolders"/><!-- outlook job param //-->
</td>
</tr>
<tr>
<td>
<label for="lblSubFolderPattern">Pattern for subfolders to include</label>
</td>
<td>
<input type="text" maxlength="20" size="16" id="lblSubFolderPattern"
name="pattern"/><!-- outlook job param //-->
</td>
</tr>
</table>
</fieldset>
<fieldset>
<legend>
Filter criteria patterns
</legend>
<table align="center">
<tr>
<td>
<label for="lblselectFilterCriteria">Filter criteria: </label>
</td>
<td>
<select id="lblselectFilterCriteria" name="selectFilterCriteria">
<option>sender</option>
<option>receiver</option>
<option>subject</option>
</select>
</td>
</tr>
<tr>
<td>
<label for="lblfilterPattern">Pattern: </label>
</td>
<td>
<input id="lblfilterPattern" name="filterPattern"
type="text" size="12" maxlength="20" />
</td>
</tr>
</table>
</fieldset>
<fieldset>
<legend>
Message parts to be stored
</legend>
<table align="center">
<tr>
<td>
<label for="lblselectContentFormat">Transfer HTML or Plain Text: </label>
</td>
<td>
<select id="lblselectContentFormat" name="selectContentFormat">
<option>text</option>
<option>html</option>
<option>both</option>
</select>
</td>
</tr>
<tr>
<td>
<label for="lblselectAttachements">Include attachements: </label>
</td>
<td>
<select id="lblselectAttachements" name="selectAttachements">
<option>Yes</option>
<option>No</option>
</select>
</td>
</tr>
</table>
</fieldset>
<fieldset>
<legend>
Job Interval
</legend>
<table align="center">
<tr>
<td>
<label for="lblmailCrawlIntervaloneTime">One Time: </label>
</td>
<td>
<input type="radio" id="lblmailCrawlIntervaloneTime" name="mailCrawlInterval"
value="oneTime" checked="checked" />
</td>
</tr>
<tr>
<td>
<label for="lblmailCrawlIntervalScheduler">Use Scheduler: </label>
</td>
<td>
<input type="radio" id="lblmailCrawlIntervalScheduler" name="mailCrawlInterval"
value="Scheduler" />
</td>
</tr>
</table>
</fieldset>
<input type="submit" name="startCrawlJob" value="Save and Start" />
</fieldset>
</form>
<div nevow:render="systemMessage"/>
</div>
</div>
</div>
</div>
<div id="sub-section" define-macro="sub-section">
</div>
<div nevow:render="footer_fragment">
</div>
</div>
</body>
</html>