Files
luk/maildir_gtd/actions/show_message.py
2025-05-01 11:59:28 -04:00

15 lines
355 B
Python

import logging
import subprocess
from textual.logging import TextualHandler
logging.basicConfig(
level="NOTSET",
handlers=[TextualHandler()],
)
def show_message(app, message_id: int) -> None:
"""Fetch and display the email message by ID."""
app.current_message_id = message_id
logging.info("Showing message ID: " + str(message_id))