已针对网易邮箱改进。
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
nainaigu ff8698a739
Update Readme.md
6 years ago
Auth Support for .NET 3.5 12 years ago
Bodystructure Use InnerException to get the original error. 12 years ago
Properties Deal with comments, unit tests 12 years ago
Tests 增加注释 和 单元测试 7 years ago
.gitattributes initial commit 13 years ago
.gitignore Minor Bugfix SetAddressFields 13 years ago
AuthMethod.cs Bugfix EventDispatcher 12 years ago
Examples.md Markdown woes 12 years ago
Examples.xml API changes, refactoring 12 years ago
Exceptions.cs Refactoring, Cleanup, Comments 12 years ago
FetchOptions.cs add HtmlOnly For getMessageBody by html 7 years ago
IImapClient.cs Bugfix IdleLoop 12 years ago
IdleErrorEventArgs.cs Bugfix IdleLoop 12 years ago
IdleMessageEventArgs.cs Bugfix IdleLoop 12 years ago
ImapClient.cs 增加注释 和 单元测试 7 years ago
License.md Bugfix BuildHeader 12 years ago
MIMEPart.cs Refactoring, Cleanup, Comments 12 years ago
MailMessage.cs add HtmlOnly For getMessageBody by html 7 years ago
MailboxFlags.cs Refactoring, Cleanup, Comments 12 years ago
MailboxInfo.cs Refactoring, Cleanup, Comments 12 years ago
MailboxQuota.cs Refactoring, Cleanup, Comments 12 years ago
MailboxStatus.cs Refactoring, Cleanup, Comments 12 years ago
MessageBuilder.cs add HtmlOnly For getMessageBody by html 7 years ago
MessageFlags.cs Refactoring, Cleanup, Comments 12 years ago
Readme.md Update Readme.md 6 years ago
S22.Imap.csproj Bugfix IdleLoop 12 years ago
S22.Imap.sln Change TargetFrameworkVersion to 4.0 to run tests in VS2010 12 years ago
SafeQueue.cs Refactoring, Cleanup, Comments 12 years ago
SearchCondition.cs add HtmlOnly For getMessageBody by html 7 years ago
Util.cs Improved handling of encoded-words 12 years ago

Readme.md

改动部分 2018-2-24  by yuzd

针对163 imap做特殊处理 防止出现login失败 读取邮件内容改成默认用 utf-8

注意:我修改的部分只测试了 163 imap,请大家直接用 MailKit 2019-08-14 by yuzd

Introduction

This repository contains an easy-to-use and well-documented .NET assembly for communicating with and receiving electronic mail from an Internet Message Access Protocol (IMAP) server.

Downloads

You can always get the latest package on Nuget (includes .NET 4.0 and 3.5 binaries) or download the binaries (targeting .NET 4.0) as a .zip archive from here. The documentation is also available for offline viewing as HTML or CHM and can be downloaded from here and here, respectively.

Usage & Examples

To use the library add the S22.Imap.dll assembly to your project references in Visual Studio. Here's a simple example that initializes a new instance of the ImapClient class and connects to Gmail's IMAP server:

using System;
using S22.Imap;

namespace Test {
	class Program {
        static void Main(string[] args) {
            // Connect on port 993 using SSL.
            using (ImapClient Client = new ImapClient("imap.gmail.com", 993, true))
            {
                Console.WriteLine("We are connected!");
            }
        }
	}
}

Here are a couple of examples of how to use the library. Please also see the documentation for further details on using the classes and methods exposed by the S22.Imap namespace.

Features

  • Supports IMAP IDLE notifications
  • Supports IMAP over SSL
  • API designed to be very easy to use
  • Allows selectively fetching parts of mail messages
  • Inherently thread-safe
  • Well documented with lots of example code
  • Robust MIME parser, tested with 100.000+ mails
  • Supports various authentication mechanisms (SCRAM-SHA-1, OAUTH2, NTLM among others)
  • Integrates well with existing System.Net.Mail infrastructure
  • Still supports .NET 3.5
  • Free to use in commercial and personal projects (MIT license)

Credits

This library is copyright © 2012-2014 Torben Könke.

Parts of this library are based on the AE.Net.Mail project (copyright © 2012 Andy Edinborough).

License

This library is released under the MIT license.

Bug reports

Please send your bug reports to smileytwentytwo@gmail.com or create a new issue on the GitHub project homepage.