Skip to content

Commit 47ec773

Browse files
committed
Форматирование.
1 parent 8151fe7 commit 47ec773

File tree

5 files changed

+15
-10
lines changed

5 files changed

+15
-10
lines changed

MailComponent/Mail/InternetMailAttachment.cs

+4-4
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@ namespace OneScript.InternetMail
1717
[ContextClass("ИнтернетПочтовоеВложение", "InternetMailAttachment")]
1818
public class InternetMailAttachment : AutoContext<InternetMailAttachment>
1919
{
20-
/// <summary>
21-
/// Пустое почтовое вложение
22-
/// </summary>
23-
public InternetMailAttachment()
20+
/// <summary>
21+
/// Пустое почтовое вложение
22+
/// </summary>
23+
public InternetMailAttachment()
2424
{
2525
EncodingMode = InternetMailAttachmentEncodingMode.Mime;
2626
Data = ValueFactory.Create();

MailComponent/Mail/InternetMailAttachments.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ public InternetMailAttachment Add(BinaryDataContext data, string attachmentName
6262
{
6363
var attachment = new InternetMailAttachment(data, attachmentName);
6464
attachment.Name = attachmentName;
65-
_data.Add(attachment);
65+
_data.Add(attachment);
6666
return attachment;
6767
}
6868

MailComponent/Mail/InternetMailMessage.cs

+3-3
Original file line numberDiff line numberDiff line change
@@ -94,15 +94,15 @@ public InternetMailMessage(MailKit.IMessageSummary headers) : this(GenerateHeade
9494

9595
public InternetMailMessage(MimeMessage nativeMessage, string identifier) : this(nativeMessage.Headers)
9696
{
97-
97+
9898
Uid.Add(ValueFactory.Create(identifier));
9999
if (nativeMessage.Body is TextPart)
100100
{
101101
Texts.Add(new InternetMailText(nativeMessage.Body as TextPart));
102102
}
103103
else if (nativeMessage.Body is Multipart)
104104
{
105-
105+
106106
var body = nativeMessage.Body as Multipart;
107107
foreach (var part in body)
108108
{
@@ -133,7 +133,7 @@ public InternetMailMessage(MimeMessage nativeMessage, string identifier) : this(
133133
var part = (MimePart)attachment;
134134
var fileName = part.FileName;
135135
var stream = new MemoryStream();
136-
136+
137137
part.ContentObject.DecodeTo(stream);
138138
BinaryDataContext bin = new BinaryDataContext(stream.ToArray());
139139
Attachments.Add(bin, fileName);

MailComponent/Mail/InternetMailMessageImportance.cs

-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ This Source Code Form is subject to the terms of the
55
at http://mozilla.org/MPL/2.0/.
66
----------------------------------------------------------*/
77
using System;
8-
using ScriptEngine.Machine.Contexts;
98
using ScriptEngine;
109

1110
namespace OneScript.InternetMail

TestApp/Program.cs

+7-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
1-
using System;
1+
/*----------------------------------------------------------
2+
This Source Code Form is subject to the terms of the
3+
Mozilla Public License, v.2.0. If a copy of the MPL
4+
was not distributed with this file, You can obtain one
5+
at http://mozilla.org/MPL/2.0/.
6+
----------------------------------------------------------*/
7+
using System;
28
using System.IO;
39
using ScriptEngine.Machine;
410
using ScriptEngine.HostedScript;

0 commit comments

Comments
 (0)