Outlook Mail attachments not completely shown

Add-in Express™ Support Service
That's what is more important than anything else

Outlook Mail attachments not completely shown
 
Thomas Bach




Posts: 89
Joined: 2009-10-15
Hi Andrei,

many thanks. I´ll try it.

Regards

Thomas
Thomas Bach
Posted 29 Mar, 2012 02:04:25 Top
Andrei Smolin


Add-in Express team


Posts: 18519
Joined: 2006-05-11
Hi Thomas,

Please keep me informed.

Regards from Belarus (GMT+3),

Andrei Smolin
Add-in Express Team Leader
Posted 29 Mar, 2012 02:43:17 Top
Thomas Bach




Posts: 89
Joined: 2009-10-15
Hi Andrei,

i tried this sample with VS 2010 and Outlook 2007.

All attachments are marked as embedded (also not embedded attachments).

Perhaps, it´s already my Problem to unterstand the concept.

You have included a line with "To get proper result, the email must be saved".

What does this mean?

Regards

Thomas
Thomas Bach
Posted 29 Mar, 2012 03:34:49 Top
Andrei Smolin


Add-in Express team


Posts: 18519
Joined: 2006-05-11
Hi Thomas,

Outlook is a big wrapper over a MAPI message store, sort of database. Outlook keeps an unsaved email in the memory; to save it to the DB, you call MailItem.Save. MAPI properties are retrived ONLY from the message stored in the DB; if changes aren't saved, MAPI properties return outdated info.

Regards from Belarus (GMT+3),

Andrei Smolin
Add-in Express Team Leader
Posted 29 Mar, 2012 04:47:44 Top
Thomas Bach




Posts: 89
Joined: 2009-10-15
Hi Andrei,

ok, now i understand and it works.
Thanks

Thomas
Thomas Bach
Posted 29 Mar, 2012 04:59:49 Top
Andrei Smolin


Add-in Express team


Posts: 18519
Joined: 2006-05-11
Thank you!

Regards from Belarus (GMT+3),

Andrei Smolin
Add-in Express Team Leader
Posted 29 Mar, 2012 05:02:53 Top
Thomas Bach




Posts: 89
Joined: 2009-10-15
Sorry Andrei, but i have allways problems.

I inserted a mail.save before ScanEmailAttachments

Now, if i inspect mails sent from an internal account to an internal account, the chekc for embedded works.

But by all mails received from an external account, it does´nt.

Any idea?

Regards

Thomas
Thomas Bach
Posted 29 Mar, 2012 05:53:08 Top
Andrei Smolin


Add-in Express team


Posts: 18519
Joined: 2006-05-11
In what way it doesn't work? Exceptions? Incorrect results?

If it provides incorrect results, can you please send a sample email to me for testing?

Create a new email (email #1), drag-drop the email producing incorrect results (email #2) into email #1 (this attaches email #2 to email #1), and send email #1 to me. Please find the support email address in {Add-in Express installation folder}\readme.txt. And make sure your email contains a link to this topic.

Is this possible?

Regards from Belarus (GMT+3),

Andrei Smolin
Add-in Express Team Leader
Posted 29 Mar, 2012 06:08:59 Top
Thomas Bach




Posts: 89
Joined: 2009-10-15
Hi Andrei,

tahe embedded flags are wrong.

I´ve send you the mails

Regards

Thomas
Thomas Bach
Posted 29 Mar, 2012 12:35:16 Top
Andrei Smolin


Add-in Express team


Posts: 18519
Joined: 2006-05-11
Hi Thomas,

I've got the emails. Thank you. I think I know what to do next but I'm not able to complete the work today. I'll send you a modified project on Monday.

Regards from Belarus (GMT+3),

Andrei Smolin
Add-in Express Team Leader
Posted 30 Mar, 2012 08:59:03 Top