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

Discussion in 'iOS Libraries' started by Alberto Iglesias, Aug 23, 2015.

  1. Alberto Iglesias

    Alberto Iglesias Well-Known Member Licensed User

    [​IMG]

    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

    [​IMG]

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

    iPOP
    Author: Alberto Iglesias (alberto@visualnet.inf.br)
    Version: 1.0.0

    iPOP
    Author:
    Alberto Iglesias (alberto@visualnet.inf.br)
    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


    [​IMG]






    Download Library
    [​IMG]


    * 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.


    [​IMG]
     

    Attached Files:

    moster67 likes this.
  2. little3399

    little3399 Active Member Licensed User

    Great Work !
     
  3. valentino s

    valentino s Active Member Licensed 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.
     
  4. Alberto Iglesias

    Alberto Iglesias Well-Known Member Licensed User

    Hello Valentino,

    In this library you need pass server, pass, user, port to work.

    You can´t get access directly the accounts configured in default mail app, is protected.
     
    valentino s likes this.
  5. wl

    wl Well-Known Member Licensed User

    I'm looking for this library but I received a 404 when trying to download?

    Thanks !
     
  6. Alberto Iglesias

    Alberto Iglesias Well-Known Member Licensed User

  7. wl

    wl Well-Known Member Licensed User

    Great ! Unfortunately no longer free ...
     
  8. wl

    wl Well-Known Member Licensed 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:

    Code:
    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: Apr 7, 2018
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice