Mail Save
Save emails to a file. It can be used as a replacement for sendmail or a SMTP server.
You can install it with pip install mailsave or pip install --user mailsave
You can also use the single file version. Since mailsave only needs the standard library, you don’t have anything to install.
It is different from other tools like maildump because:
It is very minimalist: no Web or GUI interface, just files.
It can be used instead of sendmail.
To use in place of sendmail, just put the path to the mailsave executable instead of the sendmail one. For instance, in a php.ini file:
sendmail_path = /home/jenselme/.virtualenvs/test/bin/mailsave --dir mails
To use as an SMTP server, launch it like this:
mailsave --server --dir mails
Then you can send it emails with the SMTP protocol:
swaks --to user@example.com --server localhost --port 2525 --add-header "X-Custom-Header: Swaks-Tested"
To view the full help, use:
mailsave --help
Written for Python 3.5+.
History
0.8.1 (2017-09-05)
Decode HTML payload when extracting HTML. If we don’t, the HTML message is not valid HTML and cannot be displayed by a web browser.
0.8.0 (2017-09-01)
Move project to gitlab
Add support for emails with payload encoded in base64
Improve handling of email with special characters sent from stdin
Normalize file names before save
Can use subject in file name
Can choose not to save the file
Can extract HTML from the mail
Add support for -t option. This is useful if the dots of the mail are escaped before being sent to the script, ie a dot (.) at the start of a line is replaced by two dots (..).
0.5.0 (2017-07-26)
Add an option to print the version
Don’t print traceback when quitting the “readline” version with CTRL-C
Can use a template for the file
0.4.0 (2017-07-10)
Can choose the name of the file in which to save.
0.3.0 (2017-07-06)
Don’t fail if script receive undefined option. It is important to act as a replacement for sendmail. Some program will try to call it with custom options.
Include LICENSE and HISTORY.rst in release made to pypi.
Add a single file version so users don’t have to install mailsave with pip.
0.2.0 (2017-07-05)
Can read mail from SMTP.
0.1.0 (2017-07-05)
Can act as a replacement of sendmail.
Metadata
Release files for mailsave 0.8.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| mailsave-0.8.1.tar.gz | 6.1 kB | Without provenance | Details for mailsave-0.8.1.tar.gz |
Release files / mailsave-0.8.1.tar.gz
| Download URL | mailsave-0.8.1.tar.gz |
|---|---|
| Size | 6.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5b8a4bee133f411ddfb6a38e8818371a03917e658be66d7cf0a11f58136c2165
|
|
BLAKE2b-256 checksum How to use checksums |
0fad7744a977946d2b748d271fd9fd59e9ee71f5680d796fe13ed46a5e3d2a8a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for mailsave 0.8.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.