image display basic functionality

This commit is contained in:
Tim Bendt
2025-05-16 17:17:37 -06:00
parent fc57e201a2
commit bec09bade8
7 changed files with 1187 additions and 117 deletions

View File

@@ -133,7 +133,7 @@ async def archive_message(message_id: int) -> bool:
logging.error(f"Exception during message archiving: {e}")
return False
async def get_message_content(message_id: int, format: str = "html") -> Tuple[Optional[str], bool]:
async def get_message_content(message_id: int) -> Tuple[Optional[str], bool]:
"""
Retrieve the content of a message by its ID.
@@ -148,8 +148,7 @@ async def get_message_content(message_id: int, format: str = "html") -> Tuple[Op
"""
try:
cmd = f"himalaya message read {message_id}"
if format == "text":
cmd += " -t"
process = await asyncio.create_subprocess_shell(
cmd,