Skip to main content

Handle 263 mails

Project description

demo

import ssl

from client_263 import Mail263Client

if __name__ == '__main__':
    ssl_context = ssl.create_default_context()
    # don't check if certificate hostname doesn't match target hostname
    ssl_context.check_hostname = False
    # don't check if the certificate is trusted by a certificate authority
    ssl_context.verify_mode = ssl.CERT_NONE

    with Mail263Client('imap.263.net', 'your_email', 'your_password', ssl_context=ssl_context) as client:
        # rule_dict = {
        #     'rule_name': '规则标题',
        #     'sender': {'cond': 'include', 'text': sender_email},
        #     'recipient': {'cond': 'not include', 'text': recipient_email},
        #     'subject': {'cond': 'include', 'text': '估值表'},
        #     'size': {'cond': '>=', 'num': 20},
        #     'action': {'type': 'move', 'folder_name': 'TEST'}
        # }
        # resq = client.set_mail_rule(rule_dict)
        # resq = client.create_263mail_folder(folder_name)
        # mail_list = cliend.get_mails(folder_name,status='UNSEEN')[0]

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mail263-w-0.1.3.tar.gz (4.8 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page