[Dmitry?] Attaching a link as a file...revisited

  • Thread starter Thread starter Patrick Pirtle
  • Start date Start date
P

Patrick Pirtle

In another thread, I was trying to find some information
on deleting an attachment, but retaining the paperclip
similarly to the way some 3rd-party applications do. I
posted a screenshot of OutlookSpy's report here:

ftp://mka.com/outbox/outlookspy.jpg

I installed and ran OutlookSpy, and the GetAttachmentTable
had one row (as shown in the linked image.) It appears AE is
attaching a link(?) which, therefore, preserves the icon? If so,
can you give me any direction on how to do this?

Thanks, again, for all your help.
 
You need to set the PR_ATTACHMENT_HIDDEN (0x7FFE000B) property to true on
the attachment itself. This way the attachment will not be accessible from
the Outlook UI.

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
 
Thank you for your reply. Just to make sure I fully understand,
it sounds like I can:

1. Save the attachment on the incoming email.

2. Delete the attachment from the incoming email.

3. Modify the body of the message to show a link
to the saved attachment.

4. Attach an empty text file (?) to the email.

5. Set the PR_ATTACHMENT_HIDDEN (0x7FFE000B)
property so the attached, empty text file isn't accessible,
but the paperclip icon still shows up.

I'll give this a go. Thanks, once more.
 
Well, everything works just fine, except for step #5. I
cannot seem to figure out how to change this property.
I've searched the OutlookSpy site and googled for info
on it, but guess I don't know enough to do this.

Can you give me a push in the right direction? TIA

Dmitry said:
That is exactly right.

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
[snip]
 
Set that property on IAttach, call IAttach::SaveChanges(), then
IMessage::SaveChanges().

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool


Patrick Pirtle said:
Well, everything works just fine, except for step #5. I
cannot seem to figure out how to change this property.
I've searched the OutlookSpy site and googled for info
on it, but guess I don't know enough to do this.

Can you give me a push in the right direction? TIA

Dmitry said:
That is exactly right.

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
[snip]
 
Back
Top