01: /*
02: * Licensed to the Apache Software Foundation (ASF) under one
03: * or more contributor license agreements. See the NOTICE file
04: * distributed with this work for additional information
05: * regarding copyright ownership. The ASF licenses this file
06: * to you under the Apache License, Version 2.0 (the
07: * "License"); you may not use this file except in compliance
08: * with the License. You may obtain a copy of the License at
09: *
10: * http://www.apache.org/licenses/LICENSE-2.0
11: *
12: * Unless required by applicable law or agreed to in writing,
13: * software distributed under the License is distributed on an
14: * * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15: * KIND, either express or implied. See the License for the
16: * specific language governing permissions and limitations
17: * under the License.
18: */
19:
20: package org.apache.synapse.transport.mail;
21:
22: public class MailConstants {
23:
24: public static final String TRANSPORT_NAME = "mailto";
25: public static final String TRANSPORT_PREFIX = "mailto:";
26:
27: public static final String TEXT_PLAIN = "text/plain";
28: public static final String APPLICATION_BINARY = "application/binary";
29:
30: public static String DEFAULT_FOLDER = "INBOX";
31: public static final String MAIL_POP3 = "pop3";
32: public static final String MAIL_IMAP = "imap";
33:
34: public static final String TRANSPORT_MAIL_ACTION_AFTER_PROCESS = "transport.mail.ActionAfterProcess";
35: public static final String TRANSPORT_MAIL_ACTION_AFTER_FAILURE = "transport.mail.ActionAfterFailure";
36:
37: public static final String TRANSPORT_MAIL_MOVE_AFTER_PROCESS = "transport.mail.MoveAfterProcess";
38: public static final String TRANSPORT_MAIL_MOVE_AFTER_FAILURE = "transport.mail.MoveAfterFailure";
39:
40: public static final String MAX_RETRY_COUNT = "transport.mail.MaxRetryCount";
41: public static final String RECONNECT_TIMEOUT = "transport.mail.ReconnectTimeout";
42:
43: public static final int DEFAULT_MAX_RETRY_COUNT = 3;
44: public static final long DEFAULT_RECONNECT_TIMEOUT = 30000;
45:
46: public static final String TRANSPORT_MAIL_ADDRESS = "transport.mail.Address";
47: public static final String TRANSPORT_MAIL_PROTOCOL = "transport.mail.Protocol";
48:
49: public static final String TRANSPORT_MAIL_FORMAT = "transport.mail.Format";
50: public static final String TRANSPORT_FORMAT_TEXT = "Text";
51: public static final String TRANSPORT_FORMAT_MP = "Multipart";
52:
53: public static final String TRANSPORT_MAIL_FOLDER = "transport.mail.Folder";
54: public static final String TRANSPORT_MAIL_CONTENT_TYPE = "transport.mail.ContentType";
55: public static final String TRANSPORT_MAIL_REPLY_ADDRESS = "transport.mail.ReplyAddress";
56:
57: public static final String TRANSPORT_MAIL_PRESERVE_HEADERS = "transport.mail.PreserveHeaders";
58: public static final String TRANSPORT_MAIL_REMOVE_HEADERS = "transport.mail.RemoveHeaders";
59:
60: // POP3 and IMAP properties
61: public static final String MAIL_POP3_USERNAME = "mail.pop3.user";
62: public static final String MAIL_POP3_PASSWORD = "mail.pop3.password";
63: public static final String MAIL_IMAP_USERNAME = "mail.imap.user";
64: public static final String MAIL_IMAP_PASSWORD = "mail.imap.password";
65:
66: // SMTP properties
67: public static final String MAIL_SMTP_FROM = "mail.smtp.from";
68: public static final String MAIL_SMTP_USERNAME = "mail.smtp.user";
69: public static final String MAIL_SMTP_PASSWORD = "mail.smtp.password";
70: public static final String MAIL_SMTP_BCC = "transport.mail.SMTPBccAddresses";
71:
72: // transport / mail headers
73: public static final String MAIL_HEADER_TO = "To";
74: public static final String MAIL_HEADER_FROM = "From";
75: public static final String MAIL_HEADER_CC = "Cc";
76: public static final String MAIL_HEADER_BCC = "Bcc";
77: public static final String MAIL_HEADER_REPLY_TO = "Reply-To";
78: public static final String MAIL_HEADER_IN_REPLY_TO = "In-Reply-To";
79: public static final String MAIL_HEADER_SUBJECT = "Subject";
80: public static final String MAIL_HEADER_MESSAGE_ID = "Message-ID";
81: public static final String MAIL_HEADER_REFERENCES = "References";
82:
83: // Custom headers
84: /** @see org.apache.synapse.transport.mail.WSMimeMessage */
85: public static final String MAIL_HEADER_X_MESSAGE_ID = "X-Message-ID";
86: }
|