Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
MailEventArgs.cs
1using System;
2using System.Collections.Generic;
4
6{
11 {
12 private readonly string contentType;
13 private readonly string messageId;
14 private readonly Priority priority;
15 private readonly DateTimeOffset date;
16 private readonly string fromMail;
17 private readonly string fromHeader;
18 private readonly string sender;
19 private readonly int size;
20 private readonly string mailObjectId;
21 private readonly KeyValuePair<string, string>[] headers;
22 private readonly EmbeddedObjectReference[] attachments;
23 private readonly EmbeddedObjectReference[] inline;
24 private readonly MailClient client;
25 private readonly string plainText;
26 private readonly string html;
27 private readonly string markdown;
28
50 DateTimeOffset Date, string FromMail, string FromHeader, string Sender, int Size, string MailObjectId,
51 KeyValuePair<string, string>[] Headers, EmbeddedObjectReference[] Attachments, EmbeddedObjectReference[] Inline,
52 string PlainText, string Html, string Markdown)
53 : base(e)
54 {
55 this.client = Client;
56 this.contentType = ContentType;
57 this.messageId = MessageId;
58 this.priority = Priority;
59 this.date = Date;
60 this.fromMail = FromMail;
61 this.fromHeader = FromHeader;
62 this.sender = Sender;
63 this.size = Size;
64 this.mailObjectId = MailObjectId;
65 this.headers = Headers;
66 this.attachments = Attachments;
67 this.inline = Inline;
68 this.plainText = PlainText;
69 this.html = Html;
70 this.markdown = Markdown;
71 }
72
76 public MailClient Client => this.client;
77
81 public string ContentType => this.contentType;
82
86 public string MessageId => this.messageId;
87
91 public Priority Priority => this.priority;
92
96 public DateTimeOffset Date => this.date;
97
101 public string FromMail => this.fromMail;
102
106 public string FromHeader => this.fromHeader;
107
111 public string Sender => this.sender;
112
116 public int Size => this.size;
117
121 public string MailObjectId => this.mailObjectId;
122
126 public KeyValuePair<string, string>[] Headers => this.headers;
127
131 public EmbeddedObjectReference[] Attachments => this.attachments;
132
136 public EmbeddedObjectReference[] Inline => this.inline;
137
141 public string PlainText => this.plainText;
142
146 public string Html => this.html;
147
151 public string Markdown => this.markdown;
152 }
153}
Event arguments for message events.
Contains a reference to an object embedded in a mail.
Client providing support for server mail-extension.
Definition: MailClient.cs:18
Event arguments for mail message events
string FromHeader
From Address, as provided in the mail headers.
string PlainText
Plain-text body, if available.
EmbeddedObjectReference[] Inline
Inline objects, if available.
MailEventArgs(MailClient Client, MessageEventArgs e, string ContentType, string MessageId, Priority Priority, DateTimeOffset Date, string FromMail, string FromHeader, string Sender, int Size, string MailObjectId, KeyValuePair< string, string >[] Headers, EmbeddedObjectReference[] Attachments, EmbeddedObjectReference[] Inline, string PlainText, string Html, string Markdown)
Event arguments for mail message events
string FromMail
From Address, as provided in the MAIL FROM command.
string MailObjectId
Mail object ID in broker.
string Markdown
Markdown body, if available.
DateTimeOffset Date
Message Date
int Size
Size of message contents.
string Html
HTML body, if available.
KeyValuePair< string, string >[] Headers
Mail headers
string MessageId
Message-ID, if available.
string Sender
Sender address, as provided in the mail headers.
EmbeddedObjectReference[] Attachments
Attachments, if available.
Priority
Mail priority
Definition: Priority.cs:7