some POP3 puzzles

Home Page › Forums › BizTalk 2004 – BizTalk 2010 › some POP3 puzzles

Viewing 1 reply thread
  • Author
    Posts
    • #18296

      I use POP3 to retrieve email attachment. There's only one attachment, always would be .csv, and email body is dis-regarded.

       I build an orchestration to receive the email as XMLDocument message type and then assign it to message oXmessage which is type of XLANGMessage. And then instead of doing a loop i directly get the attachment using Out=oXmessage[1], since i thought index 0 is for the email body. This is working sweet in a system using outlook 2002.

      But in outlook 2007, i have to get the attachment using Out=oXmessage[0] while keep the setting for POP3 Body part index to be 0 in receive location.

      Another issue is with the content-type. When i send .txt file as attachment, it's working with text/plain.But just cannot transfer any .csv files even though i tried text/csv. The error i got is:

      Error details: The MIME decoder cannot find a MIME part for the specified content-type. Either there was no matching content-type or there were not enough occurrences of it.

      How can i get it work with csv? Or should using multi part message instead of using XLANGMessage type?

       Regards,

      Merry

    • #18297

      solved by using application/octet-stream.

       But wondering how to filter emails to only passthrough specific subject?

       

      • #18298

        This is one of the limitations of the built in POP3 adapter.  I would think that you would need to write a custom pipeline component to filter.  The TopXML adapter supports regular expressions on subject lines.  We bought this adapter back in 2005 when supporting BizTalk 2004 so we have continued to use this adapter in BizTalk 2006.

        • #18402

          I can filter the subject by using:

          subject=out(POP3.Subject);

          In an decide shape in orchestration, put the rule for specific subject.

Viewing 1 reply thread
  • The forum ‘BizTalk 2004 – BizTalk 2010’ is closed to new topics and replies.