Pop3cli
1#region License2//------------------------------------------------------------------------------
3// Copyright (c) Dmitrii Evdokimov
4// Source https://github.com/diev/
5//
6// Licensed under the Apache License, Version 2.0 (the "License");
7// you may not use this file except in compliance with the License.
8// You may obtain a copy of the License at
9// http://www.apache.org/licenses/LICENSE-2.0
10// Unless required by applicable law or agreed to in writing, software
11// distributed under the License is distributed on an "AS IS" BASIS,
12// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13// See the License for the specific language governing permissions and
14// limitations under the License.
15//------------------------------------------------------------------------------
16
17// based on an article https://www.codeproject.com/Articles/15611/POP3-Email-Client-with-full-MIME-Support-NET-2-0
18
19// POP3 Email Client
20// =================
21//
22// copyright by Peter Huber, Singapore, 2006
23// this code is provided as is, bugs are probable, free for any use at own risk, no
24// responsibility accepted. All rights, title and interest in and to the accompanying content retained. :-)
25//
26// based on Standard for ARPA Internet Text Messages, http://rfc.net/rfc822.html
27// based on MIME Standard, Internet Message Bodies, http://rfc.net/rfc2045.html
28// based on MIME Standard, Media Types, http://rfc.net/rfc2046.html
29// based on QuotedPrintable Class from ASP emporium, http://www.aspemporium.com/classes.aspx?cid=6
30
31// based on MIME Standard, E-mail Encapsulation of HTML (MHTML), http://rfc.net/rfc2110.html
32// based on MIME Standard, Multipart/Related Content-type, http://rfc.net/rfc2112.html
33
34// ?? RFC 2557 MIME Encapsulation of Aggregate Documents http://rfc.net/rfc2557.html
35#endregion36
37namespace Mime38{
39//character array 'constants' used for analysing POP3 / IMAP4 / MIME40internal struct MimeChars41{42internal static readonly char[] BlankChars = { ' ' };43internal static readonly char[] BracketChars = { '(', ')' };44internal static readonly char[] ColonChars = { ':' };45internal static readonly char[] CommaChars = { ',' };46internal static readonly char[] EqualChars = { '=' };47internal static readonly char[] ForwardSlashChars = { '/' };48internal static readonly char[] SemiColonChars = { ';' };49
50internal static readonly char[] WhiteSpaceChars = { ' ', '\t' };51internal static readonly char[] NonValueChars = { '"', '(', ')' };52}53}
54