def _attachment_name_or_type(name_or_type):
    """
    Returns a query item matching messages that have attachments with a
    certain name or file type.

    Args:
        name_or_type (str): The specific name of file type to match.


    Returns:
        The query string.

    """
    return f'filename:{name_or_type}'
