Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • 04:22
    rlebeau labeled #269
  • 04:22
    rlebeau opened #269
  • Oct 08 19:00

    Fulgan on Restructure

    Bug fix for a typo in TIdIMAP4.… (compare)

  • Oct 08 19:00

    Fulgan on master

    Bug fix for a typo in TIdIMAP4.… (compare)

  • Oct 02 21:00

    Fulgan on Restructure

    Updating TIdIMAP4's InternalSea… (compare)

  • Oct 02 21:00

    Fulgan on master

    Updating TIdIMAP4's InternalSea… (compare)

  • Sep 20 21:50

    Fulgan on master

    Embarcadero patch for race cond… (compare)

  • Sep 20 21:50

    Fulgan on Restructure

    Embarcadero patch for race cond… (compare)

  • Sep 10 18:50
    rlebeau closed #268
  • Sep 10 18:50
    rlebeau commented #268
  • Sep 10 18:50

    Fulgan on Restructure

    Fix for TIdResponseHeaderInfo.S… (compare)

  • Sep 10 18:50

    Fulgan on master

    Fix for TIdResponseHeaderInfo.S… (compare)

  • Sep 10 18:49
    rlebeau labeled #268
  • Sep 10 18:49
    rlebeau labeled #268
  • Sep 10 18:49
    rlebeau assigned #268
  • Sep 10 18:49
    rlebeau review_requested #268
  • Sep 09 13:15
    gjdoornink opened #268
  • Aug 28 21:00

    Fulgan on Restructure

    Setting TIdSSLIOHandlerSocketBa… (compare)

  • Aug 28 21:00

    Fulgan on master

    Setting TIdSSLIOHandlerSocketBa… (compare)

  • Aug 28 19:42
    rlebeau milestoned #183
Marcos Douglas B. Santos
@mdbs99
I believe the code works in both platforms however, I haven't use Indy 10 yet and I don't know the parameters to make things works - a simple demo would be better
Remy Lebeau
@rlebeau
@mdbs99 DFMs are UI-related code. Indy doesn't provide UI demos for Lazarus, so you'll have to recreate the UIs in Lazarus as needed.
Marcos Douglas B. Santos
@mdbs99

you'll have to recreate the UIs as needed

The *.dfm is unreadable because is binary, not text - impossible to recreate, if you don't have Delphi

Remy Lebeau
@rlebeau
@mdbs99 There are 3rd party resource viewers, such as XN Resource Editor, that recognize Delphi DFM resources and display them in the proper text format
Marcos Douglas B. Santos
@mdbs99
I don't know - I will search - but do you have a simple example using POP3 on Google accounts?
And about the SSL - I got the last file here https://indy.fulgan.com/SSL/
Is it still need it?
Remy Lebeau
@rlebeau
@mdbs99 I've already posted up-to-date examples in various online forums showing how to connect to Gmail with Indy
Marcos Douglas B. Santos
@mdbs99
I'm searching... but I got 2006... 2007... I believe the code in version 10 could be different
@rlebeau I would like to see a simple, but completed, demo that we know that works on Lazarus - if you can provide this example, I will appreciate very much
...if you have time, of course
Remy Lebeau
@rlebeau
@mdbs99 I don't, actually. And even if I did, I can't provide Lazarus examples, as I don't have FPC/Lazarus. And I don't have access to the demos linked on Indy's website, so I can't update them with non-binary DFMs. All I can say is search around for demos, I assure you the info is out there. For instance, https://stackoverflow.com/a/51736944/65863 explains how to configure TIdPOP3 to connect to GMail. Once you are actually connected, not much has changed in POP3 over the years, so old demos should suffice.
Marcos Douglas B. Santos
@mdbs99
Could be Delphi, but an update code that you know that will work on Lazarus too
@rlebeau Ok, it can help me, thanks
Ah, and about the SSL dlls, we still need it?
Remy Lebeau
@rlebeau
@mdbs99 yes, they are still needed
Marcos Douglas B. Santos
@mdbs99
I've got the last file openssl-1.0.2p-x64_86-win64.zip- will it work with Indy 10?

@mdbs99 also see https://stackoverflow.com/questions/37265982/

Thanks, I will try this too

@mdbs99 yes, that file will work with Indy 10
Marcos Douglas B. Santos
@mdbs99
All right - thanks again - even it was in 2012, seems that they are using Indy 10
@rlebeau sorry bother you with questions that I can search on the Internet - it's because there are some issues among libs that works in Delphi and Lazarus and I'm trying to cut corners cause my deadline - thank you
Marcos Douglas B. Santos
@mdbs99
@rlebeau when I try to connect on GMail I receive this error:
[Debugger Exception Notification]

Project Postman raised exception class 'EIdReplyPOP3Error' with message:
Web login required: https://support.google.com/mail/answer/78754

 In file 'Protocols\IdReplyPOP3.pas' at line 337

[Ignore this exception type]

[Break] [Continue]
There is not 2-steps
Remy Lebeau
@rlebeau
@mdbs99 That is an error message from Gmail itself. It means that you are trying to login to Gmail's POP3 server using your normal password in an unsecure manner. Gmail needs to authorize your PC to access its POP3 server using that password. The error tells you to login to Gmail via HTTP first, so it can authorize your PC, and then you should be able to login to POP3 from the same PC. But this is not necessary if you enable 2-factor authentication in Gmail. In that case, you only need to generate an App-Specific password in your GMail settings, and then you can use that password with TIdPOP3 instead of your normal Gmail password, and that works fine. This is related to Gmail's security model, it is not specific to Indy (though the reason this affects Indy is because Indy does not yet implement OAuth authentication (see IndySockets/Indy#192), which Gmail prefers)
Kudzu
@czhower
Seems what you need to know is in your own post:
https://support.google.com/mail/answer/78754
Marcos Douglas B. Santos
@mdbs99
@czhower of course I've already read that - but my user/passwd is Ok (I can login using browser)
@rlebeau I did the login using "Chrome anonymous windows" - maybe this is not enough
Another thing is: I have a lot accounts. How can I know which account has or no 2-factor?
Remy Lebeau
@rlebeau
@mdbs99 Why anonymous? In any case, if that doesn't work, you have only 2 choices, both of which are stated in that URL Gmail mentions in the error message: 1) enable 2-factor authentication in your Gmail settings, and then use an App-Specific password with Indy; or 2) enable "Less Secure Apps" in your Gmail settings.
@mdbs99 you will have to login to each account via a Web browser and check their settings.
Marcos Douglas B. Santos
@mdbs99

Why anonymous?

Because it's not my account, but only a test - I won't have access for the real accounts - this will be a system that will use those accounts

Remy Lebeau
@rlebeau
@mdbs99 well, then you only have 1 choice - let the user provide your app with the necessaary userid/password, and then require the user to pre-configure Gmail accordingly.
Marcos Douglas B. Santos
@mdbs99

enable "Less Secure Apps" in your Gmail settings.

I have tried that one - using anonymous... - and didn't work

Remy Lebeau
@rlebeau
@mdbs99 you can't use an anonymous login with "Less Secure Apps" (well, you can't use an anonymous login, period. This is not FTP, afterall), you still need a real userid/password for that
Marcos Douglas B. Santos
@mdbs99
No no... I meant Chrome anonymous browser... but with real user/passwd, of course
Kudzu
@czhower
@mdbs99 That link provides far more than "check your user name and password". It contains explicit info why even that may fail.
Remy Lebeau
@rlebeau
@mdbs99 FYI, in the case where you need to login via HTTP to authorize the PC when 2-factor auth is not enabled, are you using https://accounts.google.com/DisplayUnlockCaptcha, as mentioned in the error's URL (as well as this doc - https://support.google.com/accounts/answer/6009563 )?
Marcos Douglas B. Santos
@mdbs99
@czhower Ok, however I have a LOT of accounts - it's not my personal account
Kudzu
@czhower
gmail with pop3 and SMTP is a royal PITA, even often with mail clients such as Thunderbird etc.
Remy Lebeau
@rlebeau
@czhower these issues would affect IMAP, too
Marcos Douglas B. Santos
@mdbs99

FYI, in the case where you need to login via HTTP to authorize the PC when 2-factor auth is not enabled, are you using

@rlebeau ok but I need "a system" to solve, not only try and solve this test account - do you understand? Because I have a lot of accounts so, I cannot do this steps in each one

Maybe the 2-step could be the best way - still thinking
Kudzu
@czhower
yes, any non web access.
google is doing this for security reasons, but basically also wants people to use the web interface. Its very biased towards that.
Marcos Douglas B. Santos
@mdbs99
Yeah, I agree
Remy Lebeau
@rlebeau
@mdbs99 I already told you what you need to do on your end - just take a userid/password as input from the user of an account. It is the user's responsibility, not yours, to make sure what they enter actually works. That is outside your app's scope. Whether they use the real password with "Less Secure Apps" enabled, or use a App-Specific Password with 2-factor enabled, that is on their end, not yours
Marcos Douglas B. Santos
@mdbs99
But App-Specific Password with 2-factor needs something outside the system, as I understand - a random number, for example, that the user should type... right?
My problem is that system do not have UI - it's like a batch process: I will connect in each account, download the mails, do a lot of process and parsers, etc
Think in that accounts as tickets or issues - users complain send emails for those accounts and this system will parse all those emails... running in a server, not user computer