b.m.EmacsMail(ExternalMailClient) : class documentation

Part of bzrlib.mail_client View In Hierarchy

No class docstring
Method __init__ Undocumented
Method _prepare_send_function Write our wrapper function into a temporary file.
Method _get_compose_commandline Determine the commandline to use for composing a message

Inherited from BodyExternalMailClient (via ExternalMailClient):

Method compose See MailClient.compose.
Method _get_client_commands Provide a list of commands that may invoke the mail client
Method _compose Invoke a mail client as a commandline process.
Method _encode_safe Encode possible unicode string argument to 8-bit string
Method _encode_path Encode unicode path in user encoding.

Inherited from MailClient (via ExternalMailClient, BodyExternalMailClient):

Method compose_merge_request Compose (and possibly send) a merge request
Method _get_merge_prompt Generate a prompt string. Overridden by Editor.
def __init__(self, config):
Undocumented
def _prepare_send_function(self):
Write our wrapper function into a temporary file.

This temporary file will be loaded at runtime in _get_compose_commandline function.

This function does not remove the file. That's a wanted behaviour since _get_compose_commandline won't run the send mail function directly but return the eligible command line. Removing our temporary file here would prevent our sendmail function to work. (The file is deleted by some elisp code after being read by Emacs.)

def _get_compose_commandline(self, to, subject, attach_path):
Determine the commandline to use for composing a message

Implemented by various subclasses :param to: The address to send the mail to :param subject: The subject line for the mail :param attach_path: The path to the attachment

API Documentation for Bazaar, generated by pydoctor at 2022-06-16 00:25:16.