JavaMail depends on emails when there is a parenthesis not closed on CC

Hi all

I read e-mails via IMAP from a box mail with JavaMail. "My program reads the emails correctly, except those with a parenthesis closed, only the"("without the" without the")", in the CC field ", in the CC field.
This can happen when there is a parenthesis no closed in other areas, like, I couldn't test it until now.

Well, when my program reaches this email with no closed parentheses, it is simply suspended forever waiting to read the message until the time-out occurs. I can't even read the topic or message fields.
The JavaMail code debugging, I found it hangs at this point:

Line in the code: while (! gotCRLF & & ((b = bin.read ())! = - 1)) {(in the code of this line made a line break in the middle)
Method: public ByteArray readResponse (ByteArray ba)
Class: com.sun.mail.iap.ResponseInputStream

The grip is located exactly in the command "bin.read ()", in the first test
It seems that the program tries to read the answer and the server gives no answer. But by sniffing the network, I realized that an answer comes from the server.

To test, I installed ThunderBird and tried to read this problematic email. And Thunderbird to read this email with NO of PROBLEMS.

However, I saw a difference between the text of query JavaMail and Thunderbird:

JavaMail: A12 FETCH 1 (ENVELOPE INTERNALDATE RFC822. SIZE) \x0d\x0a

ThunderBird:
54 UID fetch 1: * \x0d\x0a (FLAGS)
UID fetch 33 55 (UID RFC822. BODY SIZE OF FLAGS. PEEK [HEADER. ([FIELDS (worms Cc Bcc subject Date Message-ID X priority priority references Newsgroups In-Reply-To Content-Type)]) \x0d\x0a

It seems that Thunderbird performs two orders, while JavaMail, alone. And this is different from the Thunderbird ones.

I would appreciate any help with this problem.

Thank you!
Mauricio

Published by: 909041 on 19/01/2012 07:12

This is a bug in your server. What server do you use?

The JavaMail FAQ tells you how to work around buggy servers, although this bug is particularly
bad because it blocks just rather than throw an exception.

Tags: Java

Similar Questions

  • My mail shows a growing number of new emails when there is not. Why?

    MY email shows a growing number of new emails when there is not. Why?

    You have a POP or IMAP account?
    A solution is to remove the e-mail account on the iPad

    Force restart the iPad

    Add the email return account

  • Where will the emails when you click them as 'not spam' in the spam folder?

    When an email in the spam folder and I click "not spam", where he's going, and how to get it back?

    Hey,.

    I have goggled this problem for you.

    According to AOL:

       "If you see a piece of email that is not spam, click the email, and then click This is Not Spam. The message will be automatically moved to your New or Inbox folder. You should then add that email address to your address book or your Custom Sender List (if you have one set up), so that future emails from this sender will not be sent to your Spam folder."
    

    Hope this helps you.

  • Account revealed the unread emails when there is

    My Mail app synchs Win 8 (64-bit) both my outlook.com and Comcast.net (ISP) accounts.  On the folder Comcast only, constantly showing 3 unread emails where none should or exist.  Not a question or restart/restart Mail app because it probably started around this past Thanksgiving and has continued ever since.

    Have highlighted the Comcast all individual record emails and repeatedly scored first, "unread" and then "read" in repeated attempts to ensure that all emails should have reported being 'read' to clear indication of emails unread without success.  As new mail continued to arrive in this account, the total displayed increases with each new non-arrival with still more the 3 unread mails.  When I'm physically read or the more recent/latest messages deleted, the number decreases with each elimination without never less than 3.

    8 win and all included Mail applications are up to date with all updates downloaded and installed.  Is this a known issue with the Mail application?  Suggestions or recommendations to the short of a refresh or restore in Win 8 I have a large number of existing programmes which would need to be reinstalled and updated itself, as you can imagine it is a very long process?

    Thank you for all help with this problem.

    Hello

    Thanks for posting your query in Microsoft Community.

    From the information you have provided, I understand that you are facing problems with the Mail application in Windows 8.

    I will certainly help you in this matter.

    1. the same problem occurs in Webmail?

    2. the problem occur with Outlook.com account in the Mail application?

    3. were there any changes made to the computer before the show?

    Please follow the methods.

    Method 1:

    Follow the steps in the link.

    What to do if you have problems with a soft

    http://Windows.Microsoft.com/en-us/Windows-8/what-troubleshoot-problems-app

    Method 2:

    Try to remove and re-add the account in the Mail application and check if it works very well.

    See the link.

    http://Windows.Microsoft.com/en-in/Windows-8/mail-app-FAQ

    Using the windows-related issues feel free to post on the Microsoft Community Forum.

  • I used to be able to copy a file and paste it on the internet, like e-mail. Then, I 'upgraded' and cannot. How can I copy files from the window and paste it into email when there are not options Paste as before?

    See above

    I used to be able to copy and paste, but since the upgrade can not

    toolbars is no longer available on the top

    How copy and paste emails or chat with a file in windows, sites like Match.com?

    > toolbars is no longer available on the top

    Assuming that you are referring to Internet Explorer missin the Menu bar...

    Right-click on an open under the address bar > click bar on the popup box.

  • What happened to the "out of office assistant" for the email, when you will be missing? is there another product now?

    What happened to the "out of office assistant" for the email, when you will be missing?

    is there another product now?

    Saturday, September 15, 2012 20:29:54 + 0000, blb_899 wrote:

    What happened to the "out of office assistant" for the email, when you will be missing?

    "Out of Office" is a function of an e-mail program. Not all e-mail messages
    programs for this. What email program are you using?

    Ken Blake, Microsoft MVP

  • The mail is downloaded when I delete an email, even if I chose to not get the email and off IDLE

    I don't want Thunderbird to download new email unless I click on Get Mail.

    So I unchecked "check for new messages every x minutes", unchecked "check for new messages at startup" and unchecked «IDLE command Use if the server supports»

    but when I delete an old email, it downloads all new messages.

    How can I get Thunderbird to download new email when I click the Get Mail button no once?

    Thank you

    There is no suspect. This is a feature of IMAP.

    Why you use something totally inappropriate, and then go very far to do what it is not designed to do. Why not just use POP?

    Have you tried just be disconnected in Thunderbird? (click on two monitors at the bottom left of the screen)

  • My Inbox on iPad has 2131 emails unread - there is not!

    I have read a number of discussions and did a hard reboot, but while there is no emails in the Inbox and I regularly delete the trash the small red County on the mail icon continues to show 2131. Yes more than two thousand she also adapt to incoming mail so the number grows until I have delete the current emails when it decreases the amount set in 2131. Any suggestions would be welcome.

    Try resetting your e-mail account. First close your Mail application completely from the window of the selector app by double clicking the Home button and drag the email preview pane up until it disappears from the display. Then go to settings > Mail, Contacts, calendar > find your e-mail provider and click on the account and the blow to remove. Then perform a forced reboot. Hold down the Home and Sleep/Wake buttons simultaneously for about 15-20 seconds, until the Apple logo appears. Then go to settings > mail... and to add the account.

  • My e-mail is important my emails when I turn it on but then offline. Need my password back on doctor connection and stay on the line until I turn it off. Process is repeated on the switching across. How can I make my email stay online?

    My e-mail is important my emails when I turn it on but then offline. Need my password back on doctor connection and stay on the line until I turn it off. Process is repeated on the switching across. How can I make my email stay online?

    Hi jsteveh,

    Thank you for using communities Support from Apple.

    I understand that the mailbox of your Mac becomes offline at random times.  I suggest the mail connection doctor to see if there is any problem with your computer to communicate with the mail running server.

    Use Mail connection doctor

    Take care.

  • Why was the full Inbox folder when there is no message in the folder of outlook express?

    Original title: failure of Outlook Express

    I apologize if I am in the wrong category, but there isn't one for Outlook Express. I encountered a strange problem with OE. My client always uses OE for their emails and all of a sudden a person has lost the ability to receive emails. After some research, I found that their Inbox.dbx file exceeded the capacity of 2 GB. Juggling which corrects the problem.

    But my question is why was the folder Inbox full, when there is no message in the folder? When I opened the OE to try to resolve the problem, the Inbox was empty! Second question is how can I keep this does not happen?

    [Transferred from Internet Explorer]

     
    I do not use Outlook, but it has nothing to do with archiving. Only, you do not see messages once you remove them, but they are still on your drive hard until you compact.
     
  • I can not send attachments in my email when I want to send an email that he will not seek _ atttachment

    Vista Windows transfer an email with an attachment when I passed, it does not show the atttachmennt and half the time I can not yet send when I empty a new email Ther must be something that I do not habve to market, but I can't see it.

    Vista Windows transfer an email with an attachment when I passed, it does not show the atttachmennt and half the time I can not yet send when I empty a new email Ther must be something that I do not habve to market, but I can't see it.

    Please check your anti-virus software. Find out if it has the option of scanning email, and if it is running. If so, please e-mail analysis devil.
    That fact. Try to send the attachment again.

    t-4-2

  • Can we stop device to check email when user enable mobile data?

    I see that check for email when I turned on the device mobile data. Is there anyway to stop it?

    I thank in advance.

    No, this is not supported.

  • BlackBerry Smartphones stopping incoming emails when it is connected to the Desktop Manager

    Hi all

    Me, stupidly, recently upgraded to the new v6 of DM when you are prompted to do so.   Since then, I was not able to prevent emails coming wireless when my BB is connected on the software.   I WANT THAT ABILITY BACK!

    OK, I realize I am perhaps odd in not wanting to have to deal with emails twice (Office AND on my BB) but I've been happily using my BB to the untethered email only.

    So the question is: How can I stop my BB receive emails when plugged in the DM?   (I have not yet tried roll back to the previous version of DM as that shocks a bit my sense of progress.)

    Any suggestions out there?

    Z

    I removed 6.0 DM and re-installed DM5.0 and everything is now working back again as it was.

    RIM need to consider seriously any roll outs of the "update" software like what they've done is wet off clients at best a beta version, with fewer features, but hey, the interface looked good!

  • I had to rebuild the computer and reinstalled the photos of cecently.  I have photos imported into Lightroom, but the parameters associated with the photos, that is to say. When they were developed, are not there.  How to import these?

    I recently had to rebuild the computer and reinstalled the photos.  I have photos imported into Lightroom, but the parameters associated with the photos, that is to say. When they were developed, are not there.  How to import these?

    Default LR stores all changes in the catalog file, not in the pictures. So if you have a backup of your original catalog you will need to copy on the newly rebuilt system and open it in LR. You will then need to recreate a link to the images in the catalog depending on where are your images and where the original LR catalogue think they are.

  • XML with XSD validation when there is more than one XSD.

    Hello

    I need to validate an XML against a set of xsd.

    I am aware that, when there is a single XSD to compare, it is possible to compare using xmlDoc.schemaValidate () with xmlDoc and xmlSchema.

    But in my case, there is more than one XSD against which I need to compare the XML code.

    My main XSD has the statement as mentioned below.

    " < xs: import namespace = ' http://www.w3.org/1999/xxxx "schemaLocation ="xxxx.xsd"/ > "

    " < xs: import namespace = ' http://www.w3.org/1999/02/yyyy "schemaLocation ="yyyy.xsd"/ > "

    I don't know how to handle this situation.

    Please, help me!

    Thank you

    Vicky

    Hi Vicky,

    This situation is not different, just validate the main schema.

    But, to use the XMLType schemaValidate method, you must save the schema in the database (via the DBMS_XMLSCHEMA API).

    If the main schema contains imports then these referenced schemas must be saved too.

    To sum up: register all 3 patterns in their order of dependency, then you will be able to validate your XML with the main XSD code.

    () dbms_xmlschema.registerSchema

    schemaURL-online , for example 'xxxx.xsd'

    schemaDoc =>

    local-online true

    genTypes-online fake

    genTables-online fake

    enableHierarchy-online dbms_xmlschema. ENABLE_HIERARCHY_NONE

    ) ;

Maybe you are looking for

  • start-up never ends

    Hello I just plugged my iPhone to save some new pictures and Photos opens on the start screen (I changed nothing, although I'm not sure these latest app store system updates so pictures has been updated). I searched here and online answers but not co

  • I use AOL and I get no emails.

    original title: not receiving emails I use AOL and I get no emails.  Not sure if I was doing something.

  • Cable HP D1663 too short USB

    After adding an aditional wire the printer stops working. is there a solution?

  • internal fans

    internal fans speeds up and slows down, change in diet and fan, it is

  • I can't write a CD or DVD on my laptop Samsung Q210 (windows Vista)

    I can't just write a CD or DVD on my laptop, I never could. I used Nero burner CD from microsoft, and even the Samsung software provides, it simply doesn't work. I used the Microsoft Fix it automated help desk, but it still doesn't, except that now N