Files
luk/maildir_gtd/actions/show_message.py
2025-05-08 12:03:38 -06:00

14 lines
337 B
Python

import logging
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."""
logging.info("Showing message ID: " + str(message_id))
app.current_message_id = message_id