Multipart/mixed MIME

I am working on a B2B type servlet. The servlet needs to be able to handle the splitting up of a multipart/mixed MIME message into its various components. The components are delimited by boundaries and http content headers. Is there any JAVA class out there that can handle this ? I saw a MultiPart class that is part of javax.mail package, but it looks like you need a mail session to use it. My servlet will be just receiving http messages.
Any help would be greatly appreciated.
john z

john,
how did u solve this?
I'm doing byte by byte comparision of incoming response stream to construct different parts.....i'm wondering if there is any more effecient method..
Thanks,

Similar Messages

  • Multipart/mixed mime problems with mail

    So from what I've gathered Mail has problems with multipart/mixed mime type emails.
    I wrote a PHP script that sends customers their orders as a PDF attachment as well as the order processing department.
    If Mail doesn't support multipart/mime what is the alternative to use in my mime type to make my emails work?
    Is there another content type that I should be using?

    john,
    how did u solve this?
    I'm doing byte by byte comparision of incoming response stream to construct different parts.....i'm wondering if there is any more effecient method..
    Thanks,

  • Unable to read email content of type multipart/mixed....

    Hi i have written following code to read text content form the multipart email content type,
    but when i say
    if (content instanceof Multipart){
    System.out.println("############ Content Type is Multipart ############ ");
    messagePart = ((Multipart) content).getBodyPart(0);
    }the flow is not going into the if condition,
    bellow is the detailed code and the output in the console, you can check with the SOPs
    Part messagePart = message;
    content = messagePart.getContent();
    System.out.println("############ : " + content);
    System.out.println("############ START MESSAGE BODY ############");
    System.out.println(content);
    System.out.println("############ END MESSAGE BODY ############");
    if (content instanceof Multipart){
         System.out.println("############ Content Type is Multipart ############ ");
         messagePart = ((Multipart) content).getBodyPart(0);
    String contentType = messagePart.getContentType();
    System.out.println("############ CONTENT TYPE     : " + contentType);
    System.out.println("############ CONTENT TYPE     : " + contentType);
    if (contentType.startsWith("text/plain")) {
         System.out.println("############ Content Type is text/plain ############");
         InputStream is = messagePart.getInputStream();
         BufferedReader reader = new BufferedReader(new InputStreamReader(is));
         String thisLine = reader.readLine();
         while (thisLine != null) {
              actualMsg = actualMsg + thisLine + ".";
              thisLine = reader.readLine();
    System.out.println("############ SMS CONTENT      :" + actualMsg);
    System.out.println("/**********************Passing to E2SConverter********************/");
    And the output for the same
    Stack Trace*** Check for new mails on Mail Server for Processing ***
    ########## Unread Msg Count      : 1
    ########## FROM           : [email protected]
    ########## SUBJECT           : RE: SMS-5000-9969413222-S1221654991804 [T20080917000CS010Z246]
    **************** Checking Subject Line ****************
    ******* GO AHEAD IS TRUE : EMAIL TO SMS CONVERTER *******
    ############ : javax.mail.internet.MimeMultipart@1a2760f
    ############ START MESSAGE BODY ############
    javax.mail.internet.MimeMultipart@1a2760f
    ############ END MESSAGE BODY ############
    ############ CONTENT TYPE     : multipart/mixed; boundary=22902610.1221655198503.JavaMail.javamailuser.localhost
    ############ SMS CONTENT      :
    /**********************Passing to E2SConverter********************/
    Please help me for the same.. its bit urgent...
    Thanks And Regards,
    Amie...                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

    Yes,
    It's going into the if if block, but its giving me ClassCastException
    System.out.println("******* GO AHEAD IS TRUE : EMAIL TO SMS CONVERTER ******* ");
    Part messagePart = message;
    content = messagePart.getContent();
    System.out.println("############ : " + content);
    System.out.println("############ START MESSAGE BODY ############");
    System.out.println(content);
    System.out.println("############ END MESSAGE BODY ############");
    if (messagePart.isMimeType("multipart/*")) {
                   System.out.println("############ Content Type is Multipart ############ ");
                   messagePart = ((Multipart) content).getBodyPart(0); //GIVES EXCEPTION : ClassCastException at this line...
    String contentType = messagePart.getContentType();
    System.out.println("############ CONTENT TYPE     : " + contentType);
    See the Stack Trace..TAconnVect.size()25
    *** Check for new mails on Mail Server for Processing ***
    ########## Unread Msg Count      : 2
    ########## FROM           : [email protected]
    ########## SUBJECT           : SMS-5000-9969413222-S1221713640885 [T200809180003S070]
    ########## FROM           : [email protected]
    ########## SUBJECT           : SMS-5000-9969413222-S1221713740897 [T200809180004S070]
    **************** Checking Subject Line ****************
    ******* GO AHEAD IS TRUE : EMAIL TO SMS CONVERTER *******
    ############ : javax.mail.internet.MimeMultipart@1f7be7b
    ############ START MESSAGE BODY ############
    javax.mail.internet.MimeMultipart@1f7be7b
    ############ END MESSAGE BODY ############
    ############ Content Type is Multipart ############
    java.lang.ClassCastException: javax.mail.internet.MimeMultipart
         at com.interactcrm.SMSConverterClass.PollEmail.CheckEmails(PollEmail.java:327)
         at com.interactcrm.SMSConverterClass.PollEmail.run(PollEmail.java:98)
         at java.util.TimerThread.mainLoop(Unknown Source)
         at java.util.TimerThread.run(Unknown Source)
    - INFO : readMessage Checking for new messages in inbound table of ta database
    TAconnVect.size()25
    TAconnVect.size()25
    and Bellow is the internet header of the mail which i am trying to read.Received: from grameenphone.com ([10.10.29.153]) by neptune.grameenphone.com with Microsoft SMTPSVC(6.0.3790.3959);
         Thu, 18 Sep 2008 10:55:52 +0600
    Date: Thu, 18 Sep 2008 04:55:52 GMT
    From: [email protected]
    Subject: =?us-ascii?B?U01TLTUwMDAtOTk2OTQxMzIyMi1TMTIyMTcxMzc0MDg5NyBbVDIwMDgwOTE4MDAwNFMwNzBd?=
    To: [email protected]
    MIME-Version: 1.0
    Content-Type: multipart/mixed; boundary="20238918.1221131600666.JavaMail.SYSTEM.ipcc-test3"
    Return-Path: [email protected]
    Message-ID: <[email protected]>
    X-OriginalArrivalTime: 18 Sep 2008 04:55:52.0114 (UTC) FILETIME=[D35D2120:01C9194A]
    Edited by: Amie on Sep 18, 2008 10:29 AM
    Edited by: Amie on Sep 18, 2008 10:36 AM                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Multipart/mixed content: html, pdf

    Hi.
    I have a problem sending multipart content back to a browser through the response object.
    What I want is to send a "Please be patient" html page while a pdf is created and send it as a second part as soon as it is created and can't get it to work.
    The problem is, the pdf just does not show up. The html sent first is removed from display, the plugin starts but then nothing happens and I end up with a blank browser window.
    Code snippet:
    response.setContentType( "multipart/mixed;boundary=" + boundary );
    ServletOutputStream outStream = response.getOutputStream();
    response.addHeader( "MIME-Version", "1.0" );
    outStream.println( "" );
    outStream.println( "--" + boundary );
    response.addHeader( "Content-Type", "text/html" );
    response.addHeader( "Content-Transfer-Encoding", "chunked" );
    outStream.println( "" );
    outStream.println( "<html>" );
    outStream.println( "<head><title>Supplier Info</title></head>" );
    outStream.println( "<body>" );
    outStream.println( "<p>Please be patient...</p>" );
    outStream.println( "</body></html>" );
    outStream.println( "" );
    outStream.println( "--" + boundary );
    outStream.flush();
    // create pdf and write it into a byte array called 'result'
    response.addHeader( "Content-Type", "application/pdf" );
    response.addHeader( "Content-Transfer-Encoding", "chunked" );
    response.addHeader( "Content-Disposition", "inline" );
    outStream.println( "" );
    System.out.println( "result.length: " + result.length ); //result contains data!
    outStream.write( result );
    outStream.println( "" );
    outStream.println( "--" + boundary + "--" );
    outStream.println( "" );
    outStream.flush();
    Please could somebody tell me what's wrong with my code? Am I missing something?
    My environment is Win2k, Borland JDev 3.2.3, Mozilla 1.0.
    TIA
    Ralf Steppacher

    try this
    Response.reset()
    before setting the content type
    prash

  • CFMAIL Attached vs. embedded (cfmail, multipart/mixed)

    I want to send a mail which has a PDF attachment and an embedded image. When I send them both with cfmailparam (with correct disposition) they arrive in the email as attachments in the body...you don't get the little email paperclip attachment icon.
    When I tried using mimeattach for the PDF it did work!...but the image denoted with cfmailparam also came through like that. So I looked the email headers of both and the good one was Content-Type: multipart/mixed; while the bad one was "multipart/related".
    So how can I make cfmailparam send it as multipart/mixed? (if that's even the right question...maybe I should stick with mimeattach and do something else?)
    Thanks Folks' - Randy

    I never found a solution using cfmail.  I had to resort to java instead.
    I have all of my file information (including content) in a query called qFiles and loop through that in the code below.
    <cfscript>
        // config will stay this way
        emailServer = serverAddressHere;
        emailServerAccount = "";
        emailServerPwd = "";
        //  set email variables
        vSentFrom = sentFromEmailHere;
        vSubjectText = subjectHere;
        recipientsTo = listToArray( SentToListHere );
        recipientsCC = listToArray( CCListHere );
        recipientsBCC = listToArray( BCCListHere );
        // set javamail properties
        props = createObject("java", "java.util.Properties").init();
        props.put("javax.mail.smtp.host", emailServer);
        // get static recipient types
        recipientType = createObject("java", "javax.mail.Message$RecipientType");
        // create the session for the smtp server
        mailSession = createObject("java", "javax.mail.Session").getInstance(props);
        // create a new MIME message
        mimeMsg = createObject("java", "javax.mail.internet.MimeMessage").init(mailSession);
        // create the to and from e-mail addresses
        addrFrom = createObject("java", "javax.mail.internet.InternetAddress").init(vSentFrom);
        for (cfIdx = 1; cfIdx LTE arrayLen( recipientsTo ); cfIdx++)
            addrTo[cfIdx] = createObject("Java", "javax.mail.internet.InternetAddress").init( recipientsTo[cfIdx] );
            // add a recipient
            mimeMsg.addRecipient(recipientType.TO, addrTo[cfIdx]);
        if(ArrayLen(recipientsCC)){
            for (cfIdx = 1; cfIdx LTE arrayLen( recipientsCC ); cfIdx++)
                addrCC[cfIdx] = createObject("Java", "javax.mail.internet.InternetAddress").init( recipientsCC[cfIdx] );
                // add a recipient
                mimeMsg.addRecipient(recipientType.CC, addrCC[cfIdx]);
        if(ArrayLen(recipientsBCC)){
            for (cfIdx = 1; cfIdx LTE arrayLen( recipientsBCC ); cfIdx++)
                addrBCC[cfIdx] = createObject("Java", "javax.mail.internet.InternetAddress").init( recipientsBCC[cfIdx] );
                // add a recipient
                mimeMsg.addRecipient(recipientType.BCC, addrBCC[cfIdx]);
        // build message
        // set who the message is from
        mimeMsg.setFrom(addrFrom);
        // set the subject of the message
        mimeMsg.setSubject(vSubjectText);
        // create multipart message: only needed if you're including both plain/text and html
        // or using attachments
        multipart = createObject("java", "javax.mail.internet.MimeMultipart").init();
        // specifies that the message contains both inline text and html, this is so that
        // images given a cid will show up when rendered by the e-mail client
        multipart.setSubType("mixed");
        // create html text multipart
        oHtml = createObject("java", "javax.mail.internet.MimeBodyPart").init();
        // add the html content (the setText() method shortcut/only works for "plain/text")
        oHtml.setContent( emailContentHTML, "text/html");
        // add the body part to the message
        multipart.addBodyPart(oHtml);
        // loop over files to attach to the email
        for ( intRow = 1 ; intRow LTE qFiles.RecordCount ; intRow = (intRow + 1))
        // set file info to vars
        fileContent = qFiles["fileContent"][intRow];
        fileMimeType = qFiles["mimeType"][intRow];
        fileName = rereplace( qFiles["filename"][intRow] , '(?!\.[^.]*$)\W' , '' , 'all' );
        if(len(fileName) > 50)
        {fileName = mid(fileName,1,44) & right(fileName,find('.',reverse(fileName)));}
        // attach an inline binary object
        att = createObject("java", "javax.mail.internet.MimeBodyPart").init();
        // create an octet stream out of the binary file
        os = createObject("java", "org.apache.axis.attachments.OctetStream").init(fileContent);
        // we now convert the octet stream into the required data source. using an octet stream
        // allows us pass in any binary data as a file attachment
        osds = createObject("java", "org.apache.axis.attachments.OctetStreamDataSource").init("", os);
        // initialize the data handler using the data source
        dh = createObject("java", "javax.activation.DataHandler").init(osds);
        // pass in the binary object to the message--javamail will handle the encoding
        // based on the headers
        att.setDataHandler(dh);
        // define this binary object as a PDF
        att.setHeader("Content-Type", fileMimeType);
        // make sure the binary data gets converted to base64 for delivery
        att.setHeader("Content-Transfer-Encoding", "base64");
        // specify the binary object as an attachment
        att.setHeader("Content-Disposition", "attachment");
        // define the name of the file--this is what the filename will be in the e-mail client
        att.setFileName(fileName);
        // add the body part to the message
        multipart.addBodyPart(att);
        //end loop through qFiles
        // place all the multi-part sections into the body of the message
        mimeMsg.setContent(multipart);
        // in this section we'll build the message into a string. you could dump
        // the string to a file in most SMTP server's queue file for delivery
        // this is exactly what would be pass to the SMTP server
        // create a bytearray for output
        outStream = createObject("java", "java.io.ByteArrayOutputStream");
        // create a budder for the output stream
        outStream.write(repeatString(" ", 1024).getBytes());
        // save the contents of the message to the output stream
        mimeMsg.writeTo(outStream);
        // save the contents of the message to the sMailMsg variable
        sMailMsg = outStream.toString();
        // reset the output stream (for stability)
        outStream.reset();
        // close the output stream
        outStream.close();
        // create a transport to actually send the message via SMTP
        transport = mailSession.getTransport("smtp");
        // connect to the SMTP server using the parameters supplied; use
        // a blank username and password if authentication is not needed
        transport.connect(emailServer, emailServerAccount, emailServerPwd);
        // send the message to all recipients
        transport.sendMessage(mimeMsg, mimeMsg.getAllRecipients());
        // close the transport
        transport.close();
        </cfscript>

  • Can't read Messages with Content-Type multipart/mixed

    For many years I have used „QuickMail Pro“, as my favorite Mail-Client. Now I had switch to Apple Mail. I hoped, to be more compatible to other „modern“ Mail-Clients. So could it be, that Apple Mail can not read Messages from Type <multipart/mixed>? I only see the Header-Information and instead of the Message-Text there is only an Error-Message:
    <Diese E-Mail kann aufgrund ihrer Formatierung nicht angezeigt werden. Bitten Sie den Absender, Ihnen die E-Mail erneut in einem anderen Format bzw. mit einem anderen E-Mail-Programm zu senden.
    multipart/mixed>
    Did anyone know a simple Way, to read this Messages.
    My old QuickMail has no Problem with this Type.

    Hi Ruchi,
    You need to use Java Mapping or UDF to create Multipart/Mime
    Check this excellent blog by stefan.
    http://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/6321
    Also check this thread for your solution
    http://forums.sdn.sap.com/message.jspa?tstart=0&messageID=945095

  • Is it possible to create a multipart/alternative in a multipart/mixed email

    Hi,
    does somebody know how can I build a multipart/mixed email in which one of the parts is a multipart/alternative on its own? I cannot figure it out.
    Multipart has addBodyPart(BodyPart part) to add parts, but the added part cannot be a multipart from what I see, am I missing something?
    thanks in advance
    jm

    does somebody know how can I build a multipart/mixed email in which one of the parts is a multipart/alternative on its own? I cannot figure it out.
    Multipart has addBodyPart(BodyPart part) to add parts, but the added part cannot be a multipart from what I see, am I missing something?Create another MimeBodPart and set the content of that part to be the MimeMultipart. for
    the multipart/alternative. Then add that MimeBodyPart to the outer MimeMultipart for the
    multipart/mixed.

  • How to read the multipart/realted mime type message.

    hello, sir
    please tell me,
    how to read the multipart/realted message.
    which are the subpart are included in the "multipart/related" message
    i know only "multipart/mixed" and i know how to read ,it contain the subpart ,
    1)text / plain
    2)text / html
    3)multipart/alternative
    a)text / plain
    but i don't know which are the subpart included in the "multipart/related " please tell me.
    thanks

    Today we rely on Simulink to perform parameterization of your designs in two ways:
    Parameterizable Subsystems and Blocks : Parameters themselves can be MATLAB expressions that need to be evaluated for which we need the MATLAB interpreter
    The very useful Rate and Type propagation or Simulink compilation that allows us to specify types & rates in one location that gets systematically propagated to all.
    To truly make the HDL Netlist that is generated from SysGen parameterizable, we would have to implement some of this capability in the HDL netlist itself by:
    Using Generics(VHDL) or Parameters(Verilog) - We would have to capture the bit width(type) propagation through levels of hierarchies and finally parameterize the IP itself based on this value
    Since IP itself does not have this capability through generics, we would have to package a separate tcl script that updates the IP parameterization appropriately in response to top level parameters(or GUI parameters)
    Interpreting MATLAB expressions and translating them into VHDL/Verilog expressions (alternatively tcl expressions of IP). In simulink, mask parameters can be passed from one level to the next. Also parameterization of a block can be composed of Matlab expressions using variables from ancestor masks & the MATLAB interpreter – so we will need to somehow capture that as well.
     

  • Multipart/mixed and multipart/relative Content type probs

    I tried to create a page from a servlet by using the multipart/mixed
              Content-type.
              All that is displayed inside the browser is the actual code including the
              headers for the single parts of the page. I also checked it on the byte
              level, getting the same results.
              Does anybody have an idea ?
              Thank you very much ,
              Tom
              

    Are you setting the content type prior to each response (i.e.
              out.println("Content-type: text/html\n");)?
              Below is an example (untested, but should work):
              // Global constants
              static final String BOUNDARY_STR ="Joe";
              static final String BOUNDARY = "--"+BOUNDARY_STR;
              static final String BOUNDARY_END = BOUNDARY+"--";
              // Inside of doGet
              res.setContentType("multipart/mixed;boundary="+BOUNDARY_STR);
              ServletOutputStream out = res.getOutputStream();
              // First Response
              out.println(BOUNDARY);
              out.println("Content-type: text/html\n");
              out.println("<html>\n");
              out.println("<head>\n");
              out.println("<title>First Response</title>\n");
              out.println("</head>\n");
              out.println("<body>\n");
              out.println("<h1>First Response</h1>\n");
              out.println("</body>\n");
              out.println("</html>\n");
              out.println(BOUNDARY);
              out.flush();
              // Second Response
              out.println(BOUNDARY);
              out.println("Content-type: text/html\n");
              out.println("<html>\n");
              out.println("<head>\n");
              out.println("<title>Second Response</title>\n");
              out.println("</head>\n");
              out.println("<body>\n");
              out.println("<h1>Second Response</h1>\n");
              out.println("</body>\n");
              out.println("</html>\n");
              out.println(BOUNDARY);
              out.flush();
              // Done
              out.println(BOUNDARY_END);
              out.flush();
              Thomas Schmitt wrote in message <[email protected]>...
              >I tried to create a page from a servlet by using the multipart/mixed
              >Content-type.
              >All that is displayed inside the browser is the actual code including the
              >headers for the single parts of the page. I also checked it on the byte
              >level, getting the same results.
              >Does anybody have an idea ?
              >Thank you very much ,
              >Tom
              >
              >
              

  • Support for multipart/mixed on iOS Mail

    I subscribed what here is called "Certified Electronic Mail" (italian: PEC - Posta Elettronica Certificata), which has the same value as registered mail.
    When I receive an email, I can see all the metadata, but not the message itself, which should be an .eml attachment.
    In the footer there's only a message which tells (it's a translation): "This message cannot be shown because of the format used. Ask the sender to send it again using a different format and/or a different email client.
    multipart/mixed".
    Is it true that iOS cannot read multipart/mixed messages?
    My PEC provider uses this format only.
    Thank you.

    Hi Paolo,
    I work for an IT company whose focus is on mailing and PEC systems, so after reading your post I've done some tests with my own PEC accounts.
    I've noticed that iOS (test platform was 4.3.3 on an iPhone4) has indeed some problems in reading PEC messages, and this seem to be connected with the multipart/mixed content-type. If you do a quick search in the forums, you will find that this type is infact not supported by iOS , and this is why we are getting the error. During my tests, depending on the PEC Provider that hosted the sender, I got different behaviours: sometimes I didn't get any error at all, but still I was unable to see the postacert.eml attachment containing the text of the original message.
    Unfortunately the PEC regulations in Italy force the provider to build the message using this multipart/mixed structure, so I guess we will not be able to read PEC messages on our iPhones until Apple fix this.
    By the way, I am going to do some more tests to understand why I am getting such different results depending on the provider. I'll keep you updated should I find a workaround.
    Regards,
    Claudio Tassini
    Tech Advisor @Babel Srl

  • Why isn't multipart/mixed supported in Mail?

    If I'm not mistaken multipart/mixed content types aren't supported in Mail.app and I'm told I should be using multipart/alternative despite the difference in the actual content for each part. In my case I have some text content and an rfc822 context so I figure I'm typing the thing correctly since Mail.app under OSX displays the rfc822 inline but the phone's Mail client simply complains.

    Just wanted to echo this post. Given that a lot I people keep on sending multipart/mixed messages, I have to say that simply not displaying them is very disappointing.
    The problem is that there are no alternatives whatsoever. Ok mail.app does not support it, but at least let the user download the source. I had my electronic tickets sent to me in such a message and had to figure out how the henk and when I can get my fligt having a dumb mail.app telling me that it won't download the rest. Come on!!! That's so frustrating.
    In my experience about 10% of mails are multipart mixed. Do you see me telling to my customers to use another mail programme? Please improve this one.

  • Mail Problem with multipart/mixed Content, "empty mails" via IMAP

    I do need some help.
    Here is my setup. I have a OSX Mountain Lion Server with the mail service running. fetchmail is collecting mail from a pop account. I have two Mac clients - one with Outlook for Mac, one with Apple Mail,
    Everything is fine exept...
    ... if I receive a mail from an Exchange Server with a PNG-Image in the signature (e.g. a company logo) then...
    ... this mail will be displayed as an empty mail. Correctly spoken, the mail header is there, but the mail body ist not shown. The body is there - I can see it if I swich to the raw view in mail.
    So I tried to figure out what the reason might be. I also tried several ideas from other discussions here - without success.
    This error is concerning only mails with the Content-Type: multipart / mixed - coming from Exchange Servers. The mail body is not displayed. It seems to be that something is corupptung the IMAP Envelope of these mails.
    - Is it a security problem?
    - Is it a filtering problem?
    - Is it a settings problem in Apple Mail and Outlook for Mac?
    - Is it a settings problem in fetchmail?
    I don't know... I think it is a settings problem in the main.cf - but I don't know what to do.
    Can anybody help???
    Kind regards,
    Robert.

    Problem solved!
    It was a bug in fetchmail. Try out the version 6.3.26. You have to compile fetchmail yourself... it is not a great thing. And everything is working.
    http://developer.berlios.de/project/shownotes.php?group_id=1824&release_id=19356
    Robert

  • Difference between multipart/mixed and alternative or ralted

    Can anyone tell me what's the difference between multipart/mixed and /alternative and ralted .
    How the parse method works ?
    Thanks a lot .

    The "multipart/alternative" type is syntactically identical to "multipart/mixed", but the semantics are different. In particular, each of the body parts is an "alternative" version of the same information.
    RFC 2046

  • E-Mail recevier with Content-Type: multipart/mixed

    Hi All,
    I am working on proxy to Mail scenario, wherein Pi is receiving data from SAP over proxy, creating a csv of the data and sending it to recipient as the email with the attachment.
    The User is saying that he wants the email content type as Multipart MIME format. I have searched on SDN and web, but couldnu2019t find how to implement in PI.Please provide your inputs.
    Thanks in advance,
    Ruchi

    Hi Ruchi,
    You need to use Java Mapping or UDF to create Multipart/Mime
    Check this excellent blog by stefan.
    http://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/6321
    Also check this thread for your solution
    http://forums.sdn.sap.com/message.jspa?tstart=0&messageID=945095

  • 2 levels of MIME attachments in SOAP message

    Hello,
    I'm not a java specialist, and i want to know a few things before i start something wich eventually turns out impossible to do.
    i want to create a SOAP message with one attachment. this attachment must be a multipart/mixed MIME message itself:
    -- Part1
    soapxml
    -- Part1 (1 SOAP attachment = MIME message)
    Content-Type: multipart/mixed; boundary:"Part2"
    -- Part2
    subAttachA
    -- Part2
    subAttachB
    -- Part2
    subAttachC
    --Part2
    --Part1
    * first of all: should i use a MimeBodyPart objects for subAttachX and create it with MimeMultiPart.createMimeBodyPart() ?
    - that MimeMultiPart i create like this: new MimeMultiPart("mixed") ?
    - THIS IS THE MOST IMPORTANT: how do i get this MimeMultiPart into the SOAP attachment part ?
    could this work:
    //MimeMultipart extends MultiPart + constr: new MimePartDataSource(MultiPart part)
    MimePartDataSource mds = new MimePartDataSource(MimeMultiPart multipart);
    //MimePartDataSource extends DataSource + constr: DataHandler(DataSource ds)
    DataHandler dh = new DataHandler(mds);
    //will the following line automatically set: Content-Type: multipart/mixed; boundary:"Part2"
    //if not, how can i obtain the boundary (="Part2")
    AttachmetPart ap = soapMessage.CreateAttachmetPart(dh);
    //will i still be able to set the Content-Id
    ap.setContentId("miID");
    All help greatly appreciated,
    Pieter

    Did you already tried the way i described ?
    because i can't start untill another question is answered, maybe you know the answer:
    http://forum.java.sun.com/thread.jsp?forum=34&thread=351252

Maybe you are looking for

  • What time will the 2012 iMac be released on Nov. 30

    So Apple announced that the new 2012 iMac will be available this Friday, Nov. 30 and I want to know the exact time it will go on sale so I can purchase it online. Will it be at midnight (pacific time) or like when stores open up in the morning? Any n

  • Working with HR replication after using local org. structure

    Hello SRM Gurus, My client have implemented the HR module in ECC 5 and want to use it for replicating it to SRM 4.0. We're in PROD (using the extended classic scenario) for over a year using a local SRM org. structure. Have any one encountered with t

  • Do not use Portal with SRM 7 ?

    Hi experts We use SRM 7.0 with SAP Entreprise Portal. We are in Support Package 5, we want to not use any more the Portal with SRM 7. How to be able to not use Portal and only use SRM web client? Thank you. Regards, Peggy.

  • How to update field when check box checked

    Hi All, I am using oracle Forms 10g, I have a block with 20 fields.So first 10 Fields are not updatable and remaining are Editable. So the user will enter the Data and changes the data.And check the Check box and save the data. Inside the save button

  • Youtube and Playback Display too Small on Surface Pro 3

    On my new Surface Pro 3 the display and playback of YouTube, Netflix, and most sites is miniature if not completely too small to use at all. The issue only arises on Firefox and since it is my browser of choice, I am desperate for a solution.