Skip to main content

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-user IMAP_USER: Your IMAP account username.
  • --imap-password IMAP_PASSWORD: Your IMAP account password.
  • --imap-host IMAP_HOST: Your IMAP server host address.
  • --nextcloud-base-url NEXTCLOUD_BASE_URL: The base URL for your Nextcloud instance.
  • --nextcloud-user NEXTCLOUD_USER: Your Nextcloud account username.
  • --nextcloud-password NEXTCLOUD_PASSWORD: Your Nextcloud account password.
  • --nextcloud-board-id NEXTCLOUD_BOARD_ID: The Nextcloud Deck board ID.

Optional Arguments

  • --imap-port IMAP_PORT: The IMAP server port. Default is 993.
  • --nextcloud-stack-id NEXTCLOUD_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

maildeck-0.1.5.tar.gz (14.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

maildeck-0.1.5-py3-none-any.whl (12.2 kB view details)

Uploaded Python 3

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

Hashes for maildeck-0.1.5.tar.gz
Algorithm Hash digest
SHA256 f76ee85a5e26dbf1cef06a641c1ee1ed2e5b8d506017d46971e24e408f4296a2
MD5 5a7186d3dc106b72a72b06e99b0f8ba1
BLAKE2b-256 322903712222a9015a9a9bd6aa7116aac4c99e34131d39e0a267a87700011650

See more details on using hashes here.

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

Hashes for maildeck-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 d9ffa824d5d5545f445128ecca8ce3bdbca8c3e4d29f87d89cbb46db16ddf59b
MD5 15ec50fc9c19b24da987aa04885bb33e
BLAKE2b-256 b06f87ae482852299f40e86b31a231b10973ee4cc63ebcb659f4d818623cdb41

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page