2 Replies Latest reply on Jun 15, 2010 10:05 AM by erikjohnson

    getAttachments fails to retrieve

    ender0002

      Greetings,

       

      Some background... running CF 8,0,1,195765 trying to communicate with an Exchange 2003 server.  The communication succeeds, and I can get a list of messages with indicate that it has an attachment.  The goal is to retrieve these messages (envelop journaled as part of the archive) and extract the original message.

       

      When isolated to a specific message with the UID and the getattachments action, it fails.  The call is as follows:

              <cfexchangemail
              action="getAttachments"
              attachmentpath="F:\test"
              connection="GetArchive"
              folder="Inbox"
              name="attachData"
              generateuniquefilenames="true"
              uid="<AA718FA81900E148B09B0DF91B702AC23C83C1@host.domain.local>"
                  />

       


      First AttachmentFilePath comes back empty which the docs say should only happen if attachmentpath is left null.  More strange is that if F:\test doesn't exist, CF does create it like it's supposed to.   So clearly it knows that I set the value.   It shows a size and an Attachmentfilename in the result set.  Look in F:\test however and the folder is empty.  Where is the attachment?

       

      I originally thought it had something to do with the file name as I tried a different email to retrieve with the subject:

      [WhiteListed] Your Order (23467) Placed on 11/22/2009

       

      To me, a file name like this would not be accepted by the file system.  That said, what happens with file names like this?  Shouldn't there be a "SaveFileAs=" parameter so you can use a UUID and set it and avoid naming problems?

       

      What's the solution here and how can I retrieve attachments?  Or what could be holding it up since I can retrieve the envelope message just fine?

       

      Thanks.

      Andrew