login about faq

We read emails individually via POP3 and IMAP. Ran into an issue of not getting the imbedded images within the message because the standard Chilkat "attachment" commands like SaveAllAttachments doesn't process those.

The only way I can figure out how to "save" those is to cycle through them with GetRelatedFilename followed by SaveRelatedItem commands.

Is that the ONLY way to do that?

Once we save the attachments and relateditems, with the OverWrite flag True, do we have to use both GetAttachmentFilename and GetRelatedFilename (again) to get the new unique filename?

Finally, does the "save to directory" have to be created when saving these or will it automatically create it if it doesn't exist.

Thanks for any help....

Once we have them "saved", either regular attachments or RelatedItems... can we use a single

asked Jan 03 '13 at 22:11

pbrama's gravatar image

pbrama
9334


1) Yes. Unfortunately, there is no SaveAllRelatedItems method. You would need to write a very small loop (a few lines of code) to iterate from 0 to NumRelatedItems-1 to call SaveRelatedItem for each.

2) If the OverwriteExisting property is True, then the name of the attachment or related item won't change when saving -- because if the file already exists it will be overwritten. If the OverwriteExisting property is False, then the filename may change if the file already exists in the filesystem, and you may get the actual filename afterwards via the GetAttachmentFilename/GetRelatedFilename methods.

3) The directory path is automatically created if it does not exist.

link

answered Jan 05 '13 at 12:44

chilkat's gravatar image

chilkat ♦♦
11.8k316358420

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or __italic__
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×18
×7
×2

Asked: Jan 03 '13 at 22:11

Seen: 1,231 times

Last updated: Jan 05 '13 at 12:44

powered by OSQA