eml-extractor-0.1.1
توضیحات
A CLI tool to extract attachments from .eml files (email messages saved as files)
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | eml-extractor-0.1.1 |
| نام | eml-extractor |
| نسخه کتابخانه | 0.1.1 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Diogo Alves |
| ایمیل نویسنده | diogo.alves.ti@gmail.com |
| آدرس صفحه اصلی | https://github.com/diogo-alves/eml-extractor |
| آدرس اینترنتی | https://pypi.org/project/eml-extractor/ |
| مجوز | MIT |
# EML Extractor
EML Extractor is a CLI tool to extract attachments from .eml files (email messages saved as files).
## Features
* Find .eml files (recursively or not) in a selected folder;
* Select individuals .eml files to extraction;
* Save all attachments in a single main folder;
* Organize the attachments by email subject subfolder.
## Requirements
Python 3.6+
## Installation
```console
$ pip install eml-extractor
```
## Usage
By default, the current working directory is used as the source for .eml files as well as destination for extracted attachments. You can set different optional arguments to change this behavior:
```console
usage: eml-extractor [OPTIONS]
Extracts attachments from .eml files
optional arguments:
-h, --help show this help message and exit
-s PATH, --source PATH
the directory containing the .eml files to extract
attachments (default: current working directory)
-r, --recursive allow recursive search for .eml files under SOURCE
directory
-f FILE [FILE ...], --files FILE [FILE ...]
specify an .eml file or a list of .eml files to extract
attachments
-d PATH, --destination PATH
the directory to extract attachments to (default:
current working directory)
```
## Examples
### 1. Find all .eml files in current working dir, extract the attachments and save them in the same dir:
```console
$ eml-extractor
```
The command above is equivalent to:
```console
$ eml-extractor --source . --destination .
```
### 2. Set another path for searching .eml files:
```console
$ eml-extractor --source /path/to/eml/files/
```
### 3. Allow recursive searching:
```console
$ eml-extractor --source /path/to/eml/files/ --recursive
```
### 4. Define manually from which files the attachments will be extracted:
```console
$ eml-extractor --files /path/to/file1.eml /path/to/file2.eml
```
### 5. Change the path where to save the extracted attachments:
```console
$ eml-extractor --destination /path/to/extracted/attachments/
```
## License
This project is licensed under the terms of the [MIT License](https://github.com/diogo-alves/eml-extractor/blob/main/LICENSE).
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.6 | Python |
نحوه نصب
نصب پکیج whl eml-extractor-0.1.1:
pip install eml-extractor-0.1.1.whl
نصب پکیج tar.gz eml-extractor-0.1.1:
pip install eml-extractor-0.1.1.tar.gz