mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-06-30 18:15:39 +00:00
15421: ETHREEOH-2511 - Subject field encoding issue with IMAP 15849: Fixes to IMAP UTF-8 handling git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@15851 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
86 lines
3.7 KiB
Java
Executable File
86 lines
3.7 KiB
Java
Executable File
/*
|
|
* Copyright (C) 2005-2009 Alfresco Software Limited.
|
|
*
|
|
* This program is free software; you can redistribute it and/or
|
|
* modify it under the terms of the GNU General Public License
|
|
* as published by the Free Software Foundation; either version 2
|
|
* of the License, or (at your option) any later version.
|
|
|
|
* This program 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. See the
|
|
* GNU General Public License for more details.
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
* along with this program; if not, write to the Free Software
|
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
|
|
|
* As a special exception to the terms and conditions of version 2.0 of
|
|
* the GPL, you may redistribute this Program in connection with Free/Libre
|
|
* and Open Source Software ("FLOSS") applications as described in Alfresco's
|
|
* FLOSS exception. You should have recieved a copy of the text describing
|
|
* the FLOSS exception, and it is also available here:
|
|
* http://www.alfresco.com/legal/licensing"
|
|
*/
|
|
package org.alfresco.repo.imap;
|
|
|
|
/**
|
|
* @author Mike Shavnev
|
|
* @since 3.2
|
|
*/
|
|
public interface AlfrescoImapConst
|
|
{
|
|
/**
|
|
* @author Derek Hulley
|
|
* @since 3.2
|
|
*/
|
|
public static enum ImapViewMode
|
|
{
|
|
/**
|
|
* Defines {@link AlfrescoImapFolder} view mode as virtual mode. Used for IMAP Virtualised View.
|
|
*/
|
|
VIRTUAL,
|
|
/**
|
|
* Defines {@link AlfrescoImapFolder} view mode as mixed mode. Used for IMAP Mixed View.
|
|
*/
|
|
MIXED,
|
|
/**
|
|
* Defines {@link AlfrescoImapFolder} view mode as archive mode. Used for Email Archive View.
|
|
*/
|
|
ARCHIVE
|
|
}
|
|
|
|
public static final char HIERARCHY_DELIMITER = '/';
|
|
public static final String NAMESPACE_PREFIX = "#";
|
|
public static final String USER_NAMESPACE = "#mail";
|
|
public static final String INBOX_NAME = "INBOX";
|
|
|
|
public static final String BODY_TEXT_PLAIN_NAME = "Body.txt";
|
|
public static final String BODY_TEXT_HTML_NAME = "Body.html";
|
|
public static final String MESSAGE_PREFIX = "Message_";
|
|
public static final String EML_EXTENSION = ".eml";
|
|
// Separator for user enties in flag and subscribe properties
|
|
public static final String USER_SEPARATOR = ";";
|
|
|
|
// Default content model email message templates
|
|
public static final String CLASSPATH_TEXT_PLAIN_TEMPLATE = "/alfresco/templates/imap/imap_message_text_plain.ftl";
|
|
public static final String CLASSPATH_TEXT_HTML_TEMPLATE = "/alfresco/templates/imap/imap_message_text_html.ftl";
|
|
|
|
public static final String DICTIONARY_TEMPLATE_PREFIX = "emailbody";
|
|
public static final String PREF_IMAP_FAVOURITE_SITES = "org.alfresco.share.sites.imapFavourites";
|
|
|
|
// AlfrescoImapMessage constants
|
|
public static final String MIME_VERSION = "MIME-Version";
|
|
public static final String CONTENT_TYPE = "Content-Type";
|
|
public static final String CONTENT_TRANSFER_ENCODING = "Content-Transfer-Encoding";
|
|
public static final String MULTIPART_MIXED = "mixed";
|
|
public static final String CONTENT_ID = "Content-ID";
|
|
public static final String X_ALF_NODEREF_ID = "X-Alfresco-NodeRef-ID"; // The NodeRef id header
|
|
public static final String X_ALF_SERVER_UID = "X-Alfresco-Server-UID"; // The unique identifier of Alfresco server
|
|
public static final String EIGHT_BIT_ENCODING = "8bit";
|
|
public static final String BASE_64_ENCODING = "base64";
|
|
public static final String UTF_8 = "UTF-8";
|
|
public static final String CHARSET_UTF8 = ";charset=utf-8";
|
|
|
|
}
|