Code Monkey home page Code Monkey logo

Comments (2)

smiley22 avatar smiley22 commented on July 20, 2024

No there's no timeout. Some servers require clients to issue NOOP commands every once in a while as an indicator that the connection is still alive. If a client fails to do this, the server may close the connection. It almost sounds as if this is what happens.

If you want to do some digging, the NOOP code is in the "IssueNoop" method. You could put a trace or debug print in there to check if it's being called at all.

from s22.imap.

bobyenser avatar bobyenser commented on July 20, 2024

Ok, it appears to be working now. My windows service has been running for about an hour now and still receiving new messages. Here's what I changed.

  1. Downloaded the source code from the Master branch
  2. Compiled the code and used that as my reference
  3. In my NewMessage event handler, I check for "if (e.MessageCount > 0)" before processing the message. It appears the NewMessage event is sometimes raised when MessageCount = 0. Possibly when the NOOP is executed?

I didn't spend the time digging in to this more. Right now it works and that's all I care about. So either a bug fix in the Master branch fixed it...or my MessageCount check.

Thanks for the quick reply...and great IMAP Library.

Many Thanks!

Bob

from s22.imap.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.