Reverse-merged /alfresco/BRANCHES/DEV/IMAP3:r14500,14521,14560,14563,14632

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@14657 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Derek Hulley
2009-06-11 14:00:22 +00:00
parent 1a0c0dc758
commit cb7c4e6593
51 changed files with 2797 additions and 4727 deletions

View File

@@ -75,17 +75,7 @@ function createResponseTextHtml(nodes)
*/
function createContentTextHtml(nodes)
{
var content ="<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0 Transitional//EN\">" +
"<html><head>" +
"<meta http-equiv=Content-Type content=\"text/html; charset=UTF-8\">" +
"<style type=\"text/css\">" +
"* {font-family:Verdana,Arial,sans-serif;font-size:11px;}" +
".links {border:1px dotted #555555;border-collapse:collapse;width:99%;}" +
".links td {border:1px dotted #555555;padding:5px;}" +
"</style>" +
"</head>" +
"<body>" +
"<div>" + "Command: " + title + "\n<br/><br/>\n";
var content = "Command: " + title + "\n<br/><br/>\n";
content += "<table class=\"links\">\n";
content += "<thead align=\"center\">";
content += "<tr>";
@@ -93,7 +83,7 @@ function createContentTextHtml(nodes)
content += "<td>Url</td>";
content += "<td>Download Url</td>";
content += "</tr>";
content += "</thead>\n" + "</div></body></html>";
content += "</thead>\n"
for (var i = 0; i < nodes.length; i++)
@@ -143,7 +133,7 @@ function commandSearch(params)
if (query == null)
{
createEmail(errorParameter, errorParameter, errorParameter);
createEmail(errorParameter, errorParameter, errorParameter, false);
return;
}
@@ -164,7 +154,7 @@ function commandSearch(params)
}
else
{
createEmail(errorXPathNotValid, errorXPathNotValid, errorXPathNotValid);
createEmail(errorXPathNotValid, errorXPathNotValid, errorXPathNotValid, false);
return;
}
break;
@@ -190,8 +180,8 @@ function commandSearch(params)
createEmail(message, message, subject);
return;
}
/*createEmail(createContentTextPlain(nodes), createResponseTextHtml(nodes), subject);*/
createEmail(createContentTextPlain(nodes), createContentTextHtml(nodes), subject);
/*createEmail(createResponseTextHtml(nodes), createContentTextPlain(nodes), subject, true);*/
createEmail(createContentTextHtml(nodes), createContentTextPlain(nodes), subject, false);
}
/**
* Decode subject
@@ -234,13 +224,13 @@ function main()
else
{
var message = unknownCommand + ": '" + title + "'";
createEmail(message, message, message);
createEmail(message, message, message, false);
}
}
else
{
var message = unknownCommand + ": '" + title + "'";
createEmail(message, message, message);
createEmail(message, message, message, false);
}
document.remove();