Hi,

I need to be able to get the email domain from the "from header" on zimbra. I wasn't able to find any api or code example to do this. Can anyone point me to the right directions?

I noticed in the sample.jsp, the below code is getting the subject from the server:

<%@ page language="java" import="java.io.*, java.util.*, javax.naming.*"%>
<%
String name = (String) request.getParameter("name");
String path = (String) request.getParameter("path");
String subject = (String) request.getParameter("subject");
String id = (String) request.getParameter("id");
PrintWriter pw = response.getWriter();
%>


Not sure where I can locate these parameters, but can I get the domain and message id from the server with the following?:

String domain = (String) request.getParameter("domain");
String msgid = (String) request.getParameter("id");


Any feedback is appreciated.

Thanks.