⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 _trash__jsp.java

📁 简单邮件收发代理
💻 JAVA
字号:
/*
 * JSP generated by Resin 2.1.2 (built Tue Jun 11 08:26:56 PDT 2002)
 */

import javax.servlet.*;
import javax.servlet.jsp.*;
import javax.servlet.http.*;
import java.sql.*;
import java.util.*;
import javax.mail.*;
import javax.mail.internet.*;
import javax.activation.*;
import java.io.*;

public class _trash__jsp extends com.caucho.jsp.JavaPage{
  private boolean _caucho_isDead;
  
  public void
  _jspService(javax.servlet.http.HttpServletRequest request,
              javax.servlet.http.HttpServletResponse response)
    throws java.io.IOException, javax.servlet.ServletException
  {
    com.caucho.jsp.QPageContext pageContext = (com.caucho.jsp.QPageContext) com.caucho.jsp.QJspFactory.create().getPageContext(this, request, response, "/", true, 8192, true);
    javax.servlet.jsp.JspWriter out = (javax.servlet.jsp.JspWriter) pageContext.getOut();
    javax.servlet.ServletConfig config = getServletConfig();
    javax.servlet.Servlet page = this;
    javax.servlet.http.HttpSession session = pageContext.getSession();
    javax.servlet.ServletContext application = pageContext.getServletContext();
    response.setContentType("text/html; charset=gb2312");
    request.setCharacterEncoding("GB2312");
    try {
      pageContext.write(_jsp_string0, 0, _jsp_string0.length);
      pageContext.write(_jsp_string0, 0, _jsp_string0.length);
      pageContext.write(_jsp_string0, 0, _jsp_string0.length);
      pageContext.write(_jsp_string0, 0, _jsp_string0.length);
      pageContext.write(_jsp_string0, 0, _jsp_string0.length);
      pageContext.write(_jsp_string0, 0, _jsp_string0.length);
      request.setCharacterEncoding("gb2312");
      pageContext.write(_jsp_string1, 0, _jsp_string1.length);
      
String popserver=request.getParameter("popserver");
String username=request.getParameter("username");
String password=request.getParameter("password");

      pageContext.write(_jsp_string2, 0, _jsp_string2.length);
      
Store store=null;
Folder folder=null;
Properties props =new Properties(); 
Session s=Session.getInstance(props,null);
store=s.getStore("pop3");
store.connect(popserver, username, password);
folder = store.getDefaultFolder();
folder = folder.getFolder("Trash");
folder.open(Folder.READ_ONLY);
Message[] msgs = folder.getMessages();
for (int msgNum = 0; msgNum < msgs.length; msgNum++)
{
InternetAddress[] from=(InternetAddress[])msgs[msgNum].getFrom();
InternetAddress[] to=(InternetAddress[])msgs[msgNum].getRecipients(Message.RecipientType.TO);

      pageContext.write(_jsp_string3, 0, _jsp_string3.length);
      out.print((from[0].getAddress()));
      pageContext.write(_jsp_string4, 0, _jsp_string4.length);
      out.print((msgs[msgNum].getSentDate()));
      pageContext.write(_jsp_string5, 0, _jsp_string5.length);
      out.print((msgs[msgNum].getSubject()));
      pageContext.write(_jsp_string6, 0, _jsp_string6.length);
      out.print((msgs[msgNum].getSize()));
      pageContext.write(_jsp_string7, 0, _jsp_string7.length);
      out.print((msgs[msgNum].getContent()));
      pageContext.write(_jsp_string8, 0, _jsp_string8.length);
      
}
folder.close(false);
store.close();

      pageContext.write(_jsp_string9, 0, _jsp_string9.length);
    } catch (java.lang.Throwable _jsp_e) {
      pageContext.handlePageException(_jsp_e);
    } finally {
      JspFactory.getDefaultFactory().releasePageContext(pageContext);
    }
  }

  private com.caucho.java.LineMap _caucho_line_map;
  private java.util.ArrayList _caucho_depends = new java.util.ArrayList();

  public boolean _caucho_isModified()
  {
    if (_caucho_isDead)
      return true;
    if (com.caucho.util.CauchoSystem.getVersionId() != 2057024144)
      return true;
    for (int i = _caucho_depends.size() - 1; i >= 0; i--) {
      com.caucho.vfs.Depend depend;
      depend = (com.caucho.vfs.Depend) _caucho_depends.get(i);
      if (depend.isModified())
        return true;
    }
    return false;
  }

  public long _caucho_lastModified()
  {
    return 0;
  }

  public com.caucho.java.LineMap _caucho_getLineMap()
  {
    return _caucho_line_map;
  }

  public void destroy()
  {
      _caucho_isDead = true;
      super.destroy();
  }

  public void init(com.caucho.java.LineMap lineMap,
                   com.caucho.vfs.Path appDir)
    throws javax.servlet.ServletException
  {
    com.caucho.vfs.Path resinHome = com.caucho.util.CauchoSystem.getResinHome();
    com.caucho.vfs.MergePath mergePath = new com.caucho.vfs.MergePath();
    mergePath.addMergePath(appDir);
    mergePath.addMergePath(resinHome);
    mergePath.addClassPath(getClass().getClassLoader());
    _caucho_line_map = new com.caucho.java.LineMap("_trash__jsp.java", "/trash.jsp");
    _caucho_line_map.add(6, 1);
    _caucho_line_map.add(1, 32);
    _caucho_line_map.add(14, 40);
    _caucho_line_map.add(38, 63);
    _caucho_line_map.add(39, 65);
    _caucho_line_map.add(40, 67);
    _caucho_line_map.add(41, 69);
    com.caucho.vfs.Depend depend;
    depend = new com.caucho.vfs.Depend(mergePath.lookup("file:/E:/mailsite/trash.jsp"), 1100518267437L, 1736L);
    _caucho_depends.add(depend);
  }

  private static byte []_jsp_string9;
  private static byte []_jsp_string6;
  private static byte []_jsp_string3;
  private static byte []_jsp_string4;
  private static byte []_jsp_string1;
  private static byte []_jsp_string5;
  private static byte []_jsp_string2;
  private static byte []_jsp_string0;
  private static byte []_jsp_string7;
  private static byte []_jsp_string8;
  static {
    try {
      _jsp_string9 = "\r\n</p>\r\n<p><a href=\"index.jsp\">返回主页</a></p>\r\n<p><a href=\"send.html\">继续写信</a></p>\r\n</body>\r\n</html>\r\n".getBytes("GB2312");
      _jsp_string6 = ",\r\n大小:".getBytes("GB2312");
      _jsp_string3 = "\r\n-----------------------------------------------------------------------------------------------\r\n<p style=\"font-size:9pt;\">\r\n发件人:".getBytes("GB2312");
      _jsp_string4 = ",\r\n时间:".getBytes("GB2312");
      _jsp_string1 = "\r\n<html>\r\n<head>\r\n<meta http-equiv=\"Content-Type\" content=\"text/html; charset=gb2312\">\r\n<title>收件箱</title>\r\n</head>\r\n\r\n".getBytes("GB2312");
      _jsp_string5 = ",\r\n主题:".getBytes("GB2312");
      _jsp_string2 = "\r\n<body>\r\n".getBytes("GB2312");
      _jsp_string0 = "\r\n".getBytes("GB2312");
      _jsp_string7 = "字节\r\n</p><p style=\"font-size:9pt;\">\r\n内容:<font color=red>".getBytes("GB2312");
      _jsp_string8 = "</font></p>\r\n<p><br>\r\n  ".getBytes("GB2312");
    } catch (java.io.UnsupportedEncodingException e) {
      e.printStackTrace();
    }
  }
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -