B4i Library iPOP - Email Protocol - Easy way to retrieve email (GMAIL,POP3, etc)

iPopTop.png


This library was made based on POP Protocol

Installation instructions:

- Copy the *.a and *.h files into the folder "Libs" in your MAC or in your MAC HOSTED by AnywhereSoftware, normally in "B4i-MacServer\Libs" folder

-Copy the iPOP.xml to your custom libraries folder in B4i
- Select in your REFERENCED LIBRARIES

RefiPop.png


Version history:
V1.0.0 (First public release):
- Initial version

iPOP
Author: Alberto Iglesias ([email protected])
Version: 1.0.0

iPOP
Author:
Alberto Iglesias ([email protected])
Version: 1
  • POP3
    Events:
    • DownloadCompleted (Messages as List )
    • onInitialized ( )
    Methods:
    • DeleteAllMessages
      Delete all messages from server
    • DeleteMessagesByUidl: (uidl As String)
      Delete message from your UIDL from server
    • DownloadInfoMailBox As String
      Download Mailbox Information
    • DownloadMessageByUidl: (uidl As String) As Int
      Download message from your UIDL from server
    • DownloadMessages As Int
      Download all messages from server
    • Initialize (EventName As String)
      Initializes the object.
    Properties:
    • Author As String [read only]
      Author of this Library
    • ConnectionTypeClear As BOOLEAN
      Enable/Disable SSL Mode
    • DebugMode As BOOLEAN
      Enable/Disable Debug mode from Library
    • OnlyHeaders As BOOLEAN
      Download OnlyHeaders or Full Email
    • POPPassword As String
      POP Server Password
    • POPPort As Int
      POP Server Port
    • POPServer As String
      POP Server Hostname
    • POPUsername As String
      POP Server Username
    • Version As String [read only]
      Library Version


B4iShotPop.png






Download Library



* This version is fully functional, the only one difference is when download emais from server, sometimes can be show a donation message.
Please consider a simple €10 donation and I send to you the Library without "Donationware" message alert.


 

Attachments

  • iPOPSample.zip
    3.6 KB · Views: 38

valentino s

Active Member
Licensed User
Longtime User
I've discovered now your library. Thanks, it's great.
May I suppose I have to add manually popserver popuser popport poppassword ?
Is it correct I can't access directly to email accounts already configured on the device due to security reasons in iOS ?
Thanks once more.
 

wl

Well-Known Member
Licensed User
Longtime User
I'm looking for this library but I received a 404 when trying to download?

Thanks !
 

wl

Well-Known Member
Licensed User
Longtime User
I'm downloading all mails and in the DownloadCompleted event I delete all mails using DeleteAllMessages.

When using non ssl this works but using SSL the DeleteAllMessages blocks.

It fails and waits for a timeout (30s):
This is the log:

B4X:
ChilkatLog:
  GetUidls:
    DllDate: Jun 23 2015
    ChilkatVersion: 9.5.0.51
    UnlockPrefix: DABOAIMAILQ
    Architecture: Little Endian; 64-bit
    Language: IOS Objective-C
    VerboseLogging: 0
    pop3OpenConnection:
      closePopConnection:
        No POP3 socket connection exists.
      --closePopConnection
      Connecting to POP3 server
      hostname: myserver
      port: 995
      tls: 0
      connectTimeoutMs: 30000
      isInSshTunnel: 0
      Connected to POP3 server
      socketOptions:
        SO_SNDBUF: 263520
        SO_RCVBUF: 132480
        TCP_NODELAY: 4
        SO_KEEPALIVE: 8
      --socketOptions
      recvUntilMatch: Socket operation timeout.
      pop3_getResponseN2: Socket operation timeout.
      Failed to received remainder of POP3 multi-line response.
      matchStr:
    --pop3OpenConnection
    Failed to connect to POP3 server.
    Failed.
  --GetUidls
--ChilkatL

Any idea ?

Tx
 
Last edited:
Top