~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/mail_client.py

  • Committer: Aaron Bentley
  • Date: 2007-09-17 12:46:56 UTC
  • mfrom: (2825 +trunk)
  • mto: This revision was merged to the branch mainline in revision 2826.
  • Revision ID: abentley@panoramicfeedback.com-20070917124656-j3hhxhx9igy11mfc
merge bzr.dev

Show diffs side-by-side

added added

removed removed

Lines of Context:
183
183
        return ['mailto:%s?%s' % (to or '', '&'.join(options_list))]
184
184
 
185
185
 
 
186
class Mutt(ExternalMailClient):
 
187
    """Mutt mail client."""
 
188
 
 
189
    _client_commands = ['mutt']
 
190
 
 
191
    def _get_compose_commandline(self, to, subject, attach_path):
 
192
        """See ExternalMailClient._get_compose_commandline"""
 
193
        message_options = []
 
194
        if subject is not None:
 
195
            message_options.extend(['-s', subject ])
 
196
        if attach_path is not None:
 
197
            message_options.extend(['-a', attach_path])
 
198
        if to is not None:
 
199
            message_options.append(to)
 
200
        return message_options
 
201
 
 
202
 
186
203
class Thunderbird(ExternalMailClient):
187
204
    """Mozilla Thunderbird (or Icedove)
188
205