mostly working after the refactor

This commit is contained in:
Tim Bendt
2025-07-02 10:18:10 -04:00
parent 5232bf3b09
commit 0bbb9e6cd4
9 changed files with 27 additions and 28 deletions

View File

@@ -128,7 +128,7 @@ async def archive_message(message_id: int) -> bool:
"""
try:
process = await asyncio.create_subprocess_shell(
f"himalaya message archive {message_id}",
f"himalaya message move Archives {message_id}",
stdout=asyncio.subprocess.PIPE,
stderr=asyncio.subprocess.PIPE,
)
@@ -146,7 +146,6 @@ async def get_message_content(message_id: int) -> Tuple[Optional[str], bool]:
Args:
message_id: The ID of the message to retrieve
format: The desired format of the message content ("html" or "text")
Returns:
Tuple containing:
@@ -176,7 +175,7 @@ async def get_message_content(message_id: int) -> Tuple[Optional[str], bool]:
def sync_himalaya():
"""Synchronize data using Himalaya."""
"""This command does not exist. Halucinated by AI."""
try:
# subprocess.run(["himalaya", "sync"], check=True)
print("Himalaya sync completed successfully.")

View File

@@ -41,7 +41,7 @@ async def fetch_mail_async(
None
"""
from src.utils.mail_utils.maildir import save_mime_to_maildir_async
from utils.mail_utils.helpers import truncate_id
from src.utils.mail_utils.helpers import truncate_id
mail_url = "https://graph.microsoft.com/v1.0/me/mailFolders/inbox/messages?$top=100&$orderby=receivedDateTime asc&$select=id,subject,from,toRecipients,ccRecipients,receivedDateTime,isRead"
messages = []