1 /*
2 * Copyright (C) The Apache Software Foundation. All rights reserved.
3 *
4 * This software is published under the terms of the Apache Software License
5 * version 1.1, a copy of which has been included with this distribution in
6 * the LICENSE file.
7 */
8 package org.apache.james.util;
9
10 /***
11 * This utility class provides the set of header names explicitly defined in RFC 2822
12 *
13 * @author Peter M. Goldstein <farsight@alum.mit.edu>
14 */
15 public class RFC2822Headers {
16
17 // See Section 3.6.1 of RFC 2822
18
19 /***
20 * The name of the RFC 2822 header that stores the mail date.
21 */
22 public final static String DATE = "Date";
23
24 // See Section 3.6.2 of RFC 2822
25
26 /***
27 * The name of the RFC 2822 header that stores the mail author(s).
28 */
29 public final static String FROM = "From";
30
31 /***
32 * The name of the RFC 2822 header that stores the actual mail transmission agent,
33 * if this differs from the author of the message.
34 */
35 public final static String SENDER = "Sender";
36
37 /***
38 * The name of the RFC 2822 header that stores the reply-to address.
39 */
40 public final static String REPLY_TO = "Reply-To";
41
42 // See Section 3.6.3 of RFC 2822
43
44 /***
45 * The name of the RFC 2822 header that stores the primary mail recipients.
46 */
47 public final static String TO = "To";
48
49 /***
50 * The name of the RFC 2822 header that stores the carbon copied mail recipients.
51 */
52 public final static String CC = "Cc";
53
54 /***
55 * The name of the RFC 2822 header that stores the blind carbon copied mail recipients.
56 */
57 public final static String BCC = "Bcc";
58
59 // See Section 3.6.4 of RFC 2822
60
61 /***
62 * The name of the RFC 2822 header that stores the message id.
63 */
64 public final static String MESSAGE_ID = "Message-ID";
65
66 /***
67 * A common variation on the name of the RFC 2822 header that
68 * stores the message id. This is needed for certain filters and
69 * processing of incoming mail.
70 */
71 public final static String MESSAGE_ID_VARIATION = "Message-Id";
72
73 /***
74 * The name of the RFC 2822 header that stores the message id of the message
75 * that to which this email is a reply.
76 */
77 public final static String IN_REPLY_TO = "In-Reply-To";
78
79 /***
80 * The name of the RFC 2822 header that is used to identify the thread to
81 * which this message refers.
82 */
83 public final static String REFERENCES = "References";
84
85 // See Section 3.6.5 of RFC 2822
86
87 /***
88 * The name of the RFC 2822 header that stores the subject.
89 */
90 public final static String SUBJECT = "Subject";
91
92 /***
93 * The name of the RFC 2822 header that stores human-readable comments.
94 */
95 public final static String COMMENTS = "Comments";
96
97 /***
98 * The name of the RFC 2822 header that stores human-readable keywords.
99 */
100 public final static String KEYWORDS = "Keywords";
101
102 // See Section 3.6.6 of RFC 2822
103
104 /***
105 * The name of the RFC 2822 header that stores the date the message was resent.
106 */
107 public final static String RESENT_DATE = "Resent-Date";
108
109 /***
110 * The name of the RFC 2822 header that stores the originator of the resent message.
111 */
112 public final static String RESENT_FROM = "Resent-From";
113
114 /***
115 * The name of the RFC 2822 header that stores the transmission agent
116 * of the resent message.
117 */
118 public final static String RESENT_SENDER = "Resent-Sender";
119
120 /***
121 * The name of the RFC 2822 header that stores the recipients
122 * of the resent message.
123 */
124 public final static String RESENT_TO = "Resent-To";
125
126 /***
127 * The name of the RFC 2822 header that stores the carbon copied recipients
128 * of the resent message.
129 */
130 public final static String RESENT_CC = "Resent-Cc";
131
132 /***
133 * The name of the RFC 2822 header that stores the blind carbon copied recipients
134 * of the resent message.
135 */
136 public final static String RESENT_BCC = "Resent-Bcc";
137
138 /***
139 * The name of the RFC 2822 header that stores the message id
140 * of the resent message.
141 */
142 public final static String RESENT_MESSAGE_ID = "Resent-Message-ID";
143
144 // See Section 3.6.7 of RFC 2822
145
146 /***
147 * The name of the RFC 2822 headers that store the tracing data for the return path.
148 */
149 public final static String RETURN_PATH = "Return-Path";
150
151 /***
152 * The name of the RFC 2822 headers that store additional tracing data.
153 */
154 public final static String RECEIVED = "Received";
155
156 // MIME headers
157
158 /***
159 * The name of the MIME header that stores the content type.
160 */
161 public final static String CONTENT_TYPE = "Content-Type";
162
163 /***
164 * Private constructor to prevent instantiation
165 */
166 private RFC2822Headers() {}
167
168 }
This page was automatically generated by Maven