Skip to main content
Glama
sender_search.py959 B
""" Email search functionality for sender-based searches. This module provides functions to search emails by sender name. """ from typing import Any, Dict, List, Optional, Tuple from .unified_search import unified_search def search_email_by_sender( search_term: str, days: int = 7, folder_name: Optional[str] = None, match_all: bool = True ) -> Tuple[List[Dict[str, Any]], str]: """ Search emails by sender name and return list of emails with note. Args: search_term: The sender name to search for days: Number of days to look back (1-30, default: 7) folder_name: Folder to search in (defaults to Inbox) match_all: If True, requires ALL search terms to match (AND logic). If False, matches ANY search term (OR logic) Returns: Tuple of (list of email dictionaries, status message) """ return unified_search(search_term, days, folder_name, match_all, "sender")

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/marlonluo2018/outlook-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server