Parsing mime message using MimeMessage seems to do nothing.

I've loaded a mime message into a string, and I'm trying to parse it into a MimeMessage object, but it doesn't appear to do anything useful with it - it doesn't fail, but it just doesn't do anything!
A segment of the code:
System.out.println( "String size: " + msgTxt.length() );
System.out.println( msgTxt );
msg = new MimeMessage( session, new ByteArrayInputStream( msgTxt.getBytes() ) );
System.out.println( "Class:" + msg.getContent().getClass().getName() );
System.out.println( "Sender: " + msg.getSender() );
System.out.println( "Content type: " + msg.getContentType() );
System.out.println( "Subject: " + msg.getSubject() );
System.out.println( "Lines: " + msg.getLineCount() );
produces the following:
String size: 1425
Return-Path: <[email protected]>
Received: from cs.ucl.ac.uk by lancaster.nexor.co.uk via JANET with NIFTP (XTPP) id
<[email protected]>; Thu, 5 Jan 1995 17:46:35 +0000
To: <IETF-Announce:;>
From: [email protected]
Subject: I-D ACTION:draft-ietf-mailext-pipeline-01.txt
Date: Thu, 05 Jan 95 10:53:24 -0500
Message-ID: <[email protected] I.Reston.VA.US>
Mime-Version: 1.0
Content-type: Multipart/Mixed; boundary="NextPart"
--NextPart
Content-type: text/plain; charset="us-ascii"
A Revised Internet-Draft is available from the on-line Internet-Drafts directories.
This draft is a work item of the Mail Extensions Working Group of the IETF.
Title : SMTP Service Extension for Command Pipelining
Author(s) : N. Freed, A. Cargille
Filename : draft-ietf-mailext-pipeline-01.txt
Pages : 9
Date : 01/04/1995
This memo defines an extension to the SMTP service whereby a server can indicate
the extent of its ability to accept multiple commands in a single TCP send operation.
Using a single TCP send operation for multiple commands can improve SMTP
performance significantly.
--NextPart
Content-type: Message/External-body;
name="draft-ietf-mailext-pipeline-01.txt";
site="ds.internic.net"; access-type="anon-ftp"; directory="internet-drafts"
Content-Type: text/plain
Content-ID: <[email protected]>
--NextPart
Class:java.lang.String
Sender: null
Content type: text/plain
Subject: null
Lines: -1
Am I missing the point here, or should it have parsed a mutipart body?
Any suggestions as to what I'm doing wrongly would be greatly appreciated.
Thanks!

What chance did I have - my program was adding a blank line to the msgTxt string at the beginning, and then when I'd sorted that out, my sample mime message has blank lines after each separator so of course it didn't work.
Thanks for seeing that the problem actually was the "almost invisble", which is perhaps why I'd overlooked it so many times, and why something that should have been simple, seemed to be so excruciatingly difficult!

Similar Messages

  • Parsing MIME message

    Hi,
    I have a saved email message in MIME format. Some of the emails have attachments encoded using base64. I want to parse the message and extract these attachments.
    I started doing this in my class by looking for pattern only to realize that these messages are based on some RFC standard. So without knowing this standard well, my class is going to work only some of the time.
    Perhaps there is an existing API to parse the MIME message and get the attachments. Can anyone can tell me where I can find such API?
    Thanks.

    Looking at the docs, it seems that it requires a session object, but I already have the message as stream. Can it work without a session?

  • Parsing MIME message and Constructing a MIME message

    Hi All,
    I want to formulate a MIME message in NetweaverXI. The MIME messsage will contain a cXML and an attachment. Then send the message to a JCA adapter.
    Similarly when the JCA adapter sends a MIME message i want to parse it and get access to each part of the MIME message.
    Is there any support available for MIME in NetweaverXI? Are there any sample examples for the same?
    The message will be in the below format.
    --Bouundary
    Content-Type: text/xml; charset=UTF-8
    Content-ID: 1255070783528.1638087094
    <cXML>
    <Attachment>
    <url> AAAAA</url>
    </Attachment>
    </cXML>
    --Bouundary
    Content-Type: text/xml; charset=UTF-8
    Content-ID: AAAAA
    Attachment
    Bouundary
    Any help will be really appreciated.
    Thanks

    Hi Ameeth,
    Please check the link below:
    /people/stefan.grube/blog/2007/04/17/xi-mail-adapter-an-approach-for-sending-emails-with-attachment-with-help-of-java-mapping
    Also, Mail can be processed using Java Mail API. Below is the code snippet send mail.
         public static boolean sendMail(String mailHost, String toAddress ,String fromAddress, String ccAddress,String subject,String mailbody,String attachmentContent,String attachmentName,MessageKey messageKey, AuditAccess audit) throws MessagingException{
              String subloc = "JavaMailSender.sendMail()";
              PIFTWrapper.entering(subloc);
              audit.addAuditLogEntry(messageKey, AuditLogStatus.SUCCESS, "Sending Mail to SMTP server");
              Properties properties = new Properties();
              properties.setProperty("mail.smtp.host", mailHost);
              Session session = Session.getInstance(properties,null);
              MimeMessage mimeMessage = new MimeMessage(session);
              mimeMessage.setFrom(new InternetAddress(fromAddress));
              mimeMessage.setRecipients(RecipientType.TO, toAddress);
              mimeMessage.setRecipients(RecipientType.CC, ccAddress);
              mimeMessage.setSubject(subject);
              mimeMessage.setSentDate(new Date());
              MimeBodyPart contentMimeBodyPart = new MimeBodyPart();
              contentMimeBodyPart.setDisposition(MimeMessage.INLINE);
              contentMimeBodyPart.setText(mailbody);
              MimeBodyPart attachmentMimeBodyPart = new MimeBodyPart();
              attachmentMimeBodyPart.setDisposition(MimeMessage.ATTACHMENT);
              attachmentMimeBodyPart.setFileName(attachmentName);
              attachmentMimeBodyPart.setText(attachmentContent);
              Multipart multipart = new MimeMultipart();
              multipart.addBodyPart(contentMimeBodyPart);
              multipart.addBodyPart(attachmentMimeBodyPart);
              mimeMessage.setContent(multipart);
              mimeMessage.saveChanges();
              Transport.send(mimeMessage);
              PIFTWrapper.exiting();
              audit.addAuditLogEntry(messageKey, AuditLogStatus.SUCCESS, "Mail Sent");
              return true;
    Similar processing can be done using Java Mail API for incomming messages.
    Regards,
    Sumant
    Edited by: SumantKRaja on Oct 20, 2009 8:07 AM

  • Getting javax.mail.internet.ParseException when parsing MIME message

    Hi All,
    The MIME Content Type is as below.
    Content-Type: application/pdf;
    name="ecm-000669.pdf";
    Content-Disposition: attachment;
    filename="ecm-000669.pdf";
    When executing the following statement
    ContentType ct = new ContentType(contentType);
    where contentType is application/pdf;
    name="ecm-000669.pdf";
    Getting the below error
    javax.mail.internet.ParseException
         at javax.mail.internet.ParameterList.<init>(ParameterList.java:61)
         at javax.mail.internet.ContentType.<init>(ContentType.java:83)
         at oracle.apps.fnd.wf.common.MIMEUtils.handleContent(MIMEUtils.java:488)
         at oracle.apps.fnd.wf.mailer.EmailParser.processSingleContent(EmailParser.java:1851)
         at oracle.apps.fnd.wf.mailer.EmailParser.parseBody(EmailParser.java:2166)
         at oracle.apps.fnd.wf.mailer.EmailParser.parseEmail(EmailParser.java:1195)
         at oracle.apps.fnd.wf.mailer.IMAPResponseHandler.processSingleMessage(IMAPResponseHandler.java:255)
         at oracle.apps.fnd.wf.mailer.IMAPResponseHandler.processMessage(IMAPResponseHandler.java:92)
         at oracle.apps.fnd.cp.gsc.SvcComponentProcessor.process(SvcComponentProcessor.java:659)
         at oracle.apps.fnd.cp.gsc.Processor.run(Processor.java:283)
         at java.lang.Thread.run(Thread.java:534)
    The error is not happening when I remove the semi colon at the end of content-type header as shown below
    Content-Type: application/pdf;
    name="ecm-000669.pdf"
    Can you please tell that semi colon at the end of Content-Type header is not supported in MIME standard? This MIME is coming from the rediff email client. Is there any parameter in Java Mail API to avoid these kind of issues?

    Yes, a trailing semicolon violates the MIME syntax spec.
    You can work around this bug in the client by setting the System property "mail.mime.parameters.strict" to "false",
    as described here: http://javamail.kenai.com/nonav/javadocs/javax/mail/internet/package-summary.html

  • How to send digitally sign S/MIME messages with Powershell cmdlet Send-MailMessage?

    Hello,
    using AD Windows PKI I assigned a certificate EKU (1.3.6.1.5.5.7.3.4) to sign emails and get this with
    autoenrollment also to my CERT Store PS
    CERT:\CurrentUser\UserDS\ or the certificate could found via MMC / certificates in the store structur under "Active Directory User Object".
    Signed messages (red icon) to send as S/MIME message using Outlook 2010 is not a problem.
    Using PowerShell cmdlet Send-MailMessage to be sent company notification for a new passwordpolicy some days before pwd expired?! I use the cmdlet already successfully to filling HTML bodies with variables and send to individuals accounts.
    Reduced simplified PS code:
    $SMTPBodyHtmlTemplate = Get-Content "C:\PS\Template\HTMLBody.html" | Out-String
    Function SendEmailNotification # /* SEND E-MAIL Notification to User */#
    [string] $SMTPServer = "mail.domain.local"
    $CurrentUser = "$env:username"
    [string]$SMTPFrom = (Get-ADUser $CurrentUser -properties mail).mail
    [string[]] $SMTPTo = $($Obj.EmailAddress)
    [string]$SMTPSubject = "Notification!"
    [String]$SMTPBodyHtml = $SMTPBodyHtmlTemplate.Replace("UserDisplayname","$($UserDisplayname)")
    Send-MailMessage -From $SMTPFrom -To $SMTPTo -Subject $SMTPSubject -BodyAsHtml $SMTPBodyHtml -dno OnFailure -SmtpServer $SMTPServer -encoding ([System.Text.Encoding]::UTF8) -ErrorAction Continue
    How can I use the PSDrive own CERT and using PowerShell cmdlet Send-MailMessage
    to send a signed message, without development experience?
    Thanks in advance for cooperation.
    Manfred Schüler

    Hi,
    could create with an other colleague a DLL file (with this informations) for successfully sending sign messages from PS-Script. 
    Function SendEmailNotification # /* SEND SIGN E-MAIL */#
    $SMTPBodyHtmlTemplate = Get-Content "C:\PS\Template\HTML.html" | Out-String
    [System.Reflection.Assembly]::LoadFile("C:\PS\Assembly\Cpi.Net.SecureMail.dll") | Out-Null
    [string]$strSmtpServer = "smtp.domain.local"
    [string]$strSmtpPort = "25"
    [string]$strFrom = (Get-ADUser $CurrentUser -properties mail).mail
    [string]$strFromAlias = (Get-ADUser $CurrentUser -properties DisplayName).DisplayName
    [string]$strTo = $UserEmailAddress
    [string]$strToAlias = $UserEmailDisplayName
    [String]$strSubject = "Subject as you like"
    [string]$strBody = $SMTPBodyHtmlTemplate.Replace("UserDisplayname","$($UserDisplayname)")
    $objMail = New-Object Cpi.Net.SecureMail.SecureMailMessage
    $objFrom = New-Object Cpi.Net.SecureMail.SecureMailAddress($strFrom,$strFromAlias,$objCert,$objCert)
    $objTo = New-Object Cpi.Net.SecureMail.SecureMailAddress($strTo,$strToAlias)
    $objMail.From = $objFrom
    $objMail.to.Add($objTo)
    $objMail.Subject = $strSubject
    $objMail.Body = $strBody
    $objMail.IsBodyHtml = $TRUE
    $objMail.IsSigned = $TRUE
    $objMail.IsEncrypted = $FALSE
    $objSMTPClient = New-Object System.Net.Mail.SmtpClient($strSmtpServer,$strSmtpPort)
    $objSMTPClient.Credentials = [System.Net.CredentialCache]::DefaultNetworkCredentials
    $objSMTPClient.send($objMail)
    Maybe Microsoft can implement this in future versions of the cmdlets Send-MailMessage ;-)
    Manfred Schüler

  • XML parsing on messages over socket

    Hi,
    My java client gets the XML messages from server over a socket and I want to parse the message using the function parse(InputStream in) (for DOM parser) or parse(InputStream in, DefaultHandler h) (for SAX). But both these parsers are hanging and are waiting for end-of-file character which I guess is not possibl to send over a socket without closing the socket.
    Is there any way of making the parser not hang for input.
    Thanks
    Jeevan

    Have you tried to add the end of file character manually?
    // Some code left out here...
    char eof = (char)0x1A;
    // myXMLDocument is the document you want to send
    myXMLDocument += eof;
    //out is a PrintWriter object based on your OutputStream
    out.println(myXMLDocument);This worked for me!
    Regards,
    Erik.

  • Issue while parsing the chinese character from Mime Message

    Hi,
    I have a issue with the chinese characters while parsing the mime message (MimeBodypart). In the MimeMessage charset is mentioned as "gb2312". i am using the MimeBodyPart.getContent() to get the content. When mimetype is html, it will be uploaded as a file to an FTP site (wapache commons net - ftp client). When uploaded file is viewed, the content is displayed as garbage text.
    i tried the following but it didnt work. i got the inputstream from the Mimebodypart. and then created InputStreamReader and used the encoding "GB18030" while initializing the content. i got the String out of it and stored in the file. i just replaced "Gb2312" with "UTF-8" in the html string. While creating the output file, i used the UTF-8 encoding. when opened this file using IE, it is displaying the character without any issues. i examined the file and the file encoding is UTF-8 as expected.
    but when i upload the file to FTP site and view, the text is not displayed correctly. It seems the file encodig is ANSI. i used the Notepad++ to examine these files. Please note that we use apache comments net - FTp client to upload the file.
    below are my questions:
    am i doing the right thing? it seems mime message was created using outlook.
    How to upload a file to FTp withe file base encoding is "UTF-8" or some other ?
    below are few references
    http://www.anyang-window.com.cn/tag/java-gb2312/
    JavaMail: Chinese Simplified Character Problem

    Thank you for the Replies. i am using the binary mode and it works fine for most of the files. i found that the issue here is not while uploading but the content itself. the characters present in the Mimemessge is not as per the charset. Hence i could not upload the content as it is. This happens only when charset is GB2312 (chinese). it seems that Mimemessage contains the characters which cannot be represented by Gb2312 but can be represented by Gb18030. Hence i converted the content using from Gb18030 to UTF-8 and created a file. i used the SetControlEncoding("utf-8") to upload the file and it is working fine.

  • A website I need to get information from returns a message stating that I do not have the most recent XML parser, and suggests using IE 5.5 or newer. This, of course, I have no intention of doing. Any suggestions?

    This is supposed to be an animated Help page. However, when Itry to click on it, it gives me the message:
    Your browser does not seem to have the most updated XML parser.
    Please use Microsoft Internet Explorer 5.5 or up for PointingTheWay features.
    System Can Not Proceed any further.

    Unfortunately, it's a member-only page, with member id and password required. I'm trying to contact their IT dept., but without much luck, so far!

  • Parser Error Message: It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level. This error can be caused by a virtual directory not being configured as an application in IIS.

    I've copied a .NET application from an older 2008 server running IIS 7.0.600.16386 to a newer 2008 R2 server running 7.5.7600.16385.  The .NET framework version is 4.0.30319.  I've setup an application pool and copied the wwwroot directory. 
    I've checked for nested web.config files and I've been reading a lot about converting the site to an application.  The older server running the application is still up and running and the configurations look identical.  If I convert the site to an
    application the icon changes and doesn't look like it does on the old server.  I'm new and still learning the basics of programming and publishing applications.  Can someone point me in the right direction?  I've been on google for a few days
    to no avail.  Thanks.
    Description:
    An error occurred during the processing of a configuration file required to
    service this request. Please review the specific error details below and modify
    your configuration file appropriately.
    Parser Error Message: It
    is an error to use a section registered as
    allowDefinition='MachineToApplication' beyond application level.  This error can
    be caused by a virtual directory not being configured as an application in IIS.
    Line 20:       <add path="Telerik.Web.UI.DialogHandler.aspx" type="Telerik.Web.UI.DialogHandler" verb="*" validate="false" />
    Line 21:     </httpHandlers>
    Line 22:     <authentication mode="Forms">
    Line 23:       <forms cookieless="UseCookies" loginUrl="~/AccessDenied.aspx" protection="All" name="TVHRFORMAUTH" timeout="180" slidingExpiration="true" />
    Line 24:     </authentication>

    Hi,
    I agree with Tim that we can ask for better help in the following IIS forum.
    IIS.NET forum
    http://forums.iis.net/
    Best regards,
    Frank Shen

  • Javax.mail.internet.ParseException when trying to send a MIME message

    Hi,
    I am using JavaMail to send a MIME message, but I am getting the following exception:
    at java.lang.Throwable.fillInStackTrace(Native Method)
    at java.lang.Throwable.fillInStackTrace(Compiled Code)
    at java.lang.Throwable.<init>(Compiled Code)
    at java.lang.Exception.<init>(Compiled Code)
    at javax.mail.MessagingException.<init>(MessagingException.java:34)
    at javax.mail.internet.ParseException.<init>(ParseException.java:27)
    at javax.mail.internet.ParameterList.<init>(Compiled Code)
    at javax.mail.internet.ContentType.<init>(ContentType.java:82)
    at javax.mail.internet.MimeBodyPart.updateHeaders(MimeBodyPart.java:1051)
    at javax.mail.internet.MimeMessage.updateHeaders(MimeMessage.java:1923)
    at javax.mail.internet.MimeMessage.saveChanges(MimeMessage.java:1904)
    at javax.mail.Transport.send(Transport.java:101)
    at FPSend.main(Compiled Code)
    The problem seems to be the header of the message, specifically the class-id filed of the content-type. This is the content-type header that causes javaMail to throw that exception:
    Content-Type: multipart/alternative;
    boundary="------------110059296832670";
    class-id=11:9sc9bnYwM87box:2680047
    I think the ":" character in the class-id is causing the problem. Does anybody know if those characters are valid according to MIME standards? And if they are not valid, is there a work around this problem?
    thank you!

    RFC 2046 doesn't mention the existence of the class-id parameter. But it does say this:Thus, a typical "multipart" Content-Type header field might look like this:
         Content-Type: multipart/mixed; boundary=gc0p4Jq0M2Yt08j34c0p
    But the following is not valid:
         Content-Type: multipart/mixed; boundary=gc0pJq0M:08jU534c0p
    (because of the colon) and must instead be represented as
         Content-Type: multipart/mixed; boundary="gc0pJq0M:08jU534c0p"From what I see elsewhere, Class-ID is a Microsoft extension. It wouldn't be surprising to find that Microsoft uses extensions that are incompatible with the MIME standards.

  • How to create an S/MIME message in Windows Phone 8?

    Hi!
    I am communicating with a backend that requires me to create on the Phone a message that follows the S/MIME standard. I have stored a public key in the IsolatedStorage on the phone, but I am not sure how to build the S/MIME message since there doesn't seem
    to exist any support for this in Phone 8 .NET framework.
    Does anyone have suggestions on how to accomplish this? There seems to be very little X509 support in Phone 8. I have talked to a fellow developer that did the Android app, and they used Bouncy Castle SMIME libraries (javamail) but these have not been ported
    to the C# version of Bouncy Castle.
    Any ideas? I have never built an S/MIME message before, but as far as I can tell it is a simple header-body design where the body can have a nested structure, and the body can also be encrypted.
    I ahve checked the
    http://social.msdn.microsoft.com/Forums/en-US/netfxnetcom/thread/74e4711e-1f66-43a7-9e3b-bc9cfbcd1b73/ post, and they use cms classes that doesn't exist in Phone 8... :(
    best regards
    /S
    Henrik

    If you want S/MIME support on Windows Phone, take a look at MimeKit (https://github.com/jstedfast/MimeKit) and MailKit (https://github.com/jstedfast/MailKit).
    MimeKit is a very fast and robust MIME parser implementation written in C# that uses BouncyCastle for the low-level cryptography and supports both S/MIME v3.2 and PGP.
    MailKit builds on top of MimeKit to add SMTP, POP3, and IMAP support.
    Both projects are completely open source and free for commercial use.

  • How to get the entire MIME message from a  BodyPart?

    Hi there,
    I am new to javaMail and quite lost with its way of working.
    I have a tool that creates SMIME stuff that needs to be put into MIME envelopes. In the same time I have to manage parsing of simple MIME messages.
    My current problem is the following:
    I have a BodyPart and I am testing if it is SMIME or not (with checks on the ContentType). If it is, then I want to retrieve the entire MIME message (I mean, the the whole text stuff with the headers and the -possibly- encoded64 content) as a String or a byte[]. But I haven't found anything in BodyPart that returns such a thing (everything is about the content). There might be writeTo() but it gives need an output stream that if piped in a pipedinputstream results in a dead lock...
    Help please!!
    Lionel

    hai
    i think you can use the methods in the MimeMessage to get the headers of the message
    by using any one the following
    1) getAllHeaders() use the enumeartion concept and then get the values for the headers using the getHeader(enum.getNextElements())
    2) or use the specific methods such as
    getFrom()
    getAllRecepients()
    getContentType()
    3) getHeader(string headername)
    bye

  • AS2 Adapter Error: Error while parsing AS2 message: AUTHENTICATION_ERROR #

    Hi,
    Following Scenario: Inbound.
    i have been receiving messages via Seeburger AS2 Adapter with the following Error message
    Error while parsing AS2 message: AUTHENTICATION_ERROR # 
    I have done the following in the AS2 adapter as per findings in the forum
    1. Unchecked the Authentication Required Flag.
    2. AS2 Certificates are fine.
    3. Use Authentication: Disabled (there is no authentication)
    even though every thing seems to be fine i am not able to receive messages successfully. Please let me know what could have gone wrong here.

    Hi Venkatesh,
    >> Everything is provided in the Sender Agreement. Partners Certificate, Self Encryption & Signing certificate
    How come you are using encryption when you are receiving the message. I think it might be decryption.
    1. Anyway please cross check whether you provide the following correct details in Sender agreement.
    Sender Configuration
    Authentication Certificate : Partner's public certificate.
    AS2 Receiver Configuration
    Decryption Key     :         Own private key.
    Signing Key          :         Own private key.
    2. Can you please check and tell in the Seeburger Monitoring for the incoming message, whether they are sending the message with encryption and signing? This you can check in the Seeburger Monitoring.

  • Convergence not displaying all of Mulitpart MIME messages

    Occasionally a message will come through, readable in IMAP, and even in Comms Express 6.3, but it's blank in Convergence 1u2.
    Invariably said message will always start with:
    "This is a multi-part message in MIME format."
    And in Convergence the rest of it is blank. Here's an example. The part that says "For those planning to go, Chotchky's at 5:30pm." is not visible in Convergence, but is visible over IMAP and in CE 6.3:
    Return-path: <[email protected]>
    Received: from mta4.school.edu ([10.1.106.74])
    by ms0.school.edu (Sun Java(tm) System Messaging Server 6.3-6.03 (built Mar
    14 2008; 32bit)) with ESMTP id <[email protected]> for
    [email protected]; Thu, 20 Aug 2009 16:37:13 -0400 (EDT)
    Original-recipient: rfc822;[email protected]
    Received: from lyris.school.edu ([130.68.1.204])
    by mta4.school.edu (Sun Java(tm) System Messaging Server 6.3-8.01 (built
    Dec 16 2008; 32bit)) with SMTP id <[email protected]> for
    [email protected] (ORCPT [email protected]); Thu,
    20 Aug 2009 16:37:13 -0400 (EDT)
    Message-id:
    <LISTMANAGER-439878-20171-2009.08.20-16.37.06--me#[email protected]>
    Date: Thu, 20 Aug 2009 16:33:11 -0400
    From: Veep Headguy <[email protected]>
    Reply-to: Veep Headguy <[email protected]>
    Organization: School
    User-Agent: Thunderbird 2.0.0.22 (Windows/20090605)
    MIME-version: 1.0
    To: Information Technology <[email protected]>
    Subject: [msu-it-all] End of summer gathering
    Content-type: multipart/mixed; boundary=------------040003060804070804070803
    List-Unsubscribe: <mailto:[email protected]>
    --------------040003060804070804070803
    Content-Type: text/plain; charset="us-ascii"
    Content-description: header
    --------- Information Technology mailing list --------
    This is a multi-part message in MIME format.
    --------------040003060804070804070803
    Content-Type: text/plain; charset=ISO-8859-1; format=flowed
    Content-Transfer-Encoding: 7bit
    For those planning to go, Chotchky's at 5:30pm.
    --------------040003060804070804070803
    Content-Type: text/x-vcard; charset=utf-8;
    name="vcard.vcf"
    Content-Transfer-Encoding: 7bit
    Content-Disposition: attachment;
    filename="vcard.vcf"
    begin:vcard
    ...snip...
    end:vcard
    --------------040003060804070804070803
    Content-Type: text/plain; charset="us-ascii"
    Content-description: footer
    Veep Headguy, CIO of School
    --------------040003060804070804070803--

    Shane,
    After a long delay I'm looking at this issue again and your initial argument for the bug doesn't seem to hold true. We've switched mailing list providers since, which has resolved the "space on blank line" issue and the incorrect placement of the "multi-part MIME" message (at least for messages sent in plain text). Convergence (1u3 now) takes the header MIME portion, duplicates it, and does not display the message content.
    As the message source appears:
    Content-type: multipart/mixed; boundary="----------=_1277239432-28582-15"
    This is a multi-part message in MIME format...
    ------------=_1277239432-28582-15
    Content-Type: text/plain; charset="UTF-8"; name="message-header.txt"
    Content-Disposition: inline; filename="message-header.txt"
    Content-Transfer-Encoding: 8bit
    MIME-Version: 1.0
    X-Mailer: MIME-tools 5.427 (Entity 5.427)
    ANYTHING YOU SAY CAN AND WILL BE USED AGAINST YOU IN A COURT OF LAWYERS
    ------------=_1277239432-28582-15
    Content-Type: text/plain; charset=UTF-8
    Content-Transfer-Encoding: 7bit
    Still delicious, though.
    Adam N. Copeland
    Office of Information Technology
    Systems and Security Group
    www.montclair.edu/~copelanda
    ------------=_1277239432-28582-15
    Content-Type: text/plain; charset="UTF-8"; name="message-footer.txt"
    Content-Disposition: inline; filename="message-footer.txt"
    Content-Transfer-Encoding: 8bit
    test-copelanda
    Your favorite chewing gum is coming back into style! Football.
    ------------=_1277239432-28582-15--How the message appears in Convergence:
    ANYTHING YOU SAY CAN AND WILL BE USED AGAINST YOU IN A COURT OF LAWYERS **************************************************************************************************************
    ANYTHING YOU SAY CAN AND WILL BE USED AGAINST YOU IN A COURT OF LAWYERS **************************************************************************************************************
    test-copelanda Your favorite chewing gum is coming back into style! Football.

  • Constructing MIME message in BPEL

    Hi,
    I want to construct a MIME message in BPEL. This MIME message will have a cXML and an attachment. How can i do this? Are there any standard schemas provided to define MIME in BPEL
    Similarly when i get a MIME message from a service i want to access this message and access each part of the MIME message.
    i know we cannot parse a mime message in BPEL but i want know how can i access each part of the mime in BPEL.
    Is this possible to do in BPEL?
    I am using SOA 10.1.3.4.0
    Any help is really appreciated in this.
    Thanks,
    Amith
    Edited by: [email protected] on Oct 16, 2009 3:15 AM
    Edited by: [email protected] on Oct 16, 2009 3:18 AM

    Please find more details here.
    I am using the schema defined in "http://schemas.xmlsoap.org/wsdl/mime/2002-01-29.xsd". I have modified the schema so that it does not throw error in JDeveloper.The modified schema is
    <xsd:schema targetNamespace="http://schemas.xmlsoap.org/wsdl/mime/"
    xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"
    xmlns:ns1="http://schemas.xmlsoap.org/wsdl"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    <xsd:import namespace="http://schemas.xmlsoap.org/wsdl/"/>
    <xsd:element name="content" type="mime:contentType"/>
    <xsd:complexType name="contentType">
    <xsd:complexContent>
    <xsd:extension base="ns1:tExtensibilityElement">
    <xsd:sequence/>
    <xsd:attribute name="type" type="xsd:string" use="optional"/>
    <xsd:attribute name="part" type="xsd:NMTOKEN" use="optional"/>
    </xsd:extension>
    </xsd:complexContent>
    </xsd:complexType>
    <xsd:element name="multipartRelated" type="mime:multipartRelatedType"/>
    <xsd:complexType name="multipartRelatedType">
    <xsd:complexContent>
    <xsd:extension base="ns1:tExtensibilityElement">
    <xsd:sequence>
    <xsd:element name="part" type="mime:tPart" minOccurs="0"
    maxOccurs="unbounded" default="qualified"/>
    </xsd:sequence>
    </xsd:extension>
    </xsd:complexContent>
    </xsd:complexType>
    <xsd:complexType name="tPart">
    <xsd:sequence>
    <xsd:any namespace="##targetNamespace" minOccurs="0"
    maxOccurs="unbounded"/>
    </xsd:sequence>
    <xsd:attribute name="name" type="xsd:NMTOKEN" use="required"/>
    </xsd:complexType>
    <xsd:element name="mimeXml" type="mime:tMimeXml"/>
    <xsd:complexType name="tMimeXml">
    <xsd:complexContent>
    <xsd:extension base="ns1:tExtensibilityElement">
    <xsd:sequence/>
    <xsd:attribute name="part" type="xsd:NMTOKEN" use="optional"/>
    </xsd:extension>
    </xsd:complexContent>
    </xsd:complexType>
    </xsd:schema>
    When i try to create a variable of the above schema type, i get an exception "Exception: Invalid reference: http://schemas.xmlsoap.org/wsdl/:tExtensibilityElement'".
    Is there anything wrong with the schema?

Maybe you are looking for

  • Itunes will not open my iMac

    I have a 2 year old imac which generally running just fine, however itunes will not open on my user profile, it just seems to get stuck in a loop. I've checked the other user profiles and its working fine on there. Any suggestions? Thanks

  • How is it possible for iTunes to get worse with every update??

    Seriously this is baffling me. I hate the new Get Info box, the auto-fill is terrible because as soon as I hit space bar to finish off the album artist etc. it's like the spacebar acts the same as hitting enter. I seem to notice that sometimes album

  • ALV in WD ABAP

    .Hi Guys, I am new to ABAP . If any one of you could help me then below are the few queries of me :- 1. What are ALVs ? 2. How to use them ? 3. When and where should it be used ?

  • Unrecognized Windows Sockets error: 10106: create

    Am getting the following error when I use tcp-mon to sniff the HTTP traffic. Same when I use SOAP-UI. I'm using windows 7 and using "jdk1.6.0_13". Any help on this pls . java.net.SocketException: Unrecognized Windows Sockets error: 10106: create at j

  • Computer ID and inventory continuity

    Hi guys, I have some questions about computer identification - does anyone can tell me how ZCM recognize computer ID and what is that unique ID for the computer? Is that GUID and only GUID? My potential customer asked me about it, and i'm concidering