KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > ivata > groupware > business > mail > struts > MailSetupConstants


1 /*
2  * Copyright (c) 2001 - 2005 ivata limited.
3  * All rights reserved.
4  * ---------------------------------------------------------
5  * ivata groupware may be redistributed under the GNU General Public
6  * License as published by the Free Software Foundation;
7  * version 2 of the License.
8  *
9  * These programs are free software; you can redistribute them and/or
10  * modify them under the terms of the GNU General Public License
11  * as published by the Free Software Foundation; version 2 of the License.
12  *
13  * These programs are distributed in the hope that they will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
16  *
17  * See the GNU General Public License in the file LICENSE.txt for more
18  * details.
19  *
20  * If you would like a copy of the GNU General Public License write to
21  *
22  * Free Software Foundation, Inc.
23  * 59 Temple Place - Suite 330
24  * Boston, MA 02111-1307, USA.
25  *
26  *
27  * To arrange commercial support and licensing, contact ivata at
28  * http://www.ivata.com/contact.jsp
29  * ---------------------------------------------------------
30  * $Log: MailSetupConstants.java,v $
31  * Revision 1.1 2005/04/11 10:03:43 colinmacleod
32  * Added setup feature.
33  *
34  * ---------------------------------------------------------
35  */

36 package com.ivata.groupware.business.mail.struts;
37
38 /**
39  * Utility class to store literals we need for setup (in
40  * <code>SetupAction</code> and <code>SetupForm</code>).
41  *
42  * @since ivata groupware 0.11 (2005-04-07)
43  * @author Colin MacLeod
44  * <a HREF='mailto:colin.macleod@ivata.com'>colin.macleod@ivata.com</a>
45  * @version $Revision: 1.1 $
46  */

47 public final class MailSetupConstants {
48     /**
49      * Email folder namespace to use for Courier.
50      */

51     public static final String JavaDoc COURIER_FOLDER_NAMESPACE = "INBOX.";
52     /**
53      * This string in the output of port 143 identifies Courier.
54      */

55     public static final String JavaDoc COURIER_SIGNATURE = "Courier-IMAP";
56     /**
57      * Email folder namespace to use for Cyrus.
58      */

59     public static final String JavaDoc CYRUS_FOLDER_NAMESPACE = "INBOX.";
60     /**
61      * This string in the output of port 143 identifies Cyrus.
62      */

63     public static final String JavaDoc CYRUS_SIGNATURE = "Cyrus IMAP";
64     /**
65      * Mail domain to give you the right idea.
66      */

67     public static final String JavaDoc DEFAULT_MAIL_DOMAIN = "mycompany.com";
68     /**
69      * Default path for scripts.
70      */

71     public static final String JavaDoc DEFAULT_SCRIPTS_PATH = "/usr/local/ivatagroupware";
72     /**
73      * IMAP port - for receiving mails.
74      */

75     public static final int IMAP_PORT = 143;
76     /**
77      * This is the path of the <strong>EXIM</strong> scripts we use by default,
78      * relative to the <strong>ivata groupware</strong> scripts' path.
79      */

80     public static final String JavaDoc SCRIPT_PATH_EXIM = "/mailserver/exim";
81     /**
82      * This is the path of the <strong>SUDO</strong> scripts we use by default,
83      * relative to the <strong>ivata groupware</strong> scripts' path.
84      */

85     public static final String JavaDoc SCRIPT_PATH_SUDO = "/mailserver/sudo";
86     /**
87      * IMAP port - for sending mails.
88      */

89     public static final int SMTP_PORT = 25;
90     /**
91      * Interval to wait before re-checking <code>available</code> on a socket
92      * input stream. The process will wait a total of
93      * <code>SOCKET_WAIT_NUMBER</code> times <code>SOCKET_WAIT_INTERVAL</code>
94      * milliseconds before giving up on any more socket output.
95      */

96     public static final long SOCKET_WAIT_INTERVAL = 50;
97     /**
98      * Number of times to wait before deciding a socket input stream has no more
99      * information. The process will wait a total of
100      * <code>SOCKET_WAIT_NUMBER</code> times <code>SOCKET_WAIT_INTERVAL</code>
101      * milliseconds before giving up on any more socket output.
102      */

103     public static final int SOCKET_WAIT_NUMBER = 20;
104     /**
105      * Private default constructor enforces utility class behavior.
106      */

107     private MailSetupConstants() {
108     }
109 }
110
Popular Tags