iris-imap-python-adaptor

Downloads5
Subscribe
0
Bookmark
0
This application is not supported by InterSystems Corporation. Please be notified that you use it at your own responsibility.
Details
Releases
Reviews
Issues

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

IPM installation
zpm "install iris-imap-python-adaptor"
Rating
5 (1)
ObjectScript quality test
Passed
Updated on 07 December 2023
ObjectScript quality report
Category
Solutions
Works with
InterSystems IRIS
Tags
Info
Version
1.0.0
Last updated
2023-11-07
Repository
Open
Documentation
Open
License
Link