Import emails into Nextcloud Deck
Project description
maildeck
maildeck is a Python command-line tool designed to import emails into Nextcloud Deck. It fetches emails from an IMAP server and creates corresponding cards within a Nextcloud Deck board.
The idea is that you would run this script in a cron job or a systemd-timer.
Features
- IMAP: No need to run a postfix server specifically for this use case, an IMAP mailbox is enough.
- Attachments: Any mail attachments will be attached to the ticket.
- Automatic deletion of emails: Emails are automatically deleted after they are converted to a ticket.
Requirements
- Python 3.11 or higher
- A dedicated IMAP mailbox
- A Nextcloud instance with Deck 1.3.0 or higher installed
Installation
pip install maildeck
Usage
To use Maildeck, you need to provide your IMAP and Nextcloud credentials, either as environment variables or as command-line arguments. Here's how you can run it:
maildeck [ARGS]
Required Arguments
--imap-userIMAP_USER: Your IMAP account username.--imap-passwordIMAP_PASSWORD: Your IMAP account password.--imap-hostIMAP_HOST: Your IMAP server host address.--nextcloud-base-urlNEXTCLOUD_BASE_URL: The base URL for your Nextcloud instance.--nextcloud-userNEXTCLOUD_USER: Your Nextcloud account username.--nextcloud-passwordNEXTCLOUD_PASSWORD: Your Nextcloud account password.--nextcloud-board-idNEXTCLOUD_BOARD_ID: The Nextcloud Deck board ID.
Optional Arguments
--imap-portIMAP_PORT: The IMAP server port. Default is 993.--nextcloud-stack-idNEXTCLOUD_STACK_ID: The Nextcloud Deck stack ID. Default is the first stack in the board.
Help
-h, --help: Show the help message and exit.
All arguments can also be set as environment variables with the same name as the placeholder in this help message.
Alternatives
- You might also want to have a look at newroco/mail2deck, which works a bit differently.
License
Maildeck is licensed under the EUPL-1.2 license. For more information, please refer to the LICENSE file in the repository.
Project details
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 maildeck-0.1.5.tar.gz.
File metadata
- Download URL: maildeck-0.1.5.tar.gz
- Upload date:
- Size: 14.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f76ee85a5e26dbf1cef06a641c1ee1ed2e5b8d506017d46971e24e408f4296a2
|
|
| MD5 |
5a7186d3dc106b72a72b06e99b0f8ba1
|
|
| BLAKE2b-256 |
322903712222a9015a9a9bd6aa7116aac4c99e34131d39e0a267a87700011650
|
File details
Details for the file maildeck-0.1.5-py3-none-any.whl.
File metadata
- Download URL: maildeck-0.1.5-py3-none-any.whl
- Upload date:
- Size: 12.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d9ffa824d5d5545f445128ecca8ce3bdbca8c3e4d29f87d89cbb46db16ddf59b
|
|
| MD5 |
15ec50fc9c19b24da987aa04885bb33e
|
|
| BLAKE2b-256 |
b06f87ae482852299f40e86b31a231b10973ee4cc63ebcb659f4d818623cdb41
|