IMAP4 isOpen and POP3 ERR

Hi,
I was checking the isOpen method of the IMAPFolder and I saw that the method return the opened field whatever happen during the keepConnectionAlive method. Is this an expected behavior since this method may return true even if the server side socket has been closed? For example, a successful connection has been done and the server closes the connection for any reason, the client calls the isOpen method and the noop method throws an exception.
Another thing, what is the reason behind hiding the POP3 errors? The server can return ERR but the API simply ignore them and return the default value. This is quite unexpected since the IMAP4 does throw exceptions. Sorry if this has already been asked but I could not find the response using the search function.
One last thing, I've seen several mail bugged which are told to be encoded in ISO-8859-1 but are encoded in Cp1252. I've used the javamail.charset.map to work around those mails but I was wondering if this should be not added by default.
Thanks,
Sylvain

I was checking the isOpen method of the IMAPFolder and I saw that the method return the opened field whatever happen during the keepConnectionAlive method. Is this an expected behavior since this method may return true even if the server side socket has been closed? For example, a successful connection has been done and the server closes the connection for any reason, the client calls the isOpen method and the noop method throws an exception.The callback method that processes the response from the server will clear the open flag if the connection fails.
Another thing, what is the reason behind hiding the POP3 errors? The server can return ERR but the API simply ignore them and return the default value. This is quite unexpected since the IMAP4 does throw exceptions. Sorry if this has already been asked but I could not find the response using the search function.Most of the POP3 commands are so simple that they don't typically return ERR. If the server is working properly
it will return the correct result to a valid command. Still, there's at least one place where an error should be
reflected to the caller, and I'll fix that. In what specific cases are you seeing ERR returned?
One last thing, I've seen several mail bugged which are told to be encoded in ISO-8859-1 but are encoded in Cp1252. I've used the javamail.charset.map to work around those mails but I was wondering if this should be not added by default.javamail.charset was created to work around the fact that old versions of the JDK didn't know all the standard
MIME charset names. "cp1252" doesn't seem to be a standard [MIME charset|http://www.iana.org/assignments/character-sets] name. If the message lists the
charset as "cp1252", use the technique in the [JavaMail FAQ|http://java.sun.com/products/javamail/FAQ.html#unsupen] to handle it. If the message lists the charset as
iso-8859-1 but really is encoded in cp1252 format (whatever that is), please report that bug to the owner of the
program that created the message. How you detect and handle incorrectly encoded data is up to you.

Similar Messages

  • IMAP and POP3 Monitoring

    Does anyone know how to monitor IMAP4 and POP3 for availability with SCOM? Something that could perform an authentication transaction and alert if it fails.

    Hi,
    You could import the Exchange Management Pack.
    Exchange 2010 Management Pack Guide
    https://technet.microsoft.com/en-us/library/ee758046%28EXCHG.140%29.aspx
    The documentation below is actually fairly decent.
    Monitoring Exchange 2010 with OpsMgr 2007 R2 (Part 4)
    http://www.msexchange.org/articles-tutorials/exchange-server-2010/management-administration/monitoring-exchange-2010-opsmgr-2007-r2-part4.html
    Note: Microsoft provides third-party contact information to help you find technical support. This contact information may change without notice. Microsoft does not guarantee the accuracy of this third-party contact information.
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact [email protected]

  • HT1657 why does every movie I download stops half way and says err=-50/err=-39?

    Why does every movie I download stop half way and say err=-50/err-39? I also have internet connection that is really good and it keeps saying to check that

    Perhaps try the "Error -50," "-5000," "8003," "8008," or "-42023" section in the Specific Conditions and Alert Messages: (Mac OS X / Windows) section of the following document:
    iTunes: Advanced iTunes Store troubleshooting

  • System.out and System.err

    Hi all,
    This is a stupid newbie question, but I could not find the answer on the Web
    site, so here goes: Where do System.out and System.err get written to? I'm
    trying to deploy some plain-vanilla stateless session beans that do a bunch
    of println() calls, but I can't see the output anywhere! The WebLogic
    Console shows no messages, /myserver/weblogic.log has nothing interesting,
    and there are no .log files anywhere that I can see. I even searched /tmp
    and found nothing of interest. What am I missing? Do I have to explicitly
    open a file for System.out and/or System.err? That doesn't sound right...
    - danz

    The simple answer to your questions are no and no.
    I recently logged a problem with BEA WebLogic technical support regarding
    this issue and their response is:
    You have two choices. You can either use standard Java file i/o to write
    your output to a file, or you can use our t3loggingservices to append
    messages into the weblogic.log
    The "jump point" for the logging services is at --
    http://www.weblogic.com/docs51/classdocs/javadocs/weblogic/common/LogService
    sDef.html
    It is actually very easy to use -- after you import the proper packages into
    your web application it is just as easy to use as System.out.println.
    John J. Feigal Voice (651)766-8787 (main)
    Sr. Technical Consultant (651)766-7249 (direct)
    Ensodex, Inc. Fax (651)766-8792
    4105 N. Lexington Ave., Suite 150 email [email protected]
    Arden Hills, MN 55126 WebSite http://www.ensodex.com
    "Jon Wynett" <[email protected]> wrote in message
    news:[email protected]...
    I'm running WebLogic as an NT Service. Is there any way to see the
    System.out.println messages? Can they be redirected to the weblogic.log
    file?
    We were running through a DOS Window and saw all the messages, however we
    ideally want to run Weblogic as a service.
    "Rob Woollen" <[email protected]> wrote in message
    news:[email protected]...
    I'm guessing that you started the server with the .exe file on Windows.
    If you're debugging with printlns, it's generally more conventient to
    use the startWebLogic.sh or startWebLogic.cmd files to start the server
    from a shell.
    By default, you'll see stdout and stderr in the window.
    -- Rob
    Dan Zivkovic wrote:
    Hi all,
    This is a stupid newbie question, but I could not find the answer on
    the
    Web
    site, so here goes: Where do System.out and System.err get written to?I'm
    trying to deploy some plain-vanilla stateless session beans that do abunch
    of println() calls, but I can't see the output anywhere! The WebLogic
    Console shows no messages, /myserver/weblogic.log has nothinginteresting,
    and there are no .log files anywhere that I can see. I even searched/tmp
    and found nothing of interest. What am I missing? Do I have toexplicitly
    open a file for System.out and/or System.err? That doesn't soundright...
    - danz

  • Smtp and pop3 host and port name of gmail server?????

    can any body give me smtp and pop3 host and port name of gmail server?????to send a mail......

    Just do a new initial context and lookup the datasource, in case you need other info like host name and port you can use MBEans like:
              InitialContext ctx = null;
                   // fetch managed server name by accessing the
                   // RuntimeServerMBean using the
                   // MBeanServer interface
                   ctx = new InitialContext();
                   MBeanServer server = (MBeanServer) ctx
                             .lookup("java:comp/env/jmx/runtime");
                   ObjectName service = new ObjectName(
                             "com.bea:Name=RuntimeService,Type=weblogic.management.mbeanservers.runtime.RuntimeServiceMBean");
                   managedServerName = (String) server.getAttribute(service,
                             "ServerName");

  • RE: (forte-users) Forte SMTP and POP3 Support

    Scaffolds includes in a protocol library an smtphandler which allows us to
    send emails. It works great! You can try contacting someone at Metamor to
    see if they can give you more information on this. I can't give you any
    code as it is part of their package. Sorry!
    -----Original Message-----
    From: Rottier, Pascal [mailto:Rottier.Pascalpmintl.ch]
    Sent: Wednesday, February 23, 2000 7:22 AM
    To: 'edwardsmjwillis.com'; kamranaminyahoo.com
    Subject: RE: (forte-users) Forte SMTP and POP3
    Support
    Mark,
    Unfortunately, Forte doesn't offer any ready-to-use internet
    protocoll
    support libraries (like FTP, Telnet, SMTP, POP3, NNTP,
    UU-code
    or MIME). I think this would be a valuable enhancement of
    Forte.
    Does any one know if SUN plans to include this into Forte?
    Does
    any one know if there is any third-party set of Tool-classes
    that
    supports this?
    Pascal
    > -----Original Message-----
    > From: edwardsmjwillis.com [SMTP:edwardsmjwillis.com]
    > Sent: Wednesday, February 23, 2000 3:36 PM
    > To: kamranaminyahoo.com
    > Subject: (forte-users) Forte SMTP and POP3 Support
    >
    >
    >
    > Hi,
    >
    > Our Forte development team are currently investigating how
    we can add
    > internet
    > mail capabilities to a Forte application. Our application
    needs to
    > send/receive
    > mails from a mail server in an NT environment. Does forte
    provide SMTP and
    > POP3
    > protocol support (libraries) so that we can use external
    connection class
    > to
    > connect to the server and send/ receive mails or do we
    have to use third
    > party
    > controls ?.
    >
    > Any help regarding code examples or third party solutions
    would be
    > appreciated.
    >
    > Thanks in advance
    >
    > Mark J Edwards
    > Senior Technical Specialist
    > Willis
    >
    > Email: edwardsmjwillis.com
    >
    >
    >
    >
    >
    > The information in this email and in any attachments is
    confidential and
    > may be
    > privileged. If you are not the intended recipient, please
    destroy this
    > message,
    > delete any copies held on your systems and notify the
    sender immediately.
    > You
    > should not retain, copy or use this email for any purpose,
    nor disclose
    > all or
    > any part of its content to any other person.
    >
    >
    > --
    > For the archives, go to:
    http://lists.xpedior.com/forte-users and use
    > the login: forte and the password: archive. To
    unsubscribe, send in a new
    > email the word: 'Unsubscribe' to:
    forte-users-requestlists.xpedior.com
    For the archives, go to:
    http://lists.xpedior.com/forte-users and use
    the login: forte and the password: archive. To unsubscribe,
    send in a new
    email the word: 'Unsubscribe' to:
    forte-users-requestlists.xpedior.com

    Hi,
    Unfortunatly, Forte does not provide SMTP and POP3 protocoles.
    But, you can use External connections to do it if you need.
    You can find a simple SMTP send mail sample code on
    http://perso.club-internet.fr/dnguyen/ . The receive should be as easy as the send.
    For MIME base 64 encoding and decoding, it should last one or two weeks of coding
    (if you need optimization).
    One advantage of coding this in Tool directly is the portability.
    In your case, on NT, you could also interface with MAPI using for instance the
    ActiveX interface.
    By that way, you will already have SMTP, POP3 and MIME.
    Hope this helps,
    Daniel Nguyen
    Freelance Forte Consultant
    http://perso.club-internet.fr/dnguyen/
    edwardsmjwillis.com a &eacute;crit:
    Hi,
    Our Forte development team are currently investigating how we can add internet
    mail capabilities to a Forte application. Our application needs to send/receive
    mails from a mail server in an NT environment. Does forte provide SMTP and POP3
    protocol support (libraries) so that we can use external connection class to
    connect to the server and send/ receive mails or do we have to use third party
    controls ?.
    Any help regarding code examples or third party solutions would be appreciated.
    Thanks in advance
    Mark J Edwards
    Senior Technical Specialist
    Willis
    Email: edwardsmjwillis.com
    The information in this email and in any attachments is confidential and may be
    privileged. If you are not the intended recipient, please destroy this message,
    delete any copies held on your systems and notify the sender immediately. You
    should not retain, copy or use this email for any purpose, nor disclose all or
    any part of its content to any other person.
    For the archives, go to: http://lists.xpedior.com/forte-users and use
    the login: forte and the password: archive. To unsubscribe, send in a new
    email the word: 'Unsubscribe' to: forte-users-requestlists.xpedior.com

  • System.out and System.err  How to get to show up in log

    Does anyone know if there is anyway to get System.out and System.err
    messages to appear in the log?
    Trying to build and debug a JSP project is a complete nightmare when the
    remote developers cannot see System.out or System.err messages from helper
    classes.
    Platform= Windows NT 4.0
    Weblogic running as a Service
    Thanks in advance!

    Write a wrapper class to redirect the std out to what ever stream you want.
    HTH
    Saman

  • System.out and System.err to files

    Hi !
    Could somebody tell me, how I can forward all System.out.println and System.err.println Messages from
    my Java modules (EJB, Servlets) to different files respectively.
    Thanks
    Steve

    I think you could create PrinStreamS from your desired output files and then use System.setOut(<...>) and System.setErr(<...>). Place this code in a servlet that you load at startup...

  • System.our and System.err

    Hi,
    Is there a buffer size for system.out and System.err.
    If so how can we retrieve the buffer size.
    Thanking You,
    Chamal.

    There is no way to determine the characteristics of the OutputStream behind System.out or System.err.
    You could provide your own streams (via setOut() and/or setErr() methods)...
    Why do you need to know?

  • Temporarily routing System.out and System.err to a String

    Hi everybody,
    Does anyone know of a way to temporarily route System.out and System.err directly from the console into a String, then set it back to its default to the console? I know how to reroute to a text area:
    TextAreaOutputStream taos = new TextAreaOutputStream(yourTextArea);
    PrintStream ps = new PrintStream(taos);
    System.setErr(ps);
    System.setOut(ps);But it doesn't seem like there is either a way to reroute to a String or a way to switch back to the default routing afterward. Can anyone give me some advice on how to do this, please?
    Thanks,
    Jezzica85

    Too late to the party?
    import java.io.*;
    public class Redirection {
        public static void main(String[] args) {
            System.out.println("To console");
            PrintStream old = System.out;
            ByteArrayOutputStream baos = new ByteArrayOutputStream();
            PrintStream ps = new PrintStream(baos);
            System.setOut(ps);
            System.out.println("To memory");
            System.out.print("No 'ln'");
            //System.out.flush(); //needed?
            System.setOut(old);
            System.out.println("To console again?");
            System.out.println("earlier I wrote...");
            byte[] data = baos.toByteArray();
            String message = new String(data);
            System.out.println(message);
    }

  • Forte SMTP and POP3 Support

    Hi,
    Our Forte development team are currently investigating how we can add internet
    mail capabilities to a Forte application. Our application needs to send/receive
    mails from a mail server in an NT environment. Does forte provide SMTP and POP3
    protocol support (libraries) so that we can use external connection class to
    connect to the server and send/ receive mails or do we have to use third party
    controls ?.
    Any help regarding code examples or third party solutions would be appreciated.
    Thanks in advance
    Mark J Edwards
    Senior Technical Specialist
    Willis
    Email: edwardsmjwillis.com
    The information in this email and in any attachments is confidential and may be
    privileged. If you are not the intended recipient, please destroy this message,
    delete any copies held on your systems and notify the sender immediately. You
    should not retain, copy or use this email for any purpose, nor disclose all or
    any part of its content to any other person.

    Hi,
    Unfortunatly, Forte does not provide SMTP and POP3 protocoles.
    But, you can use External connections to do it if you need.
    You can find a simple SMTP send mail sample code on
    http://perso.club-internet.fr/dnguyen/ . The receive should be as easy as the send.
    For MIME base 64 encoding and decoding, it should last one or two weeks of coding
    (if you need optimization).
    One advantage of coding this in Tool directly is the portability.
    In your case, on NT, you could also interface with MAPI using for instance the
    ActiveX interface.
    By that way, you will already have SMTP, POP3 and MIME.
    Hope this helps,
    Daniel Nguyen
    Freelance Forte Consultant
    http://perso.club-internet.fr/dnguyen/
    edwardsmjwillis.com a &eacute;crit:
    Hi,
    Our Forte development team are currently investigating how we can add internet
    mail capabilities to a Forte application. Our application needs to send/receive
    mails from a mail server in an NT environment. Does forte provide SMTP and POP3
    protocol support (libraries) so that we can use external connection class to
    connect to the server and send/ receive mails or do we have to use third party
    controls ?.
    Any help regarding code examples or third party solutions would be appreciated.
    Thanks in advance
    Mark J Edwards
    Senior Technical Specialist
    Willis
    Email: edwardsmjwillis.com
    The information in this email and in any attachments is confidential and may be
    privileged. If you are not the intended recipient, please destroy this message,
    delete any copies held on your systems and notify the sender immediately. You
    should not retain, copy or use this email for any purpose, nor disclose all or
    any part of its content to any other person.
    For the archives, go to: http://lists.xpedior.com/forte-users and use
    the login: forte and the password: archive. To unsubscribe, send in a new
    email the word: 'Unsubscribe' to: forte-users-requestlists.xpedior.com

  • To set path of SMTP and POP3

    hello sir
    i m old to java but new to java mail.........
    i m intrested in making a mail application and in several tutorials i have read that we have to set SMTP and POP server.........but i can only work on my machine and does not know my SMTP and POP3 server name .so what shoud i do.........
    i m desperete to make this mail application.........
    plz help me out.....................plz please
    thank you
    gaurav

    Hello,
    Crystal reports is for a long time not anymore supported by Microsoft. 
    Moreover for sure not in this forum for api's components and classes for the user interface Windows Forms
    Try direct the SAP community for Crystal reports for .Net
    http://scn.sap.com/community/crystal-reports
    Success
    Cor

  • SMTP and POP3 connector for ORACLE8i

    I've heard that there is a SMTP and POP3 connector build in into
    the ORACLE8i Release ?
    I saw this on a technical demonstraion ...
    Now i look for the documentation and configuration hints.
    Where to look - or isn't it yet available ?
    Thanks in advance
    JACK
    null

    Properties.put("mail.smtp.host","www.hotmail.com");
    ... is correct, but if you are permitted to make a connection I'd be surprised. Well, no you can't, the buggers won't let you. You need to use Pop3 + yahoo and be a registered user, eg;-
    Store.connect("pop.mail.yahoo.com", -1, "yourIDname", "yourPassword");

  • Thunderbird email client times out making IMAP and POP3 connections to gmail and hotmail.

    After autoconfiguring several gmail accounts with Thunderbird, and then using them, they stopped working after I switched to Verizon High Speed DSL.  All of the accounts time out while trying to get email.   Non list an error.  While trying to auto configure a hotmail account, it failed during password loggin.
    Disabled Windows Firewall
    Disabled Norton Firewall
    Disabled modem-router firewall
    checked IMAP settings in Thunderbird.
    deleted and then reautoconfigured the accounts to reset the passwords.
    enabled IMAP manually in gmail and POP3
    checked SMTP ports and IMAP default port numbers
    checked for normal password
    checked for SSL/TSL text
    Checked with Verizon support who said that they don't help Thunderbird clients.
    Tried logging in manually to all of the accounts to make sure the passwords and usernames were correct ...works.
    help! "connection to server timed out"

    Not exactly the same, but I am pretty sure the fix will be the same. 
    give it a whirl and let us know.
    Solution for sending MS Outlook and SMTP e-mail through Verizon FIOS for GoDaddy e-mail
    The FIX...I had to log onto the xxxxxxxx(at)verizon.net e-mail account via the WEBMAIL version for Verizon.
    I then went to Options-->More Options on the top, right menu.
    Go to the Accounts menu on the left.
    Click Add Account button toward the top.
    I only entered information for Sending Mail.
         Account name (any name you like...I called it GoDaddy)
         From Name = my display name
         e-mail address = my GoDaddy e-mail address
         I then moved my cursor to the username field in the Receiving Mail just so my cursor wasn't in the e-mail address field anymore.
    Verizon couldn't even help me with this.  This should be a standard check for them whenever they receive a call for SMTP issues.  I think they are trying to get everyone to use their (at)verizon.net e-mail account as their primary account.  This will help them retain or gain future business.  I think it's bad for business overall.
    ==========
    Note the "Test Account Settings..." button failed on the test send of a message, but all other tests passed fine.  My messages are sent fine even with this part of the tests failing.
    The above is true for a lot of third party email providers (not programs but email providers) 

  • SMTP and POP3 mail unavailable

    Hi,
    I have installed and configured eMail application on collaboration suite. SMTP (in and out) and POP3 are started.
    When I try to connect from Outlook, it finds SMTP and POP3 server but cannot login to send/retrive emails.
    Also when I try to send mail from WebMail, the application returns the error:
    An error occurred while sending the message
    Server returned: Could not connect to SMTP host: OraServer, port: 25; nested exception is: java.net.ConnectException: Connection refused: connect
    Please help me to solve this issue.

    For communications, use Sockets.
    For what to send over them, see the following:
    SMTP - RFC 821: ftp://ftp.isi.edu/in-notes/std/std10.txt
    POP3 - RFC 1939: ftp://ftp.isi.edu/in-notes/std/std53.txt
    ...it's all in there.
    HTH,
    Fredrik

Maybe you are looking for

  • Office 2013 - How to Add Dropbox as a Cloud Service

    Office 2013 has a great new feature where cloud storage services can register as a place within the open/save menu, and within the user's account. While we wait for Dropbox to officially support this, I have a workaround for those people using Office

  • Photoshop Elements or Lightroom for editing Jewellery?

    Hi there, I am new to photo editing and wanted to know the best software that's best for editing jewellery. I am really not sure if Lightroom or Elements would be best and would appreciate anyones expert advise and experience.  Maybe there is another

  • How can I update iPhoto and iMovie on a different apple id without having to buy the apps again?

    I started up my macbook pro 2 years ago using someone else's apple id. I just recently updated my software to OS X Yosemite and now I can't open iPhoto & iMovie.  It says I have to download the latest version. How can I download it using my own apple

  • Link to URL -- How to use it?

    Hi Experts, I have created LinktoURL UI element in my WD program1. I have to call WD program2 from WD program1 using this LinktoURL UI element. I had earlier written code like as below. The code was working fine. Now my problem is that code is not wo

  • Blocked Account; Resetting Password Not Working

    Over a week ago my account was blocked due to suspicious activity.  I have followed the instructions to reset my password six times now and I am still told that I cannot purchase Skype credits or use the $25 I already have in my account.  Every time