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 details)

Uploaded Source

File details

Details for the file mail263-w-0.1.3.tar.gz.

File metadata

  • Download URL: mail263-w-0.1.3.tar.gz
  • Upload date:
  • Size: 4.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.7.5

File hashes

Hashes for mail263-w-0.1.3.tar.gz
Algorithm Hash digest
SHA256 574846c87963dbe3a318d1c2c4fb9328bf58214d4fc57ba64df47ec6c3eb653b
MD5 c29d3fec5a91571226e6a8262d84180b
BLAKE2b-256 29b12e7f2fcce7227675ab631c341f91636ee220541e515e27ae4000a10e3fe7

See more details on using hashes here.

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