Util/Mail/SPop3.cs
(开头部分) 26KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Collections;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Net.Mail;
using System.Net.Security;
using System.Net.Sockets;
using System.Text;
namespace Util.Mail
{
public class SPop3
{
string POPServer;
string user;
string pwd;
NetworkStream ns;
SslStream sslStream;
StreamReader sr;
/// <summary>
/// 解码
/// </summary>
/// <param name="code"></param>
/// <returns></returns>
private string Decode(string[] strss) //=?utf-8?B?5Lqy54ix55qEIDExNzg3NzIxMjNxcWNv?=
{
//获取标题的编码方式
Encoding b = Encoding.GetEncoding(strss[1]);
string code = strss[3];
string decode = "";
byte[] byteCode = null;
if (strss[2].ToUpper() == "B")
{
byteCode = DecodeBase64(ref strss[3]);
}
else if (strss[2].ToUpper() == "Q")
{
byteCode = DecodeQP(ref strss[3]);
}
try
{
decode = b.GetString(byteCode);
}
catch
{
decode = code;
}
if (decode.Contains("\0"))
decode = decode.Replace("\0", "");
return decode;
}
//对邮件标题解码 quoted-printable
/// <summary>
/// quoted-printable 解码
/// </summary>
/// <param name="code"></param>
/// <returns></returns>
后面还有 650 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
