Skip to content

Commit

Permalink
Fixed one typo and added a few options to handle messages when messag…
Browse files Browse the repository at this point in the history
…es get displayed.

git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@309 6c8d7289-2bf4-0310-a012-ef5d649a1542
  • Loading branch information
low012 committed Jun 20, 2005
1 parent 5728cdf commit 10f6f19
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion htroot/MessageSend_p.java
Expand Up @@ -131,7 +131,7 @@ public static serverObjects respond(httpHeader header, serverObjects post, serve
if (subject.length() > 100) subject = subject.substring(0, 100);
if (message.length() > messagesize) message = message.substring(0, messagesize);
HashMap result = yacyClient.postMessage(hash, subject, message.getBytes());
body += "<p>Your message has been send. The target peer respondet:</p>";
body += "<p>Your message has been sent. The target peer respondet:</p>";
body += "<p><i>" + result.get("response") + "</i></p>";
} catch (NumberFormatException e) {
// "unresolved pattern", the remote peer is alive but had an exception
Expand Down
7 changes: 7 additions & 0 deletions htroot/Messages_p.java
Expand Up @@ -123,6 +123,13 @@ public static serverObjects respond(httpHeader header, serverObjects post, serve
messages += "<tr><td class=\"MenuHeader\">Send Date:</td><td class=\"MessageBackground\">" + dateString(message.date()) + "</td></tr>";
messages += "<tr><td class=\"MenuHeader\">Subject:</td><td class=\"MessageBackground\">" + message.subject() + "</td></tr>";
messages += "<tr><td class=\"MessageBackground\" colspan=\"2\">" + new String(message.message()) + "</td></tr>";
messages += "<tr><td class=\"MenuHeader\">Action:</td>" +
"<td class=\"MessageBackground\">" +
"<a href=\"Messages_p.html\">inbox</a>&nbsp;/&nbsp;" +
"<a href=\"MessageSend_p.html?hash=" + message.authorHash() +
"&subject=Re: " + message.subject() + "\">reply</a>&nbsp;/&nbsp;" +
"<a href=\"Messages_p.html?action=delete&object=" + key + "\">delete</a>" +
"</td></tr>";
messages += "</table>";
}

Expand Down

0 comments on commit 10f6f19

Please sign in to comment.