def poke(self, context):
self.log.info('<STR_LIT>', self.attachment_name)<EOL>with ImapHook(imap_conn_id=self.conn_id) as imap_hook:<EOL><INDENT>return imap_hook.has_mail_attachment(<EOL>name=self.attachment_name,<EOL>mail_folder=self.mail_folder,<EOL>check_regex=self.check_regex<EOL>)<EOL><DEDENT>
Pokes for a mail attachment on the mail server.

:param context: The context that is being provided when poking.
:type context: dict
:return: True if attachment with the given name is present and False if not.
:rtype: bool