Zimbra offers Open Source email server software and shared calendar for Linux and the Mac
Go Back   Zimbra :: Forums > Zimbra Collaboration Suite > Developers

Welcome to the Zimbra :: Forums!
Welcome, if you would like to post a comment please register. We also encourage you to explore all things Zimbra with our team and members of the community.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 02-14-2008, 02:16 PM
Starter Member
 
Posts: 1
Default get email address domain?

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.
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads

Why Join?

Registering let's you ask questions, makes it easier to search, displays any files attached to posts, and notifies you about replies.

blog.zimbra.com




 

SEO by vBSEO ©2011, Crawlability, Inc.