Metadata-Version: 2.4
Name: CLImail
Version: 2.1.4
Summary: A Command Line Interface email client written in python.
Home-page: https://github.com/HRLO77/CLImail
Author: HRLO77
Author-email: shakebmohammad.10@gmail.com
License: MIT
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Description-Content-Type: text/markdown
License-File: LICENSE
Dynamic: author
Dynamic: author-email
Dynamic: classifier
Dynamic: description
Dynamic: description-content-type
Dynamic: home-page
Dynamic: license
Dynamic: license-file
Dynamic: summary

# CLImail

An CLI email client written in python. _Should_ support different email providers such as outlook, gmail, hotmail etc.

Install with - `python -m pip install climail`

Start the CLI with - `python -m climail [-smtp_server server] [-imap_server server] [-smtp_port port] [-imap_port port]`

The default server it uses is gmail, if you want to use any other email provider, make sure to enter the correct server,
ports and address.

# EXAMPLES:

Normal login:
`user = User('password', 'email')`

Customized login:
`user = User('password', 'email', smtp_server='smtp-mail.outlook.com', imap_server='imap-mail.outlook.com',
smtp_port=587, imap_port=993)`

Ports for SMTP and IMAP servers can be found at https://www.systoolsgroup.com/imap/.

Getting the latest mail:
`user.mail_from_template(user.mail_from_id(user.mail_ids_as_str(1)[0]))`

Sending an email:

`user.sendmail('to_address', 'content', subject='subject', cc=[
'cc_address1', 'cc_address2'], attachments=['file1.txt', 'file2.txt'])`

Deleting 10 of the latest messages:
`user.delete_mail(10)`

Selecting a mailbox(mailboxes can be found from the User.list_mailboxes method):
`user.select_mailbox('INBOX')`

NOTE: to select mailboxes other than INBOX, you must select exactly how they are shown in the User.list_mailboxes method. Sent mailbox for example is shown as "[Gmail]/Sent Mail".
`user.select_mailbox('"[Gmail]/Sent Mail"')`

Saving all attachments from the latest message:
`user.save_attachments(user.mail_from_id(user.mail_ids_as_str(1)[0]))`

The rest of the methods are quite self-explanatory, if you need help DM me at HRLO77#3508 (discord) or hrlo.77 (Instagram)

