Re: Issue with POP3 and file attachments

Tech-Archive recommends: Fix windows errors by optimizing your registry



POP3 is doing the mime encoding. We have even tried using a custom pipeline and looking thru the message and that itself also does not get the original filename.

Paul



"news.microsoft.com" <Joerg Fischer> wrote in message news:Omih7iMqJHA.5880@xxxxxxxxxxxxxxxxxxxxxxx
Hi,

So, is the POP3 adapter doing the MIME processing or are you using a receive pipeline with the MIME decode in place?

Regards

Joerg Fischer
BizTalk MVP
<peccleston@xxxxxxxxxx> schrieb im Newsbeitrag news:DE034A00-FC0E-4D2F-A3A5-2A8A93E5F07F@xxxxxxxxxxxxxxxx
Thanks Joerg - but it's not missing, we are consuming around 8000 emails a week, around 45% of them Biztakl doesn't show the correct filename even though it's in the message.

On the web I've seen this issue mentioned a lot with no resolution.


"news.microsoft.com" <Joerg Fischer> wrote in message news:ejbJGZAqJHA.4516@xxxxxxxxxxxxxxxxxxxxxxx
Hi,

Maybe the filename is missing in the original mail? It is strictly speaking not mandatory in a MIME multipart element.

Regards

Joerg Fischer
BizTalk MVP

<peccleston@xxxxxxxxxx> schrieb im Newsbeitrag news:365DFCBD-ABA4-4B5B-8195-4FBB6F0431F9@xxxxxxxxxxxxxxxx
Hi

We have a biztalk orchestation and C# helper to retrive email via POP, store the attachments in a database, and forward the email to a different email address using SMTP.

Almost working great, except for no reason we can fathom the file attachment name will suddently be what looks like a GUID rather than a filename.

Here is a snippet of our C# code which is causing the issue. Partname usually contains the filename, but sometimes it doesn't!
Thanks
Paul


foreach (Microsoft.XLANGs.BaseTypes.XLANGPart xpart in x)
{
partName = xpart.Name;
partName = partName.ToUpper();

biztalkStream = (Stream)xpart.RetrieveAs(typeof(Stream));





.



Relevant Pages

  • Re: MIME - scripting and symbol substitutions
    ... This script is creating a text file with a different filename ... symbol called NEWFILENAME (which works, ... MIME from the command line with all options (so normal DCL ...
    (comp.os.vms)
  • Re: Issue with POP3 and file attachments
    ... "news.microsoft.com" <Joerg Fischer> wrote in message ... is the POP3 adapter doing the MIME processing or are you using a receive pipeline with the MIME decode in place? ... around 45% of them Biztakl doesn't show the correct filename even though it's in the message. ... Partname usually contains the filename, ...
    (microsoft.public.biztalk.general)
  • Re: Issue with POP3 and file attachments
    ... is the POP3 adapter doing the MIME processing or are you using a receive pipeline with the MIME decode in place? ... Joerg Fischer ... schrieb im Newsbeitrag ... around 45% of them Biztakl doesn't show the correct filename even though it's in the message. ...
    (microsoft.public.biztalk.general)
  • Re: Issue with POP3 and file attachments
    ... Passthru pipeline used. ... "news.microsoft.com" <Joerg Fischer> wrote in message ... is the POP3 adapter doing the MIME processing or are you using a receive pipeline with the MIME decode in place? ... around 45% of them Biztakl doesn't show the correct filename even though it's in the message. ...
    (microsoft.public.biztalk.general)
  • tcllib pop3: returning too many newlines?
    ... I've been working with the smtp, mime and pop3 libraries and am having trouble with making a successful round trip. ... the body of the mime message I get back always has two more trailing newlines then the body of the mime message I sent. ...
    (comp.lang.tcl)