@@ -58,8 +58,8 @@ extension RFC_5322.Header {
5858 /// ## Example
5959 ///
6060 /// ```swift
61- /// let from = RFC_5322.Header.Name.from
62- /// let custom = RFC_5322.Header.Name( "X-Custom-Header")
61+ /// let from: Self = fro
62+ /// let custom: Self = "X-Custom-Header"
6363 ///
6464 /// var headers: [RFC_5322.Header] = []
6565 /// headers.append(.init(name: .messageId, value: "<
[email protected] >"))
@@ -116,125 +116,121 @@ extension RFC_5322.Header {
116116
117117extension RFC_5322 . Header . Name {
118118 /// From: header (originator)
119- public static let from = RFC_5322 . Header . Name ( " From " )
119+ public static let from : Self = " From "
120120
121121 /// To: header (primary recipients)
122- public static let to = RFC_5322 . Header . Name ( " To " )
122+ public static let to : Self = " To "
123123
124124 /// Cc: header (carbon copy recipients)
125- public static let cc = RFC_5322 . Header . Name ( " Cc " )
125+ public static let cc : Self = " Cc "
126126
127127 /// Bcc: header (blind carbon copy recipients)
128- public static let bcc = RFC_5322 . Header . Name ( " Bcc " )
128+ public static let bcc : Self = " Bcc "
129129
130130 /// Subject: header
131- public static let subject = RFC_5322 . Header . Name ( " Subject " )
131+ public static let subject : Self = " Subject "
132132
133133 /// Date: header
134- public static let date = RFC_5322 . Header . Name ( " Date " )
134+ public static let date : Self = " Date "
135135
136136 /// Message-ID: header (unique message identifier)
137- public static let messageId = RFC_5322 . Header . Name ( " Message-ID " )
137+ public static let messageId : Self = " Message-ID "
138138
139139 /// Reply-To: header
140- public static let replyTo = RFC_5322 . Header . Name ( " Reply-To " )
140+ public static let replyTo : Self = " Reply-To "
141141
142142 /// Sender: header (actual sender if different from From)
143- public static let sender = RFC_5322 . Header . Name ( " Sender " )
143+ public static let sender : Self = " Sender "
144144
145145 /// In-Reply-To: header (message being replied to)
146- public static let inReplyTo = RFC_5322 . Header . Name ( " In-Reply-To " )
146+ public static let inReplyTo : Self = " In-Reply-To "
147147
148148 /// References: header (related messages)
149- public static let references = RFC_5322 . Header . Name ( " References " )
149+ public static let references : Self = " References "
150150
151151 /// Resent-From: header
152- public static let resentFrom = RFC_5322 . Header . Name ( " Resent-From " )
152+ public static let resentFrom : Self = " Resent-From "
153153
154154 /// Resent-To: header
155- public static let resentTo = RFC_5322 . Header . Name ( " Resent-To " )
155+ public static let resentTo : Self = " Resent-To "
156156
157157 /// Resent-Date: header
158- public static let resentDate = RFC_5322 . Header . Name ( " Resent-Date " )
158+ public static let resentDate : Self = " Resent-Date "
159159
160160 /// Resent-Message-ID: header
161- public static let resentMessageId = RFC_5322 . Header . Name ( " Resent-Message-ID " )
161+ public static let resentMessageId : Self = " Resent-Message-ID "
162162
163163 /// Return-Path: header
164- public static let returnPath = RFC_5322 . Header . Name ( " Return-Path " )
164+ public static let returnPath : Self = " Return-Path "
165165
166166 /// Received: header (mail transfer path)
167- public static let received = RFC_5322 . Header . Name ( " Received " )
167+ public static let received : Self = " Received "
168168}
169169
170170// MARK: - MIME Headers (RFC 2045)
171171
172172extension RFC_5322 . Header . Name {
173173 /// Content-Type: header (media type)
174- public static let contentType = RFC_5322 . Header . Name ( " Content-Type " )
174+ public static let contentType : Self = " Content-Type "
175175
176176 /// Content-Transfer-Encoding: header
177- public static let contentTransferEncoding = RFC_5322 . Header . Name ( " Content-Transfer-Encoding " )
177+ public static let contentTransferEncoding : Self = " Content-Transfer-Encoding "
178178
179179 /// MIME-Version: header
180- public static let mimeVersion = RFC_5322 . Header . Name ( " MIME-Version " )
180+ public static let mimeVersion : Self = " MIME-Version "
181181
182182 /// Content-Disposition: header
183- public static let contentDisposition = RFC_5322 . Header . Name ( " Content-Disposition " )
183+ public static let contentDisposition : Self = " Content-Disposition "
184184
185185 /// Content-ID: header
186- public static let contentId = RFC_5322 . Header . Name ( " Content-ID " )
186+ public static let contentId : Self = " Content-ID "
187187
188188 /// Content-Description: header
189- public static let contentDescription = RFC_5322 . Header . Name ( " Content-Description " )
189+ public static let contentDescription : Self = " Content-Description "
190190}
191191
192192// MARK: - Common Extension Headers
193193
194194extension RFC_5322 . Header . Name {
195195 /// X-Mailer: header (mail client identification)
196- public static let xMailer = RFC_5322 . Header . Name ( " X-Mailer " )
196+ public static let xMailer : Self = " X-Mailer "
197197
198198 /// X-Priority: header (message priority)
199- public static let xPriority = RFC_5322 . Header . Name ( " X-Priority " )
199+ public static let xPriority : Self = " X-Priority "
200200
201201 /// List-Unsubscribe: header (mailing list unsubscribe)
202- public static let listUnsubscribe = RFC_5322 . Header . Name ( " List-Unsubscribe " )
202+ public static let listUnsubscribe : Self = " List-Unsubscribe "
203203
204204 /// List-ID: header (mailing list identifier)
205- public static let listId = RFC_5322 . Header . Name ( " List-ID " )
205+ public static let listId : Self = " List-ID "
206206
207207 /// Precedence: header
208- public static let precedence = RFC_5322 . Header . Name ( " Precedence " )
208+ public static let precedence : Self = " Precedence "
209209
210210 /// Auto-Submitted: header
211- public static let autoSubmitted = RFC_5322 . Header . Name ( " Auto-Submitted " )
211+ public static let autoSubmitted : Self = " Auto-Submitted "
212212}
213213
214214// MARK: - Apple Mail Headers
215215
216216extension RFC_5322 . Header . Name {
217217 /// X-Apple-Base-Url: header
218- public static let xAppleBaseUrl = RFC_5322 . Header . Name ( " X-Apple-Base-Url " )
218+ public static let xAppleBaseUrl : Self = " X-Apple-Base-Url "
219219
220220 /// X-Universally-Unique-Identifier: header
221- public static let xUniversallyUniqueIdentifier = RFC_5322 . Header. Name (
222- " X-Universally-Unique-Identifier "
223- )
221+ public static let xUniversallyUniqueIdentifier : Self = " X-Universally-Unique-Identifier "
224222
225223 /// X-Apple-Mail-Remote-Attachments: header
226- public static let xAppleMailRemoteAttachments = RFC_5322 . Header. Name (
227- " X-Apple-Mail-Remote-Attachments "
228- )
224+ public static let xAppleMailRemoteAttachments : Self = " X-Apple-Mail-Remote-Attachments "
229225
230226 /// X-Apple-Windows-Friendly: header
231- public static let xAppleWindowsFriendly = RFC_5322 . Header . Name ( " X-Apple-Windows-Friendly " )
227+ public static let xAppleWindowsFriendly : Self = " X-Apple-Windows-Friendly "
232228
233229 /// X-Apple-Mail-Signature: header
234- public static let xAppleMailSignature = RFC_5322 . Header . Name ( " X-Apple-Mail-Signature " )
230+ public static let xAppleMailSignature : Self = " X-Apple-Mail-Signature "
235231
236232 /// X-Uniform-Type-Identifier: header
237- public static let xUniformTypeIdentifier = RFC_5322 . Header . Name ( " X-Uniform-Type-Identifier " )
233+ public static let xUniformTypeIdentifier : Self = " X-Uniform-Type-Identifier "
238234}
239235
240236// MARK: - Name Protocol Conformances
0 commit comments