Send and check emails faster from the terminal
Project description
Mailshell - msl
Requirements
- python 3.7+
- Linux or MacOS
Installation
python pip install
$ python -m pip install mailshell
Support python 3.7+
Usage
just type msl followed by one of the mailshell commands
See how to use mailshell and find all the arguments, option in the Documentation.
type msl login to log in with gamil app password, and msl new to create a new message
$ msl login
Email addres: user@example.com
Email app password: ****************
use msl set command to write your email using nano editor or msl html to add html message, and you can also add a text from a txt file with -f option in set and html command.
$ msl set -f ./your_text.txt
use msl add with a file or image to include it and msl rm to remove it from your message.
$ msl add file.pdf
$ msl add image.jpg
$ msl rm file.pdf
use msl content to see your message content, and add --files or --images to see a list of the message attachments.
$ msl content
============= Your message =============
Subject: message
From: name <user@example.com>
the message...
----------------------------------------
- includes:
file.xlsx
image.png
...
run msl send to send your message to specified accounts.
$ msl send -T other@example.com
you can use msl check command to check your emails with a specified mailbox with -b option (Inbox is the default) and some selection options such as --all and --from, and use -l to display the output as a list.
$ msl check -b sent --date 18-09-2015
email(1)
email(2)
email(3)
...
use the same selection options in msl delete to delete the selected emails in the mailbox
$ msl delete -t "You won.." -n
Commands
Use --help in mailshell to see the available commands:
| Command | Description |
|---|---|
login |
log in to your gmail using email address and the app password |
cred |
print your current email address and app password |
new |
create new email message |
subject |
set a new subject to the message |
from |
set a new sender name |
html |
add html message |
content |
see the current message content with the included files |
set |
add a text manually or from .txt file to you current message |
add |
add a file or image to your message |
rm |
remove a file or image from your message |
to |
set your contact that you will send to |
send |
send the current message |
check |
check your emails in a mailbox using selection options |
delete |
delete the selected email with the delete options in mailbox |
logout |
log out from mailshell |
$ msl --help
add --version option to see your current version.
Support
For support, Follow on twitter @malkiAbdoo.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mailshell-1.4.10.tar.gz.
File metadata
- Download URL: mailshell-1.4.10.tar.gz
- Upload date:
- Size: 12.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.8.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8fff360d068110cace4edf413ff63f43793937f32b361979b8386a81fbf8367e
|
|
| MD5 |
15534bffa1eb3fdcb2809de9eb3d6fed
|
|
| BLAKE2b-256 |
9a6a378d85f35b26b7e3953b749055df28f0fc89ec73f0896740329583eb7452
|
File details
Details for the file mailshell-1.4.10-py3-none-any.whl.
File metadata
- Download URL: mailshell-1.4.10-py3-none-any.whl
- Upload date:
- Size: 14.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.8.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a72a84da23e8864f8e35e154bff5fb3789810f376c8e4cba6bbeef50061e53cb
|
|
| MD5 |
92a54de1a84f9bc8fc11e8a09ac3a339
|
|
| BLAKE2b-256 |
a4bc63bb9229c4204d0c1e3d3d60ce28b4b231dd8d525fa599cd58c38f8862e8
|