亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? email.java

?? 基于UDP的可靠郵件系統
?? JAVA
?? 第 1 頁 / 共 2 頁
字號:
/*********************************************************************** * Copyright (c) 2000-2004 The Apache Software Foundation.             * * All rights reserved.                                                * * ------------------------------------------------------------------- * * Licensed under the Apache License, Version 2.0 (the "License"); you * * may not use this file except in compliance with the License. You    * * may obtain a copy of the License at:                                * *                                                                     * *     http://www.apache.org/licenses/LICENSE-2.0                      * *                                                                     * * Unless required by applicable law or agreed to in writing, software * * distributed under the License is distributed on an "AS IS" BASIS,   * * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or     * * implied.  See the License for the specific language governing       * * permissions and limitations under the License.                      * ***********************************************************************/package org.hwmhere.email.impl.core;// import org.apache.avalon.framework.activity.Disposable;import java.io.*;import java.util.ArrayList;import java.util.Collection;import java.util.Date;import java.util.Enumeration;import java.util.HashSet;import java.util.Iterator;import java.util.HashMap;import org.hwmhere.email.mailet.MailAddress;/** * <P> * Wraps a MimeMessage adding routing information (from SMTP) and some simple * API enhancements. * </P> * <P> * From James version > 2.2.0a8 "mail attributes" have been added. Backward and * forward compatibility is supported: messages stored in file repositories * <I>without</I> attributes by James version <= 2.2.0a8 will be processed by * later versions as having an empty attributes hashmap; messages stored in file * repositories <I>with</I> attributes by James version > 2.2.0a8 will be * processed by previous versions, ignoring the attributes. * </P> *  * @version CVS $Revision: 1.17.4.6 $ $Date: 2004/03/15 03:54:15 $ */public class Email {// {implements Mail {///Disposable, Mail {	/**	 * We hardcode the serialVersionUID so that from James 1.2 on, Email will be	 * deserializable (so your mail doesn't get lost)	 */	public static final long serialVersionUID = -4289663364703986260L;	/**	 * The error message, if any, associated with this mail.	 */	private String errorMessage;	/**	 * The state of this mail, which determines how it is processed.	 */	private String state;	/**	 * The MimeMessage that holds the mail data.	 */	private byte[] message;	/**	 * The sender of this mail.	 */	private MailAddress sender;	/**	 * The collection of recipients to whom this mail was sent.	 */	private Collection recipients;	/**	 * The identifier for this mail message	 */	private String name;	/**	 * The remote host from which this mail was sent.	 */	private String remoteHost = "localhost";	/**	 * The remote address from which this mail was sent.	 */	private String remoteAddr = "127.0.0.1";	/**	 * The last time this message was updated.	 */	private Date lastUpdated = new Date();	/**	 * Attributes added to this Email instance	 */	private HashMap attributes;	/**	 * A constructor that creates a new, uninitialized Email	 */	public Email() {//		setState(Mail.DEFAULT);		attributes = new HashMap();	}	/**	 * A constructor that creates a Email with the specified name, sender, and	 * recipients.	 * 	 * @param name	 *            the name of the Email	 * @param sender	 *            the sender for this Email	 * @param recipients	 *            the collection of recipients of this Email	 */	public Email(String name, MailAddress sender, Collection recipients) {		this();		this.name = name;		this.sender = sender;		this.recipients = null;		// Copy the recipient list		if (recipients != null) {			Iterator theIterator = recipients.iterator();			this.recipients = new ArrayList();			while (theIterator.hasNext()) {				this.recipients.add(theIterator.next());			}		}	}	/**	 * A constructor that creates a Email with the specified name, sender,	 * recipients, and MimeMessage.	 * 	 * @param name	 *            the name of the Email	 * @param sender	 *            the sender for this Email	 * @param recipients	 *            the collection of recipients of this Email	 * @param message	 *            the MimeMessage associated with this Email	 */	public Email(String name, MailAddress sender, Collection recipients,			byte[] message) {		this(name, sender, recipients);		this.setMessage(message);	}	/**	 * A constructor which will attempt to obtain sender and recipients from the	 * headers of the MimeMessage supplied.	 * 	 * @param message -	 *            a MimeMessage from which to construct a Mail	 */	public Email(byte[] message) {		this();		// MailAddress sender = getReturnPath(message);		// Collection recipients = null;		// Address[] addresses = message		// .getRecipients(MimeMessage.RecipientType.TO);		// if (addresses != null) {		// recipients = new ArrayList();		// for (int i = 0; i < addresses.length; i++) {		// try {		// recipients.add(new MailAddress(new InternetAddress(		// addresses[i].toString(), false)));		// } catch (Exception pe) {		// // RFC 2822 section 3.4 allows To: fields without <>		// // Let's give this one more try with <>.		// try {		// recipients.add(new MailAddress("<"		// + new InternetAddress(addresses[i].toString())		// .toString() + ">"));		// } catch (Exception _) {		// throw new Exception("Could not parse address: "		// + addresses[i].toString() + " from "		// + message.getHeader(RFC2822Headers.TO, ", "),		// pe);		// }		// }		// }		// }		this.name = message.toString();		this.sender = sender;		this.recipients = recipients;		this.setMessage(message);	}	/**	 * Gets the MailAddress corresponding to the existing "Return-Path" of	 * <I>message</I>. If missing or empty returns <CODE>null</CODE>,	 */	// private MailAddress getReturnPath(MimeMessage message)	// throws MessagingException {	// MailAddress mailAddress = null;	// String[] returnPathHeaders = message	// .getHeader(RFC2822Headers.RETURN_PATH);	// String returnPathHeader = null;	// if (returnPathHeaders != null) {	// returnPathHeader = returnPathHeaders[0];	// if (returnPathHeader != null) {	// returnPathHeader = returnPathHeader.trim();	// if (!returnPathHeader.equals("<>")) {	// try {	// mailAddress = new MailAddress(new InternetAddress(	// returnPathHeader, false));	// } catch (Exception pe) {	// throw new MessagingException(	// "Could not parse address: "	// + returnPathHeader	// + " from "	// + message.getHeader(	// RFC2822Headers.RETURN_PATH,	// ", "), pe);	// }	// }	// }	// }	// return mailAddress;	// }	//	// /**	// * Duplicate the Email.	// *	// * @return a Email that is a duplicate of this one	// */	// public Mail duplicate() {	// return duplicate(name);	// }	/**	 * Duplicate the Email, replacing the mail name with the one passed in as an	 * argument.	 * 	 * @param newName	 *            the name for the duplicated mail	 * 	 * @return a Email that is a duplicate of this one with a different name	 */	// public Mail duplicate(String newName) {	// try {	// Email newMail = new Email(newName, sender, recipients, getMessage());	// newMail.setRemoteHost(remoteHost);	// newMail.setRemoteAddr(remoteAddr);	// newMail.setLastUpdated(lastUpdated);	// newMail.setAttributesRaw((HashMap) attributes.clone());	// return newMail;	// } catch (MessagingException me) {	// // Ignored. Return null in the case of an error.	// }	// return (Mail) null;	// }	/**	 * Get the error message associated with this Email.	 * 	 * @return the error message associated with this Email	 */	public String getErrorMessage() {		return errorMessage;	}	/**	 * Get the MimeMessage associated with this Email.	 * 	 * @return the MimeMessage associated with this Email	 */	public byte[] getMessage() {		return message;	}	/**	 * Set the name of this Email.	 * 	 * @param name	 *            the name of this Email	 */	public void setName(String name) {		this.name = name;	}	/**	 * Get the name of this Email.	 * 	 * @return the name of this Email	 */	public String getName() {		return name;	}	/**	 * Get the recipients of this Email.	 * 	 * @return the recipients of this Email	 */	public Collection getRecipients() {		return recipients;	}	/**	 * Get the sender of this Email.	 * 	 * @return the sender of this Email	 */	public MailAddress getSender() {		return sender;	}	/**	 * Get the state of this Email.	 * 	 * @return the state of this Email	 */	public String getState() {		return state;	}	/**	 * Get the remote host associated with this Email.	 * 	 * @return the remote host associated with this Email	 */	public String getRemoteHost() {		return remoteHost;	}	/**	 * Get the remote address associated with this Email.	 * 	 * @return the remote address associated with this Email	 */	public String getRemoteAddr() {		return remoteAddr;	}	/**	 * Get the last updated time for this Email.	 * 	 * @return the last updated time for this Email	 */	public Date getLastUpdated() {		return lastUpdated;	}	/**	 * <p>	 * Return the size of the message including its headers.	 * MimeMessage.getSize() method only returns the size of the message body.	 * </p>	 * 	 * <p>

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲国产sm捆绑调教视频| 91在线视频观看| 97se亚洲国产综合自在线| 日韩欧美一区在线| 一区二区在线看| 国产丶欧美丶日本不卡视频| 欧美一区二区三区思思人| 亚洲精品中文在线| 国产91精品一区二区| 精品国产乱码久久久久久夜甘婷婷| 一区二区三区蜜桃| 一本久久综合亚洲鲁鲁五月天 | 欧美精品一区男女天堂| 亚洲国产综合色| 91一区二区三区在线播放| 国产视频一区不卡| 久久成人麻豆午夜电影| 欧美一区二区精品久久911| 亚洲精品国产a| 色综合久久88色综合天天免费| 国产精品天干天干在观线| 国产另类ts人妖一区二区| 日韩亚洲欧美中文三级| 日本网站在线观看一区二区三区| 欧美在线观看一区二区| 夜色激情一区二区| 欧美亚一区二区| 亚洲福利一区二区| 777奇米四色成人影色区| 天天免费综合色| 欧美精品乱人伦久久久久久| 亚洲成av人片| 日韩一二在线观看| 久久精品999| 久久精品男人的天堂| 成人免费高清在线| 中文字幕亚洲区| 色94色欧美sute亚洲线路一ni| 中文字幕亚洲综合久久菠萝蜜| 91丨porny丨户外露出| 一级日本不卡的影视| 欧美日本一区二区三区四区| 日韩高清在线一区| 欧美变态口味重另类| 国产成人自拍高清视频在线免费播放| 国产无一区二区| 色综合欧美在线视频区| 另类的小说在线视频另类成人小视频在线 | 成人精品高清在线| 亚洲欧美日韩综合aⅴ视频| 在线观看日韩一区| 毛片av一区二区三区| 久久精品夜色噜噜亚洲aⅴ| 成人短视频下载| 亚洲成人动漫在线观看| 精品国产乱码久久久久久图片| 风间由美一区二区三区在线观看 | 久久久99精品免费观看不卡| 不卡视频在线观看| 亚洲国产综合人成综合网站| 欧美一级精品大片| 成人开心网精品视频| 亚洲国产成人porn| 久久一夜天堂av一区二区三区| 丁香桃色午夜亚洲一区二区三区| 亚洲一区二区三区爽爽爽爽爽| 日韩欧美激情四射| 色综合中文综合网| 亚洲视频小说图片| 日韩一区二区三免费高清| 成人av资源在线观看| 日韩极品在线观看| 国产精品日韩成人| 91精品国产91综合久久蜜臀| 成人午夜碰碰视频| 欧美a级理论片| 亚洲欧美一区二区三区孕妇| 日韩精品一区国产麻豆| 色婷婷国产精品久久包臀| 国内精品伊人久久久久av影院| 伊人性伊人情综合网| 国产视频一区在线观看| 欧美精品日韩精品| 99国产精品视频免费观看| 国产一区二区成人久久免费影院| 亚洲h精品动漫在线观看| 国产精品三级电影| 久久蜜桃av一区精品变态类天堂 | 色婷婷综合久久| 成人一区二区三区视频| 久久电影网站中文字幕| 亚洲成人自拍一区| 亚洲夂夂婷婷色拍ww47 | 色综合中文字幕| 成人免费视频国产在线观看| 九九**精品视频免费播放| 图片区小说区国产精品视频| 亚洲美女区一区| 亚洲人成精品久久久久久| 中文字幕在线视频一区| 欧美激情一区二区三区四区| 久久综合色之久久综合| 日韩欧美一区中文| 日韩精品一区二区三区视频在线观看 | 久久99精品久久久久久久久久久久 | 国产日韩一级二级三级| 精品粉嫩超白一线天av| 精品国产sm最大网站| 精品国产乱码久久| 久久色.com| 久久精品亚洲国产奇米99| 久久久亚洲午夜电影| 久久影音资源网| 欧美国产精品v| 国产精品九色蝌蚪自拍| 综合色中文字幕| 亚洲免费电影在线| 亚洲国产精品久久久男人的天堂| 午夜精品国产更新| 亚洲一二三区不卡| 午夜一区二区三区在线观看| 亚洲福利视频一区| 毛片一区二区三区| 国产精品一区二区黑丝| 成人一区二区三区在线观看| av在线不卡免费看| 色偷偷成人一区二区三区91| 欧美色区777第一页| 欧美一区二区三区免费视频| 精品卡一卡二卡三卡四在线| 久久久精品欧美丰满| 亚洲欧洲日本在线| 五月天精品一区二区三区| 男女视频一区二区| 成人的网站免费观看| 在线观看91精品国产入口| 91麻豆精品91久久久久久清纯| 精品免费99久久| 中文字幕一区免费在线观看| 亚洲一区二区在线免费观看视频| 日韩精品电影一区亚洲| 国产精品一区专区| 91麻豆文化传媒在线观看| 91精品婷婷国产综合久久竹菊| 久久久久亚洲综合| 一区二区三区免费在线观看| 久久精品国产精品亚洲综合| www.在线欧美| 日韩免费视频一区| 中文字幕一区二| 韩国成人在线视频| 日本韩国欧美一区| 久久蜜桃av一区二区天堂| 亚洲一区二区欧美| 成人小视频在线观看| 91精品午夜视频| 亚洲靠逼com| 国产精品一区二区在线播放 | 99riav久久精品riav| 欧美大白屁股肥臀xxxxxx| 亚洲美女视频在线| 国产精品一二三四区| 欧美体内she精高潮| 国产精品人妖ts系列视频| 蜜桃免费网站一区二区三区| 91免费看`日韩一区二区| wwww国产精品欧美| 日韩二区在线观看| 在线观看免费一区| 最新国产精品久久精品| 国产在线不卡一区| 这里只有精品视频在线观看| 中文字幕一区av| 国产九九视频一区二区三区| 日韩一区二区在线观看视频| 亚洲电影欧美电影有声小说| 91一区二区三区在线观看| 日本一区二区三级电影在线观看| 日本强好片久久久久久aaa| 欧美午夜精品久久久| 亚洲婷婷在线视频| 成人午夜电影久久影院| 久久久噜噜噜久久人人看| 久久国产精品99精品国产| 51精品国自产在线| 亚洲图片欧美视频| 在线观看亚洲精品| 一区二区三区成人在线视频| 一本一道综合狠狠老| 亚洲人成在线播放网站岛国| 99国产精品视频免费观看| 国产精品高潮呻吟久久| 成人av资源在线观看| 亚洲国产高清aⅴ视频| 国产91精品露脸国语对白| 久久久久国产精品麻豆ai换脸| 精品系列免费在线观看| 久久日一线二线三线suv| 国产一区二区导航在线播放| 久久精品在线观看|