📄 jdavmail.java
字号:
/*
* This file is part of the JDAVMail package
* Copyright (C) 2002-2003 Luc Claes. All rights reserved.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT
* SHALL THE JDAVMail AUTHORS OR THE PROJECT CONTRIBUTORS BE LIABLE
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT
* OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
* OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
* OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE. See the GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free
* Software Foundation, Inc., 59 Temple Place, Suite 330, Boston,
* MA 02111-1307, USA
*
* For questions, suggestions, bug-reports, enhancement-requests etc.
* I may be contacted at:
*
* luc@posisoft.com
*
* The JDAVMail's home page is located at:
*
* http://jdavmail.sourceforge.net
*
*/
package com.posisoft.jdavmail;
import javax.mail.URLName;
import org.jdom.Namespace;
/**
*/
public class JDAVMail {
public static final URLName DEFAULT_URL = new URLName("http://services.msn.com/svcs/hotmail/httpmail.asp");
public static final int DEFAULT_PORT = 80; // HTTP
public static final int DEFAULT_PROXY_PORT = 8080;
public static final String DEFAULT_UA = "Outlook Express/5.0 (MSIE 5.0; Windows 98; DigExt; MSNIA)";
public static final Namespace NS_DAV = Namespace.getNamespace("D", "DAV:");
public static final Namespace NS_HOTMAIL = Namespace.getNamespace("h", "http://schemas.microsoft.com/hotmail/");
public static final Namespace NS_HTTPMAIL = Namespace.getNamespace("hm", "urn:schemas:httpmail:");
public static final Namespace NS_MAILHEADER = Namespace.getNamespace("m", "urn:schemas:mailheader:");
// Session properties
public static final String PROPERTY_TIMEOUT = "mail.davmail.timeout";
public static final String PROPERTY_CONNECTION_TIMEOUT = "mail.davmail.connectiontimeout";
public static final String PROPERTY_FROM = "mail.davmail.from";
public static final String PROPERTY_PROXY_HOST = "mail.davmail.proxy.host";
public static final String PROPERTY_PROXY_PORT = "mail.davmail.proxy.port";
public static final String PROPERTY_PROXY_USERNAME = "mail.davmail.proxy.username";
public static final String PROPERTY_PROXY_PASSWORD = "mail.davmail.proxy.password";
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -