/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/mail_client.py

  • Committer: Aaron Bentley
  • Date: 2007-08-21 01:26:02 UTC
  • mto: This revision was merged to the branch mainline in revision 2736.
  • Revision ID: aaron.bentley@utoronto.ca-20070821012602-avssbp9deq89wbpi
Update docstrings and string formatting

Show diffs side-by-side

added added

removed removed

Lines of Context:
82
82
    """DIY mail client that uses commit message editor"""
83
83
 
84
84
    def _get_merge_prompt(self, prompt, to, subject, attachment):
85
 
        return "%s\n\nTo: %s\nSubject: %s\n\n%s" % (prompt, to, subject,
86
 
                attachment.decode('utf-8', 'replace'))
 
85
        """See MailClient._get_merge_prompt"""
 
86
        return (u"%s\n\n"
 
87
                u"To: %s\n"
 
88
                u"Subject: %s\n\n"
 
89
                u"%s" % (prompt, to, subject,
 
90
                         attachment.decode('utf-8', 'replace')))
87
91
 
88
92
    def compose(self, prompt, to, subject, attachment, mime_subtype,
89
93
                extension):
 
94
        """See MailClient.compose"""
90
95
        body = msgeditor.edit_commit_message(prompt)
91
96
        if body == '':
92
97
            raise errors.NoMessageSupplied()
188
193
    send attachments.
189
194
    """
190
195
 
191
 
    _client_commands = ['thunderbird', 'mozilla-thunderbird', 'icedove']
 
196
    _client_commands = ['thunderbird', 'mozilla-thunderbird', 'icedove',
 
197
        '/Applications/Mozilla/Thunderbird.app/Contents/MacOS/thunderbird-bin']
192
198
 
193
199
    def _get_compose_commandline(self, to, subject, attach_path):
194
200
        """See ExternalMailClient._get_compose_commandline"""