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))