~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/config.py

  • Committer: Aaron Bentley
  • Date: 2007-08-09 19:30:31 UTC
  • mto: (2681.5.3 bzr-mail)
  • mto: This revision was merged to the branch mainline in revision 2736.
  • Revision ID: abentley@panoramicfeedback.com-20070809193031-efscxiwt74sxk5o1
Add Thunderbird support to bzr send

Show diffs side-by-side

added added

removed removed

Lines of Context:
75
75
import bzrlib
76
76
from bzrlib import (
77
77
    errors,
 
78
    mail_client,
78
79
    osutils,
79
80
    symbol_versioning,
80
81
    trace,
143
144
        """Get the users pop up editor."""
144
145
        raise NotImplementedError
145
146
 
 
147
    def get_mail_client(self):
 
148
        """Get a mail client to use"""
 
149
        selected_client = self.get_user_option('mail_client')
 
150
        return {
 
151
            None : mail_client.Editor,
 
152
            'editor': mail_client.Editor,
 
153
            'thunderbird': mail_client.Thunderbird,
 
154
        }[selected_client]()
 
155
 
146
156
    def _get_signature_checking(self):
147
157
        """Template method to override signature checking policy."""
148
158