Git Product home page Git Product logo

Comments (8)

DrunkenMoose avatar DrunkenMoose commented on September 22, 2024

Any help would be very helpful!

from lucee-cfimap.

spraguey avatar spraguey commented on September 22, 2024

I'm not sure how much help this is, but we are using this library and have almost identical code to what you posted here. It is working well for us. We are also connecting to imap.gmail.com.

Some things to check...

  1. Does it work if you specify a folder name in the getHeaderOnly call? folder="Inbox"
  2. Confirm that IMAP is actually enabled in the Gmail account settings area.
  3. Newer Gmail accounts have "allow access from insecure apps" turned off by default. This connection may be considered an insecure app. https://support.google.com/accounts/answer/6010255?hl=en

Because the same library is working for others using Gmail, I would lean toward the issue being specific to the account you are connecting to.

The only other possibility I can think of is a difference in the underlying Java version that is causing an issue. We're on 1.8.0_131.

Hopefully this helps!

from lucee-cfimap.

DrunkenMoose avatar DrunkenMoose commented on September 22, 2024

Hey Spraguey,

Thanks for the response. I will now try the different things you mentioned but I firstly wanted to state something.

I'm currently using the Lucee imap tag and with this I can successfully retrieve emails, it's just that most of the coldfusion imap tag functionality is missing. So by getting these emails I've to say that I think the gmail imap server is correctly implemented.

But I will try to dig some deeper to get this tag working. It would be very helpful to get the full functionality the imap has to offer.

Thanks again!

from lucee-cfimap.

spraguey avatar spraguey commented on September 22, 2024

Interesting. Given that Lucee IMAP works, you are right that it is probably not an issue with your Gmail account. I'm at a loss for what else it could be, then, because it is working for us. Maybe just different Lucee or Java versions?

from lucee-cfimap.

DrunkenMoose avatar DrunkenMoose commented on September 22, 2024

Hey,

I also said in the first post that I'm only using one file. But the library has two different imap.cfc files. It looks like the one in the folder is the logic and the one in the parent folder is a overlay code which you can use to get the imap functionality.

Should I use both files. If yes, how can I use the overlay cfc file?

Thanks in advance!

from lucee-cfimap.

DrunkenMoose avatar DrunkenMoose commented on September 22, 2024

UPDATE:

I've taken another look and found the solution! I added the other overlay cfc as a component and called it with createObject. I have taken a good look which parameters are expected and now it gives indeed a value back! I now can i.e. create a folder or delete it. With all the other functions available.

Thanks again for your help! Hope I can make a good email importer with this.

from lucee-cfimap.

ChrisDunk avatar ChrisDunk commented on September 22, 2024

Hi DrunkenMoose,

Please can you post the code of how you did this? I am having the same issue.

Lucee 5.2.8.50
OS | Windows Server 2012 R2 (6.3) 64bit
Apache Tomcat/8.0.28
1.8.0_66 (Oracle Corporation) 64bit

UPDATE: Oops, I had not copied the imap folder into the tags folder, just the imap.cfc.
Working now.

from lucee-cfimap.

Tropicalista avatar Tropicalista commented on September 22, 2024

Hi guys, sorry for the late response.

I have just tested this with my gmail account and it's working properly. I think the problem is with the default folder on gmail, which is "INBOX". Please can you give me more details?

from lucee-cfimap.

Related Issues (11)

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.