MCPcopy
hub / github.com/MacRimi/ProxMenux / send

Method send

AppImage/scripts/notification_channels.py:659–669  ·  view source on GitHub ↗
(self, title: str, message: str, severity: str = 'INFO',
             data: Optional[Dict] = None)

Source from the content-addressed store, hash-verified

657 return True, ''
658
659 def send(self, title: str, message: str, severity: str = 'INFO',
660 data: Optional[Dict] = None) -> Dict[str, Any]:
661 subject = f"{self.subject_prefix} [{severity}] {title}"
662
663 def _do_send():
664 if self.host:
665 return self._send_smtp(subject, message, severity, data)
666 else:
667 return self._send_sendmail(subject, message, severity, data)
668
669 return self._send_with_retry(_do_send)
670
671 def _send_smtp(self, subject: str, body: str, severity: str,
672 data: Optional[Dict] = None) -> Tuple[int, str]:

Callers 15

testMethod · 0.95
ScriptTerminalModalFunction · 0.45
initializeTerminalFunction · 0.45
handleEndFunction · 0.45
sendCommandFunction · 0.45
initTerminalFunction · 0.45
LxcTerminalModalFunction · 0.45
reconnectTerminalFunction · 0.45
TerminalPanelFunction · 0.45
syncSizeWithBackendFunction · 0.45
initializeTerminalFunction · 0.45

Calls 1

_send_with_retryMethod · 0.80

Tested by 1

test_channelMethod · 0.36