Skip to content

TUI Guide

💡 We recommend using Windows Terminal (Start Button => Right-click => Terminal, or search for "Terminal") to run this application for better compatibility and display.

After installing mailslide using uv tool, run mailslide-tui to open the TUI interface.

Interaction Guide

  • Tab / Arrow keys: Navigate / Select
  • Enter: Execute / Confirm
  • Mouse interactions are also supported (clicking elements directly)

Shortcuts

Key Tab / Function
H Home: Run Jobs, View logs
S Schedule: Setup automatic scheduling
G Guide: User Guide
C Configuration: View / Edit config files
A About: System Status, initialization, and updates
L Language: Toggle UI language (zh-TW / en-US)
D Dark Mode: Toggle theme color (Light / Dark)
Q Quit: Exit application

Tabs Overview

  • Home: View / Execute Jobs, view execution logs.
  • Preserve RE/FW: Whether to preserve previous contents of repeatedly replied/forwarded emails. Defaults to ON.
  • TUI Home

  • Schedule: Setup automatic scheduling.

  • Core Mechanism: The scheduling feature is driven by the internal pycron. You do not need to configure the Windows Task Scheduler separately. As long as the TUI is open, the program will automatically execute the corresponding Job in the background when it's time.
  • Use CRON expressions to setup schedules. Supports *, ,, -, /. For example, 0 9 * * 1-5 means running at 9 AM from Monday to Friday.
  • TUI Schedule

  • Guide: User Guide.

  • Configuration: View / Edit config files.
  • TUI Configuration
  • General Settings: Add / Delete Jobs, edit / validate / save main configuration directly.
  • LLM Settings: Form-based editor for LLM configuration, includes connection testing.
  • Plugin Settings: Form-based editor for each Plugin's settings.
  • About: System status / config file checks, initialization, update checking.

Modifying Configurations

  1. For first-time use, go to the About tab and click Initialize Config once, then restart the application.
  2. Switch to the Configuration tab:
  3. General Settings: Add / delete jobs, modify config.yaml, validate and save.
    • For first-time use, please set up the Outlook Classic email account or PST file path you wish to use.
  4. LLM Settings: Edit llm-config.yaml, test connection.
    • For first-time use, please set up the LLM service you wish to use.
    • API Keys will be encrypted and stored securely using Windows DPAPI. Please do not directly write the API Key into llm-config.yaml; use the input form provided in the TUI.
  5. Plugin Settings: Select a plugin and edit config/plugins/*.yaml via the form interface.

Config Saving Protection and Recovery Mechanism (TUI):

  • Before saving the main configuration, a schema and runtime validation is performed to prevent writing invalid configurations.
  • Before overwriting existing files, a backup is automatically created (e.g., config.yaml.bak, llm-config.yaml.bak, <plugin>.yaml.bak).
  • Critical Recovery Guide: In case you accidentally broke the configuration file and the TUI fails to start properly, you can go to the config/ or config/plugins/ directory of the application, delete the broken .yaml file, and simply rename the latest .bak file back to .yaml to restore functionality.

About Plugin Configuration (TUI)

In the Configuration → Plugin Settings tab:

  1. Select a plugin.
  2. Click Edit Config.
  3. Adjust the fields in the modal and click Validate or Save.

Behavior details:

  • Read priority: If config/plugins/<name>.yaml exists, it will be loaded; otherwise, the default sample falls back.
  • Validation layers: First performs basic required / type / option checks, then applies _ui.validation_rules.
  • Safe writing: Before saving, reserved keys like _ui and _meta are stripped, and a backup <name>.yaml.bak is created before overwriting the file.
  • Fallback mechanism: If the sample is missing _ui, the plugin falls back to a read-only YAML view mode.
  • response_json_format editing rules: start / end (and action) are fixed and cannot be modified, while other fields' values can be adjusted.