-
Notifications
You must be signed in to change notification settings - Fork 73
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Get Email Message source #143
Comments
have you tried exporting items using ews? it should give you exactly what you are looking for. Note: in this library any c# |
Yeah thats what I need but still I don't know how to load MimeContent property, in the example above the item.MimeContent returns null; |
can you post your code? I can fix it for this library, I have to work on documentation which I am not able to do due to time constraints. you want to initialize |
var adinationalProps = [];
adinationalProps.push(ews.ItemSchema.MimeContent);
adinationalProps.push(ews.ItemSchema.TextBody);
var Promise = require('bluebird');
var items = exch.FindItems(ews.WellKnownFolderName.Inbox, new ews.ItemView());
items.then(function (response) {
Promise.reduce(response.Items,function(totalNotUsed, item){
return item.Load(new ews.PropertySet(ews.BasePropertySet.FirstClassProperties, adinationalProps)).then(function() {
process.stdout.write(item.MimeContent.Content + '\n');
return null;
});
}, null).then(function(totalNotUsed) {
//all done
});
}); but this end with 'Unhandled rejection (<{"InnerException":null,"message":"The ...>, no stack trace)' |
what is the full message? bluebird complains about non |
There is no other message. var adinationalProps = [];
adinationalProps.push(ews.ItemSchema.MimeContent);
adinationalProps.push(ews.ItemSchema.TextBody);
var items = exch.FindItems(ews.WellKnownFolderName.Inbox, new ews.ItemView());
items.then(function (response) {
for ( var item of response.Items )
{
item.Load(new ews.PropertySet(ews.BasePropertySet.FirstClassProperties, adinationalProps)).then(function() {
console.log(item.Subject);
console.log(item.MimeContent);
console.log("----------------------");
});
}
}); The problem is that when I do item.Load(new ews.PropertySet(ews.BasePropertySet.FirstClassProperties, adinationalProps)) the function is not even called. But when I remove adinational props item.Load(new ews.PropertySet(ews.BasePropertySet.FirstClassProperties)) it is called correctly. |
I have ran this exactly by your example, I have no problem getting |
Had no clue TextBody was causing the problem. I got it working now. Thank you!! |
for your requirement, no need to use |
Hello I wonder if there is a way to get message source like this in one piece of string
Right now I can somehow compose the source myself, but this would save me lot of troubles. Thanks.
EDIT: I think I need MimeContent and TextBody, but I can't find a way to load them
The text was updated successfully, but these errors were encountered: