NetTalk Central

Author Topic: download all message issue  (Read 3209 times)

TimR

  • Newbie
  • *
  • Posts: 28
    • View Profile
download all message issue
« on: April 05, 2018, 04:36:12 PM »
I'm trying to download all messages (even previously downloaded ones), from gmail.  However after the first time I download the email, it becomes invisible to my download client.  Also I've noticed that if I set the OptionsDelete=1 property, it is basically ignored (or is something more required to delete the message?). I'm not sure if it is a gmail issue or something else is going on.  Here is my code for downloading email:

      ThisEmailReceive.Server = POPServer
      ThisEmailReceive.Port = POPPort
      ThisEmailReceive.User = Username
      ThisEmailReceive.Password = Password
      ThisEmailReceive.OptionsDelete = 1
      ThisEmailReceive.OptionsDontSaveAttachments = 0
      ThisEmailReceive.OptionsDontSaveEmbeds = 1
      ThisEmailReceive.attachmentPath = CLIP(IncomingDirectory) & '\'
      ThisEmailReceive.SSL = POPRequiresSSL
      if ThisEmailReceive.SSL
        ThisEmailReceive.SSLCertificateOptions.CertificateFile = ''
        ThisEmailReceive.SSLCertificateOptions.PrivateKeyFile = ''
        ThisEmailReceive.SSLCertificateOptions.DontVerifyRemoteCertificateWithCARoot = 1
        ThisEmailReceive.SSLCertificateOptions.DontVerifyRemoteCertificateCommonName = 1
        ThisEmailReceive.SSLCertificateOptions.CARootFile = '.\CaRoot.pem'
      end
      ThisEmailReceive.Decide(NET:EmailDownload)
      ThisEmailReceive.Ask(NET:EmailDownload)

Ideas?

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11158
    • View Profile
Re: download all message issue
« Reply #1 on: June 19, 2018, 02:58:05 AM »
Its a Gmail issue. Once you've downloaded from Gmail it marks it as "downloaded" and it does not download it again.

Cheers
Bruce