Send a notification via the gmail notifier Args: new_analysis (dict): The new_analysis to send.
(self, new_analysis)
| 155 | |
| 156 | |
| 157 | def notify_gmail(self, new_analysis): |
| 158 | """Send a notification via the gmail notifier |
| 159 | |
| 160 | Args: |
| 161 | new_analysis (dict): The new_analysis to send. |
| 162 | """ |
| 163 | |
| 164 | if self.gmail_configured: |
| 165 | message = self._indicator_message_templater( |
| 166 | new_analysis, |
| 167 | self.notifier_config['gmail']['optional']['template'] |
| 168 | ) |
| 169 | if message.strip(): |
| 170 | self.gmail_client.notify(message) |
| 171 | |
| 172 | |
| 173 | def notify_telegram(self, new_analysis): |
no test coverage detected