Part of bzrlib.mail_client View In Hierarchy
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. |
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.)