#alias #telegram-bot #management #command #domain #kmail #infomaniak

app kmail-alias-bot

A Telegram bot for easy alias management on Infomaniak kMail service

2 releases

new 0.1.1 Jan 10, 2025
0.1.0 Jan 8, 2025

#306 in Web programming

Download history 230/week @ 2025-01-04

234 downloads per month

MIT license

105KB
2K SLoC

Scheme 1K SLoC Rust 1K SLoC // 0.0% comments
  • A simple Telegram bot to facilitate creation of e-mail aliases in Infomaniak's kMail

** Features

  • Get the kMail and the Telegram API tokens, domain name, mailbox id, and account id from a config file
  • Get the owner TG handle from a config file, and communicate only with the owner.
  • /add command to create an alias
    • Accepts alias name (before '@' part) description (purpose)
    • Invokes the POST API to add the alias
    • In addition to creating the alias, also sends a test e-mail to the newly created address, with the provided description. this surves a double purpose of documenting the alias itself
  • /list command to list all the aliases
  • /remove command to remove an alias
  • A docker container and a sample docker-compose file to conveniently deploy the bot on a NAS container station.

** Running #+begin_src guix shell rust rust-cargo openssl pkg-config RUST_LOG=debug cargo run #+end_src

Dependencies

~23–43MB
~721K SLoC