Pop3cli

Форк
0
/
MimeChars.cs 
53 строки · 2.5 Кб
1
#region License
2
//------------------------------------------------------------------------------
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
#endregion
36

37
namespace Mime
38
{
39
    //character array 'constants' used for analysing POP3 / IMAP4 / MIME
40
    internal struct MimeChars
41
    {
42
        internal static readonly char[] BlankChars = { ' ' };
43
        internal static readonly char[] BracketChars = { '(', ')' };
44
        internal static readonly char[] ColonChars = { ':' };
45
        internal static readonly char[] CommaChars = { ',' };
46
        internal static readonly char[] EqualChars = { '=' };
47
        internal static readonly char[] ForwardSlashChars = { '/' };
48
        internal static readonly char[] SemiColonChars = { ';' };
49

50
        internal static readonly char[] WhiteSpaceChars = { ' ', '\t' };
51
        internal static readonly char[] NonValueChars = { '"', '(', ')' };
52
    }
53
}
54

Использование cookies

Мы используем файлы cookie в соответствии с Политикой конфиденциальности и Политикой использования cookies.

Нажимая кнопку «Принимаю», Вы даете АО «СберТех» согласие на обработку Ваших персональных данных в целях совершенствования нашего веб-сайта и Сервиса GitVerse, а также повышения удобства их использования.

Запретить использование cookies Вы можете самостоятельно в настройках Вашего браузера.