How can I login to a Gmail account and get number of messages in the INBOX
mailbox with TIdIMAP4
component ?
相关问题
- Is there a Delphi 5 component that can handle .png
- Is there a way to install Delphi 2010 on Windows 2
- Is TWebBrowser dependant on IE version?
- iOS objective-c object: When to use release and wh
- DBGrid - How to set an individual background color
相关文章
- Best way to implement MVVM bindings (View <-> V
- Windows EventLog: How fast are operations with it?
- How to force Delphi compiler to display all hints
- Coloring cell background on firemonkey stringgrid
- HelpInsight documentation in Delphi 2007
- Can RTTI interrogate types from project code at de
- How to read the Content Type header and convert in
- What specifically causes EPrivilege to be raised?
To get the total number of messages in your Gmail's inbox, you need to, first connect to the Gmail IMAP server with your credentials, select Gmail's inbox mailbox and for that selected mailbox read the value of the
TotalMsgs
property.In code it may looks like follows (this code requires OpenSSL, so don't forget to put the
libeay32.dll
andssleay32.dll
libraries to a path visible to your project; you can download OpenSSL libraries for Indy in different versions and platformsfrom here
):You may optionally download a
demo project
which includesOpenSSL v1.0.1c
libraries for i386 platform for 32-bit applications (compiled in Delphi 2009).