Metadata-Version: 2.1
Name: seppmail-converter
Version: 0.1.5
Summary: Decode SEPPMail emails into EML files
License: MIT
Author: Daniel Malik
Author-email: daniel.malik@mhsp.solutions
Requires-Python: >=3.10,<4.0
Classifier: Environment :: Console
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Requires-Dist: Flask (>=2.2.2,<3.0.0)
Requires-Dist: beautifulsoup4 (>=4.11.1,<5.0.0)
Requires-Dist: click (>=8.1.3,<9.0.0)
Requires-Dist: click-default-group (>=1.2.2,<2.0.0)
Requires-Dist: lxml (>=4.9.1,<5.0.0)
Requires-Dist: requests (>=2.28.1,<3.0.0)
Description-Content-Type: text/markdown

# SEPPMail Converter

This python tool allows you to convert [SEPPMail](https://www.seppmail.com/) encrypted email files (`html`) to `.eml` files.

## Usage

```
Usage: main.py [OPTIONS] COMMAND [ARGS]...

Options:
  --help  Show this message and exit.

Commands:
  convert*
  serve 
```

### Convert

Convert an encrypted email file to a `.eml` file.

```
Usage: main.py convert [OPTIONS] INPUT_FILE

Options:
  -o, --output PATH
  -u, --username TEXT
  -p, --password TEXT
  -f, --force          Skip SEPPMail input file validation
  -d, --delete         Delete input file after conversion
  --help               Show this message and exit.
```

### Serve

Start a web server to convert encrypted email files to `.eml` files via a web interface.


Relevant environment variables:

| Name | Description |
| ---- | ----------- |
| `SEPPMAIL_USERNAME` | Email supplied during login |
| `SEPPMAIL_PASSWORD` | Password supplied during login|

Unless specified, the script will place the output file next to the input file and name it after the original file.

