143
143
if attach_path is not None:
144
144
commandline.extend(['--attach', attach_path])
145
145
return commandline
148
class DefaultMail(MailClient):
149
"""Default mail handling. Tries XDGEmail, falls back to Editor"""
150
def compose(self, prompt, to, subject, attachment, mime_subtype,
153
return XDGEmail(self.config).compose(prompt, to, subject,
154
attachment, mimie_subtype, extension)
155
except errors.MailClientNotFound:
156
return Editor(self.config).compose(prompt, to, subject,
157
attachment, mimie_subtype, extension)
159
def compose_merge_request(self, to, subject, directive):
161
return XDGEmail(self.config).compose_merge_request(to, subject,
163
except errors.MailClientNotFound:
164
return Editor(self.config).compose_merge_request(to, subject,