# EmailMessageReader

Reads local email files and offline archives without transferring a resource lifetime to the caller.

Class 

`OfficeIMO.Email`

**Namespace**

`OfficeIMO.Email`

**Assembly**

`OfficeIMO.Email`

**Source revision**

`3b680b1b6fb1` with working tree changes

**Source**

[EmailMessageReader.cs:46](https://github.com/EvotecIT/OfficeIMO/blob/3b680b1b6fb15a268ff5525a4ca6cdd70b2f6613/OfficeIMO.Email/Workflows/EmailMessageReader.cs#L46)

**Modifiers**

static

Reads local email files and offline archives without transferring a resource lifetime to the caller.

## Inheritance

- object
- EmailMessageReader

Filter members 

Show inherited

## Methods

`public static EmailMessageReadResult Read(string path, EmailMessageQuery? query = null, CancellationToken cancellationToken = default)` [#](#method-read-string-officeimo-email-emailmessagequery-threading-cancellationtoken)

[EmailMessageReader.cs:46](https://github.com/EvotecIT/OfficeIMO/blob/3b680b1b6fb15a268ff5525a4ca6cdd70b2f6613/OfficeIMO.Email/Workflows/EmailMessageReader.cs#L46)

Reads matching messages and closes the source before returning.

Parameters

**path string required**

**query OfficeIMO.Email.EmailMessageQuery? = null optional**

**cancellationToken System.Threading.CancellationToken = default optional**

Returns

`EmailMessageReadResult`

## Inherited Methods

`public virtual bool Equals(object? obj)` [#](#method-equals-object)

Inherited from object

Parameters

**obj object? required**

Returns

`bool`

`public virtual int GetHashCode()` [#](#method-gethashcode)

Inherited from object

Returns

`int`

`public Type GetType()` [#](#method-gettype)

Inherited from object

Returns

`Type`

`public virtual string? ToString()` [#](#method-tostring)

Inherited from object

Returns

`string?`

<!-- PowerForge markdown artifact sha256:A7C207DA62D0FE6535CF38E0EEFE273D4DA9C7971525A9E5467EB125B0D56E3C -->
