rohitpawar2811 commented on issue #23247:
URL: https://github.com/apache/superset/issues/23247#issuecomment-1451331004

   @amartincolville 
   Actually the reason that your mutator would not be working is that , the 
image-2.0.0 as well git-repo missed this changes. 
   
   ```
   for msgid, imgdata in (images or {}).items():
           formatted_time = formatdate(localtime=True)
           file_name = f"{subject} {formatted_time}"
           image = MIMEImage(imgdata, name=file_name)
           image.add_header("Content-ID", "<%s>" % msgid)
           image.add_header("Content-Disposition", "inline")
           msg.attach(image)
       msg_mutator = config["EMAIL_HEADER_MUTATOR"]
       # the base notification returns the message without any editing.
       new_msg = msg_mutator(msg, **(header_data or {}))
       send_mime_email(smtp_mail_from, recipients, new_msg, config, 
dryrun=dryrun)
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to