JavaMail breaks when attachment names have spaces.

Hi
I am reading mail from gmail and wants to save attachment.
Javamail breaks when i use either getDisposition or getFileName method when attachment name has a space.
I know its against the spec but it is breaking my code.
Is there any work around this.
Regards
Saurabh

Hi
I am reading a gmail account and files with attachments are send by customers and most of the time attachment name have spaces.
I already set [props.setProperty("mail.mime.parameters.strict", "false");
        props.setProperty("mail.mime.encodeeol.strict", "false");
        props.setProperty("mail.mime.decodetext.strict", "false");]
but it still gives this exception.
javax.mail.internet.ParseException: Expected ';', got "Screen"
     at javax.mail.internet.ParameterList.<init>(ParameterList.java:280)
     at javax.mail.internet.ContentDisposition.<init>(ContentDisposition.java:96)
     at javax.mail.internet.MimeBodyPart.getDisposition(MimeBodyPart.java:1063)
Regards
Saurabh

Similar Messages

  • Trouble when file name has spaces

    In Windows XP's Windows Explorer, when I double click a .pdf file to open it the Adobe Reader comes up and then sometimes puts up a pop-up saying "There was an error opening this document. This file cannot be found". I have to click OK several times to get the pop-up to go down.
    After some internet investigation I discovered if the file's path name has spaces then Adobe breaks the path into pieces at the spaces and interprets it as several file names. The advice I found on the internet was to have the launching application put double quotes around the file name.
    The trouble is, in my case the launching application is Windows XP, and I don't know how to instruct it to add the double quotes.

    I WANT THE PASSWORD
    SAYS ANOTHER ACCOUNT WITH THE SAME ADDRESS
    I WANT THE PASSWORD

  • Gmail access through Mail : Attachment name and extension terminated

    When I try to send an attachment through Gmail using Mail, if the attachment names have more than one word with spaces in them, the entire name is terminated to the first few letters before the space and the file extension is lost too; so the recipients end up having incomplete file names without any extension. The files transfer perfectly and once the extensions are put in, they open without a problem. Receiving attachments where the names have spaces etc. is not a problem at my end though.
    Any idea what I should tweak?
    Thanks.

    All updates are installed regularly, so I am indeed at the newest version of all available software. I just haven't updated my signature here.
    And the name of the attachment is mangled only when I use the client to send an attachment to any other Gmail account ( both Windows or Mac, accessed either through a client or directly at the receiving end). The same email cc'd to my school address shows the entire file name. And if I send the email through Gmail directly, then it is fine too, as I mentioned.
    Message was edited by: Deep Blue to change the OS version.

  • Bug in the copy cluster roles wizard - CSV reparse points cannot have names with spaces

    Hi All,
    I have identified a bug in the copy cluster roles wizard in 2012 R2, which is preventing me from migrating my clusters from 2008 R2 & 2012 to 2012 R2.
    The bug surfaces when you attempt to copy a VM role from a 2008 R2 or 2012 cluster that has a CSV reparse point name that contains spaces as follows:
    The role appears to copy across fine, but once you've migrated the CSV and brought it online followed by starting the VM, the VM configuration resource promptly fails along with the VM.
    The issue can be spotted inside the copy cluster roles wizard, where it presents itself by removing all text after the first space in the name to read "C:\ClusterStorage\CSV" rather than "C:\ClusterStorage\CSV
    Test Disk 3" as follows:
    The bug only appears for VMs on CSVs with a reparse point name containing spaces - all other scenarios succeed.
    After searching through the registry on the new cluster, you can clearly see that the VM role hasn't been correctly copied.
    It shows a value called SharedVolumeMappings with the data C:\ClusterStorage\CSV|<guid>|<integer>
    Whereas it should show the data C:\ClusterStorage\CSV Test Disk 3|<guid>|<integer>
    If you modify the data in the SharedVolumeMappings value in both
    0.Cluster\Resources\<VM guid> and Cluster\Resources\<VM guid> keys, the VM will start and work correctly.
    The problem for me is that I have many VMs on many different CSVs all with spaces in the names of the reparse point! Its not feasible for me to go through the registry for every copied VM on every node of the new cluster, as this would take a very long time
    and would be prone to errors that could cause further problems.
    Can anyone provide any help on this? A hotfix for the issue would be great, if anyone from Microsoft is reading :-)
    My deadline to get the VMs migrated to the new cluster is the 21st February, so I would really like to have a solution to the problem before then if at all possible.
    Many thanks in advance,
    Tom

    Hi Subhasish,
    Thanks for the reply, glad that its something that is reproducible!
    Do you have any idea of timescale? Or is it likely that I will have to modify the registry as above to get this working?
    If I am going to have to modify the registry, please can you let me know if the resolution I have tested above is safe and viable? Or are there other settings that I will need to change to make the cluster fully aware of the proper path to the CSVs for its
    VMs?
    Also, is there a known procedure for renaming the reparse point whilst VMs are running on it? This would allow me to negate the issue before copying the roles to the new cluster :-)
    Thanks again,
    Tom

  • How to fix name of table have space in goldengate 11.1.1.1.2 on SQL Server

    Problem Description: How to fix problem with the name of table have space in sql server?
    If I want to used with oracle golden gate 11g(v 11.1.1.1.2)
    Thank you

    I use
    Source:SQL Server 2000
    Target : Oracle
    Config Source:
    table dbo."New Table";
    Config Target:
    map dbo."New Table" , target xxx."NEW_TABLE";
    when check in process extract
    I find No active extraction maps after insert data
    Thank you N K

  • How to get message/rfc822 attachment name by using JavaMail

    Hi,
    I am fetching incoming mail which has message/rfc822 attachment. i.e: ".msg" (mime message) is attached to this incoming mail. When I try to get name of this message/rfc822 attachment, I am getting null. Body part for this message attachment doesn't contain attachment name? Is this known issue? Is there any solution for this? How to get attached message name?
    I am using javax.mail.part.getFileName() for getting bodypart's filename.
    Thanks,
    Shilpa

    This is not unusual. An attached message need not have a filename,
    especially if it wasn't stored in a file but rather was just attached to the
    new message from within the mailer that composed the new message.
    Some mailers will set a filename anyway, but there's no requirement
    that they do that.

  • My iPhone 4s keeps showing more space being used for photos than i have - i have deleted cache folders, unselect and reselect in iTunes and nothing appears to work my iPhone still shows 6.5 gig use of photos when i only have the  camera roll listed

    my iPhone 4s keeps showing more space being used for photos than i have -
    i have deleted cache folders, unselect and reselect in iTunes I read one post
    where they said keep syncing and in a couple days it would correct itself, that
    hasnt happened.  I have see others have the same issue but no solution and nothing
    appears to work my iPhone still shows 6.5 gig use of photos when i only have the camera roll listed

    i thought the photo stream only holds 1000 i usuaaly take each month and save them to iphoto but if thats the my ipad should say the same amount and it doesnt - it shows 2.5 gig which is correct for iphoto.  and i havent ever had that much but if for some reason icloud has that much saved how do i delete and again if it does why doesnt ipad show that amount _ HELP!

  • I used to have a indicator of time when attaching file in Yahoo Mail...I no longer have that in Safari 5.1.5...How can I get that indicator back???

    I used to have a indicator of time when attaching file in Yahoo Mail...I no longer have that in Safari 5.1.5...How can I get that indicator back???

    I tried to find help with the support by web chat for 2 days already, but every time it says that chat is un available (even if it's suppose to be 24/7)... I dont know what else to do.... please help!

  • How, please, can I get rid of the icons in the bookmarks toolbar so I have space for more bookmark names? Thank you

    I try to get as many items as I can in the bookmarks menu toolbar (typically using 3 letter names). F4 adds an icon next to each name - taking up valuable space. How, please, can I get rid of the icons in the bookmarks toolbar so I have space for more bookmark names? Thank you.

    If you remove the names then you may have a problem with organizing or searching for bookmarks.<br />
    If you do not want to use the extension then you can achieve the same effect with code in userChrome.css<br />
    That is what I would do.
    Add code to userChrome.css below the @namespace line.
    * http://kb.mozillazine.org/userChrome.css
    <pre><nowiki>@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); /* only needed once */
    #personal-bookmarks .toolbarbutton-icon { display:none !important;}
    </nowiki></pre>
    * http://kb.mozillazine.org/Editing_configuration
    * ChromEdit Plus: http://webdesigns.ms11.net/chromeditp.html

  • I am having difficulty with opening up PDFs attachments in my email or on my computer. Every time I tried to open up an attachment, it asks me to renew my subscription when I already  have a valid subscription. Please abvise

    Hi,I am having difficulty with opening up PDFs attachments in my email or on my computer. Every time I tried to open up an attachment, it asks me to renew my subscription when I already  have a valid subscription. Please abvise

    Can you save the PDF to your disk and then open them with Acrobat?

  • TS3276 Acknowledging email/internet parameters are functional when attaching, in any fashion, jpegs of 6GB+ they are being received as 70KB attachments? Have i missed some setting?

    Having issue with sending jpeg attachments. Acknowledging that all my email/internet providers are functional and the usual parameters have been checked I currently have the following concern. When attaching, in any fashion, via all methods, jpeg files of 6GB+ they are being sent and received as 70KB+/- attachments? Have a I missed some simple setting or is this a function of iPhoto. I can send the same full size jpeg attacments via Windows based laptops usuing same services, same location; and have had no previous issue using a previous Windows PC.
    Appreciate any input.
    Oatser

        I can see that this issue has been quite extensive, and frustrating, and I am so sorry for all that has happened societygirl! I would like to help you work this issue out. Please follow & send me a Direct Message, so I can get your account specifics and help finally bring this to a resolution.
    Thank you,
    MichelleH_VZW
    Follow us on Twitter @VZWSupport

  • My 4th gen Shuffle just up and died after 2.5 years.  It won't charge when attached to my Mac.  Can I replace a battery or do I have to buy a new one?

    My 4th gen Shuffle just up and died after 2.5 years.  It won't charge when attached to my Mac.  Can I replace a battery or do I have to buy a new one?

    Hi Soldier7439,
    Welcome to the Support Communities!
    The article below may be able to help you with this issue.
    Do you have the power adapter to plug into an electrical outlet?
    Apple - Support - iPod - iPod nano (4th generation) Troubleshooting
    http://www.apple.com/support/ipod/five_rs/nano4gen/#
    Apple - Support - iPod nano
    http://www.apple.com/support/ipodnano/
    Cheers,
    - Judy

  • Have Sony reader 505, ADE doesn't recognize when attached to mac OX 10.6.8. works with reader library but not with ADE

    Have Sony reader 505, ADE doesn't recognize when attached to mac OX 10.6.8. works with reader library but not with ADE

    YEAY!
    I just got the solution (that worked for me, anyway) from a Sony support rep. No PC or VMWare needed.
    OK, you've installed Sony eBook Library v3, and Adobe Digital editions, you've set up your acocunts and authorized your computer on both of them, and you've authorized your Reader with the Sony Library application.
    You go to the public library ebook download page, either through the Sony Library or just through a bookmark.
    You check out a book, and open it in Adobe Digital Editions, which still won't recognize your Reader.
    BUT, in the Sony Library app, you can now click "File, Import.." and go find the pdf you downloaded with the Adobe app.
    On my Mac, it was in ~/Documents/Digital Editions
    Import it, and drag it to your Reader.
    The first time you do this, it will ask you to authorize the Reader with your Adobe ID.
    Worked like a charm.

  • Has anyone else had a problem with their nano sim slot bending snapping or breaking when they put their sim in!? I have had to order a replacement and only had the phone 5hours!

    Has anyone else had a problem with their nano sim slot bending snapping or breaking when they put their sim in!? I have had to order a replacement and only had the phone 5hours!

    Hannahjadepurnell wrote:
    From giffgaff.
    i Don't actually mean when you put it In the phone. I mean when you try to take the slot out of the phone with the pin. As soon as I pulled it out it bent.
    That makes less sense as the sim tray a fairly stiff metal and should be pulled straight out once released. You didn't answer the question about where is was bought. Is is a real iPhone?

  • DEBUG - how can I put a "break-point" when a variable have a certain value

    Hi
    I need help...
    Do you know some kind os instruction or tools to see and stop in debug a program when a variable have a specified value ?
    For example:
    At debug I want that a program "stop" when likp-vbeln = 70000123000.
    Now for do this, I change the code and insert a IF( ), and i put a breakpoint. But i need a way without need change code.
    Thanks

    Hi Ricardo,
    Use Watch point for this puppose.
    Watchpoints allow you the option of monitoring the content of individual variables.
    The Debugger stops as soon as the value of the monitored variable arrives.
    In addition, conditions can be specified. The Debugger also checks whether such a condition is fulfilled.
    Creating a Watchpoint
    In the toolbar of the New Debugger, you will find the pushbutton Create Watchpoint . It brings you to the dialog box Create Watchpoint.
    Using this function, you can enter the variable to be monitored.
    All possible ABAP data structures are allowed here.
    Hope this will help.
    Regards,
    Nitin.

Maybe you are looking for

  • Managing 2 ipods with on itunes account?

    We have 2 ipods - how can we manage both with one itunes account? We do not want to have to store all those songs in 2 different accounts?

  • Help in XML parse

    Can anyone help in parsing a XML formatted like this by using pl/sql: <user><id>myId</id><test><type>XYType</type>hereisthevalue</test></user> thanks.

  • Vendor Shipment Tracking and GR

    Hello Sir, we have orders  procured directly from a  vendor through a solicitation process. An approved order placed within the system triggers a purchase requisition. This purchase requisition is placed in a solicitation, and a purchase order is sen

  • DB links, Bind variables & APEX reports performance

    Hello, So the problem is simply that I have two databases: A : Has table T1 B : (APEX database) I have an APEX report that simply does the following Select col1, col2.. from A@dblink This is abviously straighforward, however, I start having considrab

  • Change tracking version

    I would like to get change tracking version for specific database(not the one stored procedure is running), something like: SELECT someDB.dbo.CHANGE_TRACKING_CURRENT_VERSION(); Is that possible? br, Simon