Search The ForumSearch   RegisterRegister  LoginLogin

MailBee.NET Objects

 AfterLogic Forum : MailBee.NET Objects
Subject Topic: PSTReader and Attachments Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
TrevorWAtson
Newbie
Newbie
Avatar

Joined: 10 February 2011
Location: Canada
Online Status: Offline
Posts: 2
Posted: 10 February 2011 at 2:08pm | IP Logged Quote TrevorWAtson

I am currently attempting to create a project that extracts all emails and attachments from a PST to EML w/ the attachments in the directory with it. However, when I use the PSTReader to get the items and change it to a MailMessage via GetAsMailMessage(), there is no reference to the attachments left behind.

The code I use to loop through all items in a PST is

Code:

MailBee.Outlook.PstFolderCollection folderColl = pstReader.GetPstRootFolders(true);
foreach (MailBee.Outlook.PstFolder folder in folderColl)
{
    foreach (MailBee.Outlook.PstItem item in folder.Items)
....



I then call
Code:
item.GetAsMailMessage().Attachments.Count

on the item.   This always returns 0, no matter if the item should have attachments or not.

Is this by design? Can you not retrieve an email with attachments via the MailBee Outlook items?

I have a PST available if you wish to see my testing PST.

Thanks in advance.

Trevor Watson
Back to Top View TrevorWAtson's Profile Search for other posts by TrevorWAtson
 
TrevorWAtson
Newbie
Newbie
Avatar

Joined: 10 February 2011
Location: Canada
Online Status: Offline
Posts: 2
Posted: 10 February 2011 at 2:10pm | IP Logged Quote TrevorWAtson

I'm using v6.7.2.264 of the MailBee Objects.NET in a .NET 2.0 environment
Back to Top View TrevorWAtson's Profile Search for other posts by TrevorWAtson
 
Igor
AfterLogic Support
AfterLogic Support


Joined: 24 June 2008
Location: United States
Online Status: Offline
Posts: 6104
Posted: 11 February 2011 at 4:22am | IP Logged Quote Igor

If it's possible, please provide us with test PST file via HelpDesk.
Please also point us to the email message(s) in question.

One more thing: did you try to save those messages to disk as EML files? Are they saved OK, and maybe that's just a
problem with Attachments.Count itself, while the attachments are fetched fine?

--
Regards,
Igor, AfterLogic Support
Back to Top View Igor's Profile Search for other posts by Igor
 

If you wish to post a reply to this topic you must first login
If you are not already registered you must first register

  Post ReplyPost New Topic
Printable version Printable version

Forum Jump

Powered by Web Wiz Forums version 7.9
Copyright ©2001-2004 Web Wiz Guide