[PAID] IMAPClient: Extension to read emails from IMAP server [$6 or INR 350]

1.Introduction

Description: This extension can be used to read emails from imap server.Although it is primarily for reading emails but some minor writing is also supported.
Latest Version: 1.1
Released: 2021-04-25T18:30:00Z
Last Updated: 2021-11-03T18:30:00Z

2.Blocks

image

image

image

image

image

3.Documentation

  • Closed
    Event invoked when server closes connection
    image
  • Connected
    Event invoked when connection is established with server
    image
  • Disconnected
    Event invoked when request to disconnect connection with server has been succeeded
    image
  • FolderStateChanged
    Event invoked when currently opened folder's state changes
    image
    state ~ text (Connected,Disconnected,Closed)
  • GotError
    Event invoked when any error occurs
    image
    errorMessage ~ text
  • GotFlagsList
    Event invoked after getting requested message's flags
    image
    flagsList ~ List< Integer >
  • GotFoldersList
    Event invoked after getting folders list
    image
    list ~ List < String >
  • GotMessageInfo
    Event invoked after getting requested message's information
    image
    infoDictionary ~ Dictionary
  • GotSubjectList
    Event invoked after getting subject's list
    image
    subjectList ~ List < String >
  • ReceivedNewMessage
    Event invoked when a message in currently opened folder changes or a new is arrived
    image
    id ~ int (Message Number which can be used to get information using GetMessageInfo method)
  • ReceivedNotification
    Event invoked when server sends a notification or message
    image
    type ~ int
    message ~ text
  • RetrievedMessages
    Event invoked when messages has been retrieved
    GetMessageInfo and related blocks should be only called once messages has been retrieved
    image
  • CloseFolder
    Closes currently opened folder
    image
  • Connect
    Tries to connect to the server
    image
    host ~ text
    port ~ int (usually 993)
    protocol ~ text (SSL Or TLS)
    userName ~ text
    password ~ text
  • Disconnect
    Manually closed connection with server
    image
  • GetFoldersList
    Tries to get list of folders with given filter
    image
    filter ~ text
    Possible Filters: empty string , * , %
  • GetMessageFlags
    Tries to get given message's flags
    Useful if you want to filter messages using flags
    image '
    id ~ int
  • GetMessageInfo
    Gets given message's information
    image
    id ~ int
  • GetSubjectList
    Gets subject's list within range
    from = 0 and to = 0 means all message's subjects will be retrieved
    image
    from ~ int
    to ~ int
  • IsConnected
    Returns whether connection is open or not
    image
    Returns boolean
  • MessagesCount
    Returns total message's count in current folder
    image
    Returns int
  • OpenFolder
    Tries to open folder with given mode and triggers event FolderStateChanged
    image
    folderName ~ text
    mode ~ int
  • RetriveMessages
    Retrieves messages within given range
    image
    from ~ int
    to ~ int
  • SetFlag
    Sets flag on given message
    image
    id ~ int
    flag ~ int

4.Buy

Kindly send me a PM if you want to pay with UPI.
Thank you. :slightly_smiling_face:

5.ChangeLog

Version 1.1
  • Fixed bug in GetFolderList which was returning an appended list of folders

Hope it helps!

13 Likes

Nice :slightly_smiling_face: extension @vknow360

2 Likes

Where to buy?

volume_up
13 / 5000
Risultati della traduzione
where to buy

1 Like

You should have received the mail.

1 Like

1 Like

Actually, first you will have to select the folder from list and then click on OpenFolder.
After that you can get messages.
Flow should be like this:
Connect
Get Folders list
Open Folder
Get Subject List
Open that specific message
Get the message info

One thing you should note that only messages which have been retrieved can be opened.
So you need to retrieve subject list and messages alternately.

Ok, the email is raw email.

Message Info is a dictionary and body can be html.

1 Like

You just missed commission of PayPal.

1 Like

Please, I've tryed this test apk, and once I introduce the connection details, it apparently works when I click on the "Connect" botton (it appears the "+OK POP3 ready"), but after that, when I click on the "Folder List" botton, the "Not connected" message appears... Am I doing something wrong?
Thank you in advance.

This should not appear as extension uses IMAP and not POP3.
Can you show a video of error?

1 Like

Thank you for your interest.

I've finally solved the problem (I wasn't working with the right details to connect). Sorry for that.

The thing is that an error window appears now when I click on the "Getlist" button (I've previously chosen the folder, and the app is able to count the number of messages, so I think everything is working properly at that time). The error window says:

"Select list item: List index too large
Select list item: Attempt to get item number 2 of a list of length 1:[""]"

This is the screenshot:

Can you please help me with that?

Thank you again!

After selecting folder you need to list subjects first, for that you need to define a range such as 1 to 50 in the textbox as 1;50 only then you should call GetSList.
I think you should buy the extension to learn more about its usage.

However, test apk is no longer available.

1 Like

Thank you!

Ok. I agree. Please, let me know how to buy it.

ChangeLog Version 1.1

  • Fixed bug in GetFolderList which was returning an appended list of folders
    Reported by @bernat_bernat
1 Like

Hi, please. How do can body be html?

Hello!
I don't know why, but although I've tryed many combinations to make it work,I was unable to create an apk where TaifunMail (to send emails) and IMAPClient (to read emails) can work together. They work fine together under Companion, but once you try to create an apk, App Inventor is unable to compile the project, and an error message appears.

Any suggestion?

Thank you!

Bernat.

There is a no-deps version also there.
However, I can't assure its compatibility with other extensions.
Why not try this? (compatible)

Thank you.
I've tried again.... And it happens the same: it works fine under Companion, but unable to compile the project.

I'll appreciate any suggestion you can provide.

Please, can you please create a quick draft app (and its .apk) with those two extensions to make sure they can work together?

Thank you again.

Did you use this aix?

1 Like