亚洲欧美第一页_禁久久精品乱码_粉嫩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一区二区三区免费野_久草精品视频
日本成人在线一区| 国产呦萝稀缺另类资源| 国产精品久久久久精k8| 精品国精品国产尤物美女| 欧美一区二区三区思思人| 欧美日韩国产美| 69堂成人精品免费视频| 91精品国产综合久久久久久久| 欧美日韩国产高清一区二区三区| 欧美性受极品xxxx喷水| 欧美这里有精品| 在线播放一区二区三区| 91精品国产综合久久福利| 精品久久久久久无| 国产精品视频线看| 亚洲美腿欧美偷拍| 日本最新不卡在线| 极品尤物av久久免费看| 成人午夜大片免费观看| 99久久精品国产网站| 欧美日韩精品是欧美日韩精品| 91精品黄色片免费大全| 国产欧美va欧美不卡在线| 国产精品久久久久久久午夜片 | 九九九精品视频| 国产尤物一区二区在线| 色综合久久中文综合久久牛| 7777精品伊人久久久大香线蕉| 久久在线观看免费| 亚洲天堂a在线| 全部av―极品视觉盛宴亚洲| 国产一区视频在线看| 日本精品一区二区三区高清| 欧美一级二级三级乱码| 中文字幕电影一区| 五月天激情综合网| 成人av网在线| 日韩午夜电影av| 亚洲私人影院在线观看| 久久av资源网| 欧美日韩在线综合| 中文乱码免费一区二区| 麻豆精品蜜桃视频网站| 一本大道综合伊人精品热热| 欧美一级淫片007| 亚洲免费av观看| 国产真实乱子伦精品视频| 在线观看三级视频欧美| 亚洲国产成人自拍| 免费成人在线观看视频| 在线观看日韩毛片| 中文字幕一区二区三区四区| 国产一区二区精品久久| 在线电影国产精品| 一区二区三区日韩精品| 成人午夜在线播放| 亚洲精品在线三区| 日本不卡视频在线| 色域天天综合网| 国产精品久久久久9999吃药| 国产一区二区不卡老阿姨| 欧美日本一区二区在线观看| 亚洲免费观看高清| 99热这里都是精品| 国产欧美日韩在线视频| 美女一区二区在线观看| 884aa四虎影成人精品一区| 一区二区三区欧美| 色偷偷一区二区三区| 亚洲天堂免费在线观看视频| www.视频一区| 中文字幕日本乱码精品影院| 粉嫩aⅴ一区二区三区四区 | 婷婷国产在线综合| 精品视频一区二区三区免费| 亚洲最大成人综合| 欧美在线免费视屏| 亚洲成人激情自拍| 欧美一区二区三区免费视频| 日本不卡123| 欧美tickling挠脚心丨vk| 蜜桃传媒麻豆第一区在线观看| 欧美喷水一区二区| 日韩中文字幕区一区有砖一区| 欧美高清激情brazzers| 久久精品国产99国产精品| 日韩欧美你懂的| 国产精品综合一区二区三区| 国产欧美一区二区精品忘忧草 | 久久久久久免费网| 国产福利91精品一区| 中文字幕色av一区二区三区| 色噜噜狠狠成人网p站| 亚洲国产精品久久一线不卡| 日韩一区二区电影| 国产盗摄一区二区| 亚洲精品国产精品乱码不99| 欧美日韩一二区| 国内成人免费视频| 亚洲视频小说图片| 日韩一区二区中文字幕| 午夜成人免费电影| 东方欧美亚洲色图在线| 久久精品视频一区二区三区| 五月天亚洲婷婷| 欧美影视一区在线| 久久国产视频网| 综合电影一区二区三区| 免费精品视频在线| 亚洲人一二三区| 亚洲天堂av一区| 国产精品高潮呻吟| 国产伦精品一区二区三区免费迷| 久久亚洲免费视频| 91捆绑美女网站| 黄网站免费久久| 亚洲一区二区黄色| 久久网站最新地址| 精品视频在线看| 99在线精品免费| 狠狠色综合播放一区二区| 亚洲精品成a人| 欧美激情中文字幕一区二区| 欧美视频一区在线| 成人h动漫精品| 精品制服美女丁香| 午夜亚洲福利老司机| 国产精品白丝在线| 国产亚洲女人久久久久毛片| 91精品国产综合久久精品app| 97se狠狠狠综合亚洲狠狠| 另类成人小视频在线| 亚洲网友自拍偷拍| 中文字幕一区二区三区av| 欧美va在线播放| 欧美午夜精品电影| 一本久久综合亚洲鲁鲁五月天 | 26uuu国产日韩综合| 欧美日韩国产片| 欧洲另类一二三四区| 99国产精品久| 成人高清视频免费观看| 国产一区二区三区日韩| 精品无码三级在线观看视频| 午夜av电影一区| 香蕉乱码成人久久天堂爱免费| 亚洲免费在线播放| 一区二区三区毛片| 一区二区三区在线观看欧美| 国产精品不卡一区二区三区| 国产精品久久久久影院老司| 国产精品三级av| 国产精品免费看片| 亚洲欧洲国产专区| 亚洲视频在线一区| 亚洲一二三区在线观看| 亚洲无人区一区| 亚洲成a人v欧美综合天堂| 午夜精彩视频在线观看不卡| 午夜久久久久久久久| 午夜视频在线观看一区二区| 午夜精品福利久久久| 麻豆久久久久久久| 国产一区二区三区| 99国产精品久久久久久久久久| 色爱区综合激月婷婷| 欧美午夜精品理论片a级按摩| 6080午夜不卡| 久久亚洲春色中文字幕久久久| 久久久国产精华| 亚洲少妇30p| 日本成人超碰在线观看| 国产在线看一区| 99国产精品久久久久久久久久久| 在线观看欧美精品| 欧美一区二区三区四区视频| 久久久青草青青国产亚洲免观| 国产精品久久久久久久第一福利 | 亚洲国产成人va在线观看天堂| 舔着乳尖日韩一区| 国模一区二区三区白浆| 97se狠狠狠综合亚洲狠狠| 51精品视频一区二区三区| 久久综合久久综合九色| 亚洲男人的天堂一区二区| 日韩精品成人一区二区三区| 国产精品亚洲综合一区在线观看| 91免费观看在线| 欧美成人性福生活免费看| 亚洲欧美aⅴ...| 极品少妇一区二区| 色综合夜色一区| 久久综合给合久久狠狠狠97色69| 一色桃子久久精品亚洲| 久久精品国产99国产精品| 91成人免费网站| 国产精品乱码人人做人人爱| 日本在线播放一区二区三区| 99在线精品观看| 久久久久久麻豆|