Skip to main content

srml

Author: Jeefy
Email: jeefy163@163.com
Url: Github, PyPI


Connections

SMTPConnect

A easy smtp connect class to connect smtp host.
Initialize with four params:
host: refers to the connect host, such as 'smtp.qq.com'.
mails: refers to the user's info, format in ('email@some.com', 'password').

Notice:
The password is the password for login the smtp, imap, pop hosts.
ssl: decide whether use ssl to connect or not.
port: the connect port of the host.

  • login
    login(email, passwd), if param email or passwd if not given, use the info recieve when create the instance.
  • send
    send(msg), bind with Message class.
  • close
    close(), disconnect with the host and quit.

Can use with SMTPConnect(...) as conn.
If with is used, this would automatic use .login method.

IMAPConnect

Almost the same as SMTPConnect.

  • login
    login(email, passwd), the same as SMTPConnect.
  • select_folder
    select_folder('Folder name'), select folder accordng to list_folders()
  • list_folders
    list_folders(), return all exists folders can be select.
  • close_folder
    close_folder(), close the current select folder.

    if need to unselect, use .client.unselect_folder()

  • search
    search(types=['ALL']), search the emails according to the types, default 'ALL'
  • fetch
    fetch(uid, types='BODY[]'), fetch the message according to the search returned uids.
  • fetchall
    fetchall(types='BODY[]'), return all message.
  • quit
    exit the connection.

POPConnect

See also srml.popclient.POPClient. Like poplib.POP or poplib.POP_SSL. more infomation, see python standard library


Parse

Parse the MIME message according to the bytes in.
shown body see Parse.body.
plain text see Parse.text.
params or files see Parse.get_params().
more see Parse.dict

File

A class help to save the file.


MailBox

The mix class for all connection
use help(MailBox) for more details.


srml.mailG

the GUI version to use the email objects.

srml.mailCli

The cli version to use the email objects.

Release files for jsrml 0.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for jsrml 0.0.2
File Size Uploaded
jsrml-0.0.2.linux-armv7l.tar.gz 19.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for jsrml 0.0.2
File Interpreter ABI Platform
jsrml-0.0.2-py3-none-any.whl Python 3 none any Details

Total release size: 32.0 kB

Release files / jsrml-0.0.2.linux-armv7l.tar.gz

Download URL jsrml-0.0.2.linux-armv7l.tar.gz
Size 19.2 kB
Tags Source
SHA-256 checksum
How to use checksums
ac59df0380150aa10fd26a18df6eddddd6a9204d0ae2f0b67b461a69ec7a50d1
BLAKE2b-256 checksum
How to use checksums
76949c6a9f6ab852a9633ac43384f03da7b7299f1e7a237c7622c8363168e695
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.8.4

Release files / jsrml-0.0.2-py3-none-any.whl

Download URL jsrml-0.0.2-py3-none-any.whl
Size 12.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
54e8c9485f4081d7a3e1c328cb2643f031899b1ff55df5cad83776d2ca49e104
BLAKE2b-256 checksum
How to use checksums
227a6b5942eedec3117c3c10915242dae358d20172a588d9f0de7d76c62d6f1d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.8.4

Release history Release notifications | RSS feed

This release

0.0.2 This release

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page