MCPcopy Create free account
hub / github.com/simple-login/app / encode_mailto

Method encode_mailto

app/handler/unsubscribe_encoder.py:81–85  ·  view source on GitHub ↗
(
        action: UnsubscribeAction, data: Union[int, UnsubscribeOriginalData]
    )

Source from the content-addressed store, hash-verified

79
80 @staticmethod
81 def encode_mailto(
82 action: UnsubscribeAction, data: Union[int, UnsubscribeOriginalData]
83 ) -> str:
84 subject = UnsubscribeEncoder.encode_subject(action, data)
85 return f"mailto:{config.UNSUBSCRIBER}?subject={subject}"
86
87 @staticmethod
88 def encode_url(

Callers 2

encodeMethod · 0.80

Calls 1

encode_subjectMethod · 0.80

Tested by

no test coverage detected