Quantcast
Channel: ImapX 2
Viewing all articles
Browse latest Browse all 1952

Edited Issue: ToEml extension method throw an exception [2046]

$
0
0
#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);__

Viewing all articles
Browse latest Browse all 1952

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>