ftpmail
This program accepts FTP uploads (e.g. from a document scanner) and forwards them as emails via SMTP.
It'll terminate the FTP connection as fast as possible, this means directly after the upload has finished. The email process will happen in a separate thread to not block the uploader.
It can do optional optical character recognition (OCR) for scanned PDFs and embed the read text into the PDF file using the great pdfsandwich by Tobias Elze.
Usage
usage: ftpmail.py [-h] --from FROM_ADDR --to TO_ADDR --smtp-host SMTP_HOST
[--smtp-port SMTP_PORT] --smtp-user SMTP_USER --smtp-pass
SMTP_PASS --ftp-addr FTP_ADDR --ftp-port FTP_PORT
--ftp-pasv-min FTP_PASV_MIN --ftp-pasv-max FTP_PASV_MAX
[--ocr] [--ocr-lang OCR_LANG]
Send FTP uploads via SMTP.
optional arguments:
-h, --help show this help message and exit
--from FROM_ADDR Sender email address
--to TO_ADDR Recipient email address
--smtp-host SMTP_HOST
SMTP hostname
--smtp-port SMTP_PORT
SMTP port
--smtp-user SMTP_USER
SMTP username
--smtp-pass SMTP_PASS
SMTP password
--ftp-addr FTP_ADDR FTP server address which will be returned for PASV
requests.
--ftp-port FTP_PORT FTP port to bind to.
--ftp-pasv-min FTP_PASV_MIN
FTP PASV minimal port.
--ftp-pasv-max FTP_PASV_MAX
FTP PASV maximal port.
--ocr enable OCR (embeds a hidden text layer in PDF files)
--ocr-lang OCR_LANG OCR: language of the text; option to tesseract
(defaut: eng), e.g: eng, deu, deu-frak, fra, rus, swe,
spa, ita, ... Multiple languages may be specified,
separated by plus characters.
Metadata
Release files for ftpmail 0.8.2
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 | |
|---|---|---|---|---|
| ftpmail-0.8.2.tar.gz | 105.8 kB | Without provenance | Details |
Release files / ftpmail-0.8.2.tar.gz
| Download URL | ftpmail-0.8.2.tar.gz |
|---|---|
| Size | 105.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4a2bde8b9a8e99b13f31218ac73611e5458954e81d23817a96381c5c8638c074
|
|
BLAKE2b-256 checksum How to use checksums |
6c35cc0c25aded6594e4a4b791f8981da72dbdd6a12df9cb128fb58efc799269
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.2.0 requests-toolbelt/0.8.0 tqdm/4.25.0 CPython/3.6.8
|
Security for ftpmail 0.8.2
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.