class_docstr: Waits for a specific attachment on a mail server.
  
  :param attachment_name: The name of the attachment that will be checked.
  :param check_regex: If set to True the attachment's name will be parsed as regular expression.
      Through this you can get a broader set of attachments
      that it will look for than just only the equality of the attachment name.
  :param mail_folder: The mail folder in where to search for the attachment.
  :param mail_filter: If set other than 'All' only specific mails will be checked.
      See :py:meth:`imaplib.IMAP4.search` for details.
  :param imap_conn_id: The :ref:`imap connection id <howto/connection:imap>` to run the sensor against.
code: def __init__(
      self,
      *,
      attachment_name,
      check_regex=False,
      mail_folder="INBOX",
      mail_filter="All",
      conn_id="imap_default",
      **kwargs,
  ) -> None:
      super().__init__(**kwargs)
  
      self.attachment_name = attachment_name
      self.check_regex = check_regex
      self.mail_folder = mail_folder
      self.mail_filter = mail_filter
      self.conn_id = conn_id
  
file_path: airflow/airflow/providers/imap/sensors/imap_attachment.py
imports: from __future__ import annotations
  from typing import TYPE_CHECKING, Sequence
  from airflow.providers.imap.hooks.imap import ImapHook
  from airflow.sensors.base import BaseSensorOperator
label_desc: Use image node_id 1 to create a new ImapAttachmentSensor object from inherited base classes: BaseSensorOperator with example: obj = ImapAttachmentSensor()