Home Applications iris-imap-python-adaptor

iris-imap-python-adaptor

This application is not supported by InterSystems Corporation. Please be notified that you use it at your own risk.
5
1 reviews
0
Awards
140
Views
3
IPM installs
2
0
Details
Releases  (1)
Reviews  (1)
Issues
An implementation of an imap python adaptor with a support of OAuth2

What's new in this version

Initial Release

iris-imap-python-adaptor

This is a simple python script that can be used to connect to an IMAP server and download emails. It is designed to be used with the IRIS email adaptor.

Installation

With ZPM

zpm "install iris-imap-python-adaptor"

Then in a production add this business operation IRIS.IMAPBO.

Configure the settings in the IRIS.IMAPBO business operation.

server=imap.gmail.com
login=xxx@gmail.com
token=ya29.xxx

IRIS.IMAPBO

You can test it with this message :

msg.IMAPRequest
{
    "criteria": "(UNSEEN)"
}

IRIS.IMAPBO

result :

msg.IMAPResponse
{
"email_ids": [
    "bytes:MjEzMTc="
],
"raw_emails": [ ],
"email_messages": [
    {
        "policy": { },
        "_headers": [
            [
                "Delivered-To",
                "xxx@gmail.com"
            ],
            [
                "Received",
                "by 2002:a98:a901:0:b0:1e6:3d3:6e93 with SMTP id i1csp1439375eie;
                Sun, 5 Nov 2023 01:12:45 -0800 (PST)"
            ],
            ...
        ],
        ...
    }
]

}

IRIS.IMAPBO

Made with
Install
zpm install iris-imap-python-adaptor download archive
Version
1.0.007 Nov, 2023
ObjectScript quality test
Category
Solutions
Works with
InterSystems IRIS
First published
07 Nov, 2023