Comments (3)
I'm seeing the same. I'll take a look and get back to you shortly.
Dijji
from xstreader.
The bug is quite subtle. XstFile.cs contains:
public void ReadMessages(Folder f)
{
if (f.ContentCount > 0)
{
using (var fs = ndb.GetReadStream())
{
// Get the Contents table for the folder
var ms = ltp.ReadTable<Message>(fs, NID.TypedNID(EnidType.CONTENTS_TABLE, f.Nid),
ndb.IsUnicode4K ? pgMessageList4K : pgMessageList, (m, id) => m.Nid = new NID(id));
if (ndb.IsUnicode4K)
{
foreach (var m in ms)
ltp.ReadProperties<Message>(fs, m.Nid, pgMessageDetail4K, m);
}
// We may be called on a background thread, so we need to dispatch this to the UI thread
Application.Current.Dispatcher.Invoke(new Action(() =>
{
f.Messages.Clear();
foreach (var m in ms)
{
f.AddMessage(m);
}
}));
}
}
}
ms is a query, so the first foreach, conditional on it being a 4K file, executes the query and adds the name properties, which are missing from the contents table.
However, at the time of the second foreach, used to populate the messages in the view, ms is still a query, so it executes it again and adds Messages to the view, this time without the name properties.
A simple fix is to execute the query only once, and make ms a concrete set of objects, for instance by saying:
var ms = ltp.ReadTable<Message>(fs, NID.TypedNID(EnidType.CONTENTS_TABLE, f.Nid),
ndb.IsUnicode4K ? pgMessageList4K : pgMessageList, (m, id) => m.Nid = new NID(id)).ToArray();
I will submit a change in response to this issue.
Dijji
from xstreader.
Fixed in Version 1.3
from xstreader.
Related Issues (20)
- Ist Reader quits without any message HOT 15
- Use Non-destructive Sort HOT 8
- Can open password protected .pst files with out supplying password. HOT 9
- Support for exporting to EML w/attachments HOT 5
- Commandline parsing to CSV? HOT 2
- Feature Request: Open/Search Multiple Files HOT 2
- "Sub-nodes of sub-nodes not yet implemented" crash in pst file with embedded message attachment HOT 7
- Few queries HOT 4
- HTML Export to the same folder structure HOT 2
- Duplicate Dictionary Key Exception During Processing of Certain Messages with Multiple Attachments HOT 3
- Feature Request: Open a MSG File and extract their properties HOT 1
- VirusTotal HOT 3
- Extract permanently deleted items HOT 2
- OST/PST encryption/compression HOT 1
- XstExport command usage HOT 1
- Feature Request: Bulk import HOT 1
- Sad news about Dijji HOT 6
- Timestamp in UTC HOT 2
- New Release in the iluvadev fork
- Feature request - viewing accents HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from xstreader.