/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/builtins.py

Add KMail mail client

Show diffs side-by-side

added added

removed removed

Lines of Context:
3802
3802
    can be used as your actual submit branch, once you have set public_branch
3803
3803
    for that mirror.
3804
3804
 
3805
 
    On *nix, mail is sent using your preferred mail client.  This requires
3806
 
    the xdg-email utility.  If that's not installed, we use your editor.
3807
 
    To use a different client, set the mail_client option.  Supported values
3808
 
    are "kmail", "evolution", "thunderbird", "editor", "xdg-email" and
 
3805
    Mail is sent using your preferred mail program.  This should be transparent
 
3806
    on Windows (it uses MAPI).  On *nix, it requires the xdg-email utility.  If
 
3807
    the preferred client can't be found (or used), your editor will be used.
 
3808
    
 
3809
    To use a specific mail program, set the mail_client configuration option.
 
3810
    (For Thunderbird 1.5, this works around some bugs.)  Supported values are
 
3811
    "thunderbird", "evolution", "editor", "xdg-email", "mapi", "kmail" and
3809
3812
    "default".
3810
3813
 
3811
3814
    If mail is being sent, a to address is required.  This can be supplied
3821
3824
 
3822
3825
    encoding_type = 'exact'
3823
3826
 
3824
 
    _see_also = ['merge']
 
3827
    _see_also = ['merge', 'doc/configuration.txt']
3825
3828
 
3826
3829
    takes_args = ['submit_branch?', 'public_branch?']
3827
3830
 
3839
3842
               type=unicode),
3840
3843
        Option('output', short_name='o', help='Write directive to this file.',
3841
3844
               type=unicode),
3842
 
        Option('mail-to', help='Mail the request to this address',
 
3845
        Option('mail-to', help='Mail the request to this address.',
3843
3846
               type=unicode),
3844
3847
        'revision',
3845
3848
        'message',
3949
3952
                    subject += message
3950
3953
                else:
3951
3954
                    revision = branch.repository.get_revision(revision_id)
3952
 
                    subject += revision.message
 
3955
                    subject += revision.get_summary()
3953
3956
                mail_client.compose_merge_request(mail_to, subject,
3954
3957
                                                  outfile.getvalue())
3955
3958
        finally: