#File.Delete(eml) throw an exception
Looking at _\ImapX\Extensions\MailMessageExtensions.cs_
There is
```
public static string ToEml(this MailMessage mailMessage)
{
...
if (string.IsNullOrEmpty(tmpPath))
throw new OperationFailedException();
else
{
var eml = File.ReadAllText(tmpPath);
File.Delete(eml);
return eml;
}
...
}
```
I suppose it should be __File.Delete(tmpPath)__ instead of __File.Delete(eml);__
Comments: ** Comment from web user: pavel_azanov **
Looking at _\ImapX\Extensions\MailMessageExtensions.cs_
There is
```
public static string ToEml(this MailMessage mailMessage)
{
...
if (string.IsNullOrEmpty(tmpPath))
throw new OperationFailedException();
else
{
var eml = File.ReadAllText(tmpPath);
File.Delete(eml);
return eml;
}
...
}
```
I suppose it should be __File.Delete(tmpPath)__ instead of __File.Delete(eml);__
Comments: ** Comment from web user: pavel_azanov **
Hi jcvalerio,
thank you! I fixed the issue, you can check the latest source code in the repository.
Greets,
Pavel