Problem in Reading Mail Attachement

I'm facing a problem while reading mail attachments. Java-mail returns null disposition for the below message,but this message has attachment javamail is not considering the mail attachment .I'm using java-mail 1.3.Can anybody help me to solve this problem ?
Return-Path: prvs=00548bd8bd=[email protected]
Received: from PRODTM1.TRUST.UASC.AO ([172.28.2.143])
     by trust.uasc.net
     ; Mon, 14 Mar 2011 11:07:04 +0000
X-TM-IMSS-Message-ID:<[email protected]>
Received: from gw.northport.com.my ([202.188.31.130]) by trust.uasc.net ([172.28.2.144])
with ESMTP (TREND IMSS SMTP Service 7.1) id 45727fb90003495a ; Mon, 14 Mar 2011 11:06:52 +0000
Received: from [192.1.10.13] (port=59768 helo=nmbsmtp-01.northport.com.my)
     by gw.northport.com.my with esmtp (Exim 4.69)
     (envelope-from <[email protected]>)
     id 1Pz5bs-0003EO-0A; Mon, 14 Mar 2011 19:06:48 +0800
X-CTCH-RefID: str=0001.0A090205.4D7DF6C8.0116,ss=1,fgs=0
Date: Mon, 14 Mar 2011 19:05:50 +0800 (SST)
From: AMTedi-Container Svcs <[email protected]>
Message-ID: <[email protected]>
Mime-Version: 1.0
To: [email protected], [email protected],
[email protected], [email protected]
Subject: CODCT1UAS
Content-Type: multipart/mixed; boundary="-"
X-TM-AS-Product-Ver: IMSS-7.1.0.1394-6.5.0.1024-18010.003
X-TM-AS-Result: No--4.942-5.0-31-1
X-imss-scan-details: No--4.942-5.0-31-1

If you were assuming that every message would have a valid body part
and that they would tell you definitively which parts you should consider to
be "attachments", ya, that won't work. The disposition is a hint at best.
It can be wrong. It might not even be there.

Similar Messages

  • Reading mail attachement

    Hi all ,
    i want to read mail from pop3 server in to abap, for this i m using a php FM by which i am able to read text of mail but i am not reading attachement of mail , plz help me for that reading attachement.
    /people/anton.wenzelhuemer/blog/2006/05/27/abap-pop3-email-client-using-an-rfc-enabled-php-client-proxy
    I m using this blog for this purpos.
    Thanks
    Gaurav

    hi ,
    this method in the blog will configure SAP MAIL INBOX for mail read but i want to read mail attachement by PHP function  which i will saving in a data table in ABAP say name zmailtable.Actually i already tried this method of configuring mail box but it is creating some problem and not recieving mail in sap mail box. give me the solution related to PHP function for reading attachement.
    Thanks
    Gaurav

  • How can I read mail attachment for making it to the payload?

    Hi everybody,
    in the following my scenario:
    I have an incoming message with attachment by the mail sender adapter using PayloadSwapBean (because of other messages I have to use the bean). I want to send this attachment by using the mail receiver adapter to fix E-mail-address keeping the FromMailAddress, the MailSubject and the FileName
    without the metadata as additional attachment.
    I have found a thread where it is explained how to handle "payload as mail attachment and dynamic filename" by java-mapping. So far so good. My question is: How can I make my attachment to be the payload? How can I read the attachment by java-mapping?
    Thanks for help.
    Reagrds,
    Sebastian Linke

    USe payloadSwapBean for this to swap your payload and attachment
    /people/michal.krawczyk2/blog/2005/12/18/xi-sender-mail-adapter--payloadswapbean--step-by-step
    Rajesh
    Edited by: Rajesh on Feb 5, 2009 5:29 PM

  • "charset detection failed" while reading mail attachment

    Hi,
    I'm trying to config  Mail to RFC scenario, in which message is being send as mail attachment. I followed this geart bolg (http://www.sdn.sap.com/irj/scn/weblogs;jsessionid=(J2EE3414900)ID0061964050DB00692202668857888939End?blog=/pub/wlg/2849).
    when i was testing my scenario the following ERR occurred:
    "No interface determination found for outbound interface ..... : Error while determining root tag of XML: BOM / charset detection failed"
    plz advise.
    Regards
    Uri

    Hi Uri,
    Check this links
    Error while determining root tag of XML: BOM / charset detection failed
    interface determination not found
    Error in Test Configuration
    Regards
    Ramesh

  • Problem in handling mail attachment by java in Microsoft outlook 2003

    I have written code in Java for extracting attachment files from mail message but the same code is working with Microsoft Outlook 2000 but not working with Microsoft Outlook 2003. need solution for this problem ASAP.It is failing in recognizing boundries of attachments.
    Mail API version :1.3.3_01
    Part part = mimemultipart.getBodyPart(i);
    String disposition = part.getDisposition();
    objStatement=objConnection.createStatement();
    if ((disposition != null) && (disposition.equals(Part.ATTACHMENT) || disposition.equals(Part.INLINE)))                System.out.println("****Attachement found****");
    rs=objStatement.executeQuery("select KNTA_ATTACHMENT_S.nextval from dual");
    while(rs.next())
    strAttachementId=rs.getString(1);
    System.out.println("Attachement id"+strAttachementId);          strFileName=part.getFileName();          System.out.println("file attach with the mail"+strFileName);     attachementDir=strAttachementId.substring (strAttachementId.length()-2,strAttachementId.length());
    System.out.println("Attachement dir"+attachementDir);     storedFileName=strAttachementId+"_"+part.getFileName();     System.out.println("Stored filename"+storedFileName);     OutputStream out=new FileOutputStream(strAttachmentPath+"/"+attachementDir+"/"+storedFileName);     InputStream in=part.getInputStream();          
    while ((len = in.read(buf)) > 0)
         {                           //System.out.println("content"+buf);
    out.write(buf, 0, len);
    in.close();
    out.close();
    Message was edited by:
    Vikas_Rathore_Patni

    Hi Vikas_Rathore_Patni
    I'm a student in Greece and I'm interested in the way this code of yours actually works. What i really want to do is to find a way of opening e-mail attachments and extracting them to a txt file. Are there any necessary tips for that ?
    I would really appreciate it if you could send me this code of yours in this mail :
    [email protected]
    Regards Marios

  • Problem in reading mails!!

    Hi,
    I am using mail adapter to access my mails...i am successful in sending mails and moving folders too...but the problem is when there is a message..then i could not able to read it...if i click on that message subject..it is giving "Cannot open in desired mode" message...so what could be the reason...can any one help me in sorting out this problem...
    regards
    krishna

    I'm not sure what your problem is exactly.
    The content of any part can be read as a byte stream using getInputStream.
    That should be sufficient to store the content in a database.
    But I have no idea what you're going to use that content for in the database,
    or how you're going to extract it, or what you're going to do with it once it's
    extracted, so I don't know if just storing the raw bytes is sufficient.

  • Problems in Reading Mails of European Users

    I have a Java program which reads email from an Exchange Mail Box.
    The problem I am facing is with special European characters like � or �
    This problem is only when reading the From milID. If I have European characters in the Contents or the Subject, then I can read hem perfectly. I dont get any junk charaters in the Contents or the Subject.
    But if the From mailID has special characters like � or �, then its getting corrupted.
    Giving u an example of corruption,
    Mayer, Klaus-J�rgen (MED)becomes =?ISO-8859-1?Q?=22Mayer=2C_Klaus-J=FCrgen_=28MED=29=22?= <[email protected]>
    P�ttikangas, Harri (MED)becomes =?ISO-8859-1?Q?=22P=E4ttikangas=2C_Harri_=28MED=29=22?= <[email protected]>
    Reimsch�ssel, Matthias (MED)becomes =?iso-8859-1?Q?=22Reimsch=FCssel=2C_Matthias_=28MED=29=22?= <[email protected]>
    Normally for users who do not have � or � in their name, I get like this,
    Honni, Sakari (MED) is "Honni, Sakari (MED)" <[email protected]>
    Persson, Ann-Sofie (MED) is "Persson, Ann-Sofie (MED)" <[email protected]>
    I did not specify any special charset encoding, just used JavaMail and Java APIs to read the mail.
    Reminding you again that the program does read all European characters like �, �, �, �, � � � � � �
    Please solve this problem.

    Hi,
    I have simulated your case. The same as yours. But I try it
    in BIG5. I work around my case by configure the character coding to BIG5(in netscape) . If I use the iso-8859-1, the
    Chinese words may become ??? in the From field(showing in
    the netscape mail application). If I set Big5, everything is
    ok. So
    I suppose that you just send a text mail, and you could try
    setText(String mail_stuff_str, String character_set_str) to
    fix your problem. I did not try it, But I think that it may
    work.
    If you use the mime mail, the mean should be similiar in conf-
    igure the content-type=......; charset=Big5 by different method. but I am lazy to lookup the document.
    good luck,
    Alfred Wu

  • Problems with "Read" mail becoming "Unread" again

    Now that I have upgraded to Mountain Lion, I find my mail app acting odd. When I read an email, or when I select the entire contents of a folder and mark all the mail as "read", within a few minutes, random emails become "unread" again.
    Anyone else experiencing this and have you come up with any fixes?
    Thanks
    Gary Cascio

    Mail 2.x has always had these kind of problems with some IMAP servers. A few weeks before releasing the Mac OS X 10.4.7 Update, Apple made some changes to .Mac that caused these issues to happen there as well, and these forums were flooded with complaints from .Mac users about read messages being marked unread, and deleted messages being undeleted.
    If this was a non-Mac IMAP account, I would say there is nothing you can do about it other than switching to another mail client. But in you case there has to be something else going on.
    Try rebuilding the mailbox, i.e. select it and do Mailbox > Rebuild and see whether that makes a difference.

  • Cannot read mail attachements

    when tap on a PDF OR jPG attachment I get a white blank screen. ised to be able to see the contents of the attachment. How can I resolve this problem?

    Try a "reset" (different from restarting)
    Hold down on both the Home AND Sleep/Wake buttons until you see the Apple logo on black screen (about 10 seconds).
    When you see the Apple logo on the black screen, let go of both buttons.
    Hope this helps!
    ~Joe

  • Reading mail attach excel 97-2004 in IPhone

    I get a message when I try to open the file : " This dok. can´t be shown. The doc. was created by a excelversion which is not supported."
    The file is an .xls file created in microsoft excel 97-2004-workbook.
    Why can´t I read the file in my Iphone. Please help! Is there any 3:rd part program that I need?
    Regards
    Graner

    For Apple to see your report, you need to repost it at
    http://www.apple.com/feedback

  • Mail attachement content trnsfer encoding 8bit , 7bit

    Good morning to everybody.
    I have a problem reading mail attachement.
    When the attachement is 8bit encoded the exadecimal char "3D" is write in a file as "0D". This is wrong
    When the attachement is 7bit encoded the exadecimal char "3D" is write in a file as "3D" . Thi is right
    Is there anyone who knows why of this beaviour?
    Many thanks

    I'm using the msgshow.java that is the example included in the java mail library.
    Attachement downloaded with JavaMail (the bad one):
    �� 3D ==> 0D (CR)
    2007-05-15;18.11.26;978;000469,00;380;Italy
    ;LUISA SPAGNOLI NAPOLI IT;34009575;8036527 ;5651;00;
    Attachement downloaded with outlook (the good one):
    �� 3D not translated
    2007-05-15;18.11.26;978;000469,00;380;Italy =
    ;LUISA SPAGNOLI NAPOLI IT;34009575;8036527 ;5651;00;
    Here the properties of the mail message:
    Microsoft Mail Internet Headers Version 2.0
    Received: from EXSMTP-IN2.sede.corp.sanpaoloimi.com ([10.244.7.21]) by EVS01.sede.corp.sanpaoloimi.com with Microsoft SMTPSVC(6.0.3790.2499);
         Mon, 28 May 2007 08:09:14 +0200
    Received: from secgw-b-e02.intesabci.it ([172.19.0.27]) by EXSMTP-IN2.sede.corp.sanpaoloimi.com with Microsoft SMTPSVC(6.0.3790.2499);
         Mon, 28 May 2007 08:09:13 +0200
    Received: MHUBINT
    Received: FW
    Received: from mail1.ssb.it ([192.106.129.13])
         by mailbox.intesabci.it with SMTP id l4S696n5006757
         for <[email protected]>; Mon, 28 May 2007 08:09:09 +0200
    Received: (qmail 11377 invoked by uid 509); 28 May 2007 06:02:04 -0000
    Received: from 127.0.0.1 by Imhotep (envelope-from <[email protected]>, uid 501) with qmail-scanner-2.01
    (spamassassin: 3.1.3.
    Clear:RC:1(127.0.0.1):.
    Processed in 0.078893 secs); 28 May 2007 06:02:04 -0000
         Mon, 28 May 2007 08:02:03 +0200 (CEST)
         (Postfix) with SMTP id 6798F34257;Mon, 28 May 2007 08:02:03 +0200 (CEST)
    to: <[email protected]>,
    from: <[email protected]>
    subject: 28 May 2007 08:00 PS12 FROD-ATM1
    MIME-Version: 1.0
    Content-Type: multipart/mixed;
         boundary="P=_NextPart_000_01BD3BAF.A762FD80"
    Date: Mon, 28 May 07 08:00:27 B
    Message-Id: <[email protected]>
    Return-Path: [email protected]
    X-OriginalArrivalTime: 28 May 2007 06:09:13.0674 (UTC) FILETIME=[B707A2A0:01C7A0EE]
    --P=_NextPart_000_01BD3BAF.A762FD80
    CONTENT-TYPE: TEXT/PLAIN; CHARSET="US-ASCII"
    Content-Transfer-Encoding: 8bit
    --P=_NextPart_000_01BD3BAF.A762FD80
    Content-Type: text/plain; charset=us-ascii; name="SPIMI.TXT"
    Content-Disposition: attachment
    Content-Transfer-Encoding: quoted-printable
    X-MIME-Autoconverted: from 8bit to quoted-printable by mailbox.intesabci.it id l4S696n5006757
    --P=_NextPart_000_01BD3BAF.A762FD80
    CONTENT-TYPE: TEXT/PLAIN; CHARSET="US-ASCII"
    Content-Transfer-Encoding: 8bit �������� I think the problem is here
    P=_NextPart_000_01BD3BAF.A762FD80

  • Read E-Mail Actionblock -Unable to read mail from Mailserver

    Hi,
    As a part of business requirement I need to write a transaction which picks the attachment from a particular mail on a server on a scheduled basis.
    I am getting the below error while trying to connect to the server
    [INFO ]: ReadMail: Connecting To: xxxx.yyyy.mycompany.com
    [ERROR]: ReadMail error: Connect failed; nested exception is: java.net.ConnectException: Connection refused: connect+
    [ERROR]: ACTION FAILED: End Action ReadMail_0 :
    But with the same credentials I am able to send mail from xMII using the Send mail action block.So this signifies that I am using the right MailServer name.
    Is this the problem with the firewall with the server ? or
    Will there be different MailServer name for receiving and reading mails?
    How to know which port number to be used?
    Did any one faced this problem before?
    Appreciate your help
    thanks
    Raj

    Hi,
    Im also having problems with reading mails from mailserver.
    When I execute the transaction the action block Read Mail return me the following error:
    [ERROR] [ReadMail]Unable to read mail Exception: [unicode-1-1-utf-7]
    Could anybody help me?
    P.S.: Im using the imap4 protocol.
    Thank you!
    Edited by: Thiago Barros on Jul 29, 2010 5:15 PM

  • Hi!! how can i read mails present in the sub folder from outlook inbox

    hi every one...
    i have to read a sub folder present in the inbox from outlook.
    for that i tried as
    Session session = Session.getDefaultInstance(props, null);
    store = session.getStore("pop3");
    store.connect("URL", "USERNAME","PASSWORD");
    inbox = store.getFolder("INBOX/subFolderName");but it shows an error like Folder Not Exist...
    can any one suggest me to solve this problem to read mails present in the sub folder.
    Thank you

    thank you for support guys...
    so if i am using pop3 protocal, it cant read the sub folders present in the outlook inbox ..
    is there any alternative way to achieve this ...?

  • Mail attachment saving problem

    Hi,
    When I tried to save a Mail attachment today I got the following warning:
    Mail was unable to save the attachment “File.numbers” to disk. Please verify your downloads folder exists and is writable.
    The warning must be wrong because other attachments, even of the same kind, can be saved without problems. I observed that only such files are effected which contain subdirectories like numbers, keynote, etc. and my suspicion is, that the saving problems may come from wrong file reading/writing rights within these subdirectories, that the sender of the Mail may have imposed to prevent unwanted changes to his/her file. May this be so? Otherwise, what else?
    (MacOs X 10.5.6, Mail.app 3.5 and, in this particular case, Numbers08)
    Thanks for for help in advace!
    Joe.

    Hi Kappy,
    Nothing at all. No error message but no copying either, and no change in the curser appearance when dragging to the Desktop.
    When I go to Mail --> Message --> Forward as Attachment, the attachment in the composer window can be saved like a normal file and has an appropriate size, eg. the desired original file seems to be contained in there. However, I have no Idea how to extract the original .numbers file from that.
    Strange, isn't it?
    Thanks,
    Joe.

  • Mail attachment problem with 10.8.3

    Since upgrading to 10.8.3 ....  Mail has now been playing up badly.
    I cannot drag and drop files onto emails anymore, and even if i attach the long way its still no guarantee it will actually be attached when I send.
    Anyone else having this problem?

    Since upgrading to 10.8.3 ....  Mail has now been playing up badly.
    I cannot drag and drop files onto emails anymore, and even if i attach the long way its still no guarantee it will actually be attached when I send.
    Anyone else having this problem?

Maybe you are looking for

  • I SIGHT NOT WORKING IN WINDOWS XP

    i have now loaded windows xp onto my mac, via bootcamp, but all seems ok untill i try to use webcam, it does not work, i have tried the external i sight as well but same problem can anyone help or is it just a problem that cannot be resolved

  • Problems getting xMAM 3.0 SR3 working (no data is replicated to the client

    Hello members, I'm new in xMAM configuration. I followed the different instructions to get the thing working. 1. Installed MI on client 2. Installed xMAM on client 3. Created RFC on middleware & on backend (for server-driven) 4. Imported SyncBOs 5. D

  • Events and AdvancedDataGridRendererProvider

    <mx:rendererProviders> <mx:AdvancedDataGridRendererProvider column="{someCol}" id="myRenderer" renderer="util.TheRenderer"/> </mx:rendererProviders> if I use myRenderer.addEventListener("customEvent", function2call); I get the error: 1061: Call to a

  • Applescript use Document size information

    HI ALL, I am trying to put together a script that would fill up a slug with document size information: - Let say my document is 8.5"W x 11" H - Let say that my slug has a "document size" area with placeholder text, like DocWidth x DocHeight The scrip

  • Paid for lion recently can i download mountain lion for free?

    Hi :) recently paid and downloaded mac os lion ( 16 june 2012 ) i just need to know is there a way to get mac os mountain lion for free because of my recent mac os lion download.